Skip to content

Commit

Permalink
search bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
jordiprats committed May 17, 2018
1 parent 837c5bc commit 484080c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.1.3

* bugfix: search option implementation

## 0.1.2

* bugfix yaml syntax
Expand Down
2 changes: 1 addition & 1 deletion examples/defaultDNS.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
match => true,
match_name => '*',
dns => [ '1.1.1.1', '8.8.8.8' ],
search => [ 'demo.vm' ],
search => [ 'demo.vm', 'demo2.vm' ],
}
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eyp-netplan",
"version": "0.1.2",
"version": "0.1.3",
"author": "eyp",
"summary": "network management using netplan.io",
"license": "Apache-2.0",
Expand Down
3 changes: 3 additions & 0 deletions templates/interface.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ network:
<%- if @dns.any? -%>
nameservers:
addresses: [<%= @dns.join(',') %>]
<%- if @search.any? -%>
search: [<%= @search.join(',') %>]
<%- end -%>
<%- end -%>
<%- if defined?(@macaddress) -%>
macaddress: <%= @macaddress %>
Expand Down

0 comments on commit 484080c

Please sign in to comment.