Another network config attempt - 3
This commit is contained in:
parent
492e2d3959
commit
d1c3da0128
1 changed files with 17 additions and 17 deletions
|
|
@ -1,18 +1,6 @@
|
|||
#cloud-config
|
||||
system_info:
|
||||
default_user:
|
||||
name: stack
|
||||
password: {data.password}
|
||||
chpasswd: {{expire: False}}
|
||||
ssh_pwauth: True
|
||||
ssh_authorized_keys:
|
||||
- {data.public_key}
|
||||
# bootcmd:
|
||||
# - "nmcli conn delete 'System eth0'"
|
||||
# - "nmcli conn delete 'Wired connection 1'"
|
||||
# - "nmcli con add con-name eth0 ifname eth0 type ethernet ip4 {data.cidr_1} gw4 {data.gateway} ipv4.dns {data.dns}"
|
||||
# - "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}"
|
||||
network:
|
||||
network:
|
||||
version: 1
|
||||
config:
|
||||
- type: physical
|
||||
|
|
@ -29,6 +17,18 @@ network:
|
|||
address: {data.cidr_2}
|
||||
gateway: {data.gateway}
|
||||
dns: {data.dns}
|
||||
default_user:
|
||||
name: stack
|
||||
password: {data.password}
|
||||
chpasswd: {{expire: False}}
|
||||
ssh_pwauth: True
|
||||
ssh_authorized_keys:
|
||||
- {data.public_key}
|
||||
# bootcmd:
|
||||
# - "nmcli conn delete 'System eth0'"
|
||||
# - "nmcli conn delete 'Wired connection 1'"
|
||||
# - "nmcli con add con-name eth0 ifname eth0 type ethernet ip4 {data.cidr_1} gw4 {data.gateway} ipv4.dns {data.dns}"
|
||||
# - "nmcli con add con-name eth1 ifname eth1 type ethernet ip4 {data.cidr_2} gw4 {data.gateway} ipv4.dns {data.dns}"
|
||||
# runcmd:
|
||||
# - "subscription-manager register --username {data.rhn_user} --password '{data.rhn_password}'"
|
||||
# - "subscription-manager release --set=8.4"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue