diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-22 00:11:54 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-22 00:11:54 +0200 |
commit | 8c444b1379f9db5aa800736f83500ef574db14e0 (patch) | |
tree | 7f5230a8d552a0fb06498f9487689dcda88aef1d /roles/dellos6/bootstrap/templates | |
parent | cah: add services vlan (diff) |
dellos6: fix idempotence
Diffstat (limited to 'roles/dellos6/bootstrap/templates')
-rw-r--r-- | roles/dellos6/bootstrap/templates/init.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/dellos6/bootstrap/templates/init.j2 b/roles/dellos6/bootstrap/templates/init.j2 index 8a0c1ae4..eef1e0a6 100644 --- a/roles/dellos6/bootstrap/templates/init.j2 +++ b/roles/dellos6/bootstrap/templates/init.j2 @@ -7,6 +7,11 @@ hostname {{ host_name }} vlan 42 name mgmt exit +{% if dellos6_mgmt_interface is defined and dellos6_mgmt_interface != '' %} +interface {{ dellos6_mgmt_interface }} +switchport access vlan {{ dellos6_mgmt_vlan }} +exit +{% endif %} interface vlan {{ dellos6_mgmt_vlan }} ip address {{ dellos6_mgmt_ipaddr }} {{ dellos6_mgmt_netmask }} exit |