Code Review
/
ta
/
infra-ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Initial commit
[ta/infra-ansible.git]
/
roles
/
bootstrap-host
/
templates
/
redhat_interface_alias.cfg.j2
diff --git a/roles/bootstrap-host/templates/redhat_interface_alias.cfg.j2
b/roles/bootstrap-host/templates/redhat_interface_alias.cfg.j2
new file mode 100644
(file)
index 0000000..
79a04a8
--- /dev/null
+++ b/
roles/bootstrap-host/templates/redhat_interface_alias.cfg.j2
@@ -0,0
+1,5
@@
+# This interface is an alias
+DEVICE={{ item.name | default('br-mgmt') }}:0
+IPADDR={{ item.alias | default('10.1.0.1') }}
+NETMASK={{ item.netmask | default('255.255.255.0') }}
+ONBOOT=yes