diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b6dbce..ce5f577 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.1.3 + +* bugfix: search option implementation + ## 0.1.2 * bugfix yaml syntax diff --git a/examples/defaultDNS.pp b/examples/defaultDNS.pp index f6ac0aa..b2c7203 100644 --- a/examples/defaultDNS.pp +++ b/examples/defaultDNS.pp @@ -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' ], } diff --git a/metadata.json b/metadata.json index 84d7a27..6a1e484 100644 --- a/metadata.json +++ b/metadata.json @@ -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", diff --git a/templates/interface.erb b/templates/interface.erb index d6bd425..53471e7 100644 --- a/templates/interface.erb +++ b/templates/interface.erb @@ -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 %>