Rearrange for packaging
This commit is contained in:
parent
eb1fbf7eb4
commit
cafecb4d01
10 changed files with 79 additions and 34 deletions
2
src/virt-install/meta-data.tpl
Normal file
2
src/virt-install/meta-data.tpl
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
instance-id: {data.instance_id}
|
||||
local-hostname: {data.local_hostname}
|
||||
20
src/virt-install/network-config.tpl
Normal file
20
src/virt-install/network-config.tpl
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
network:
|
||||
version: 1
|
||||
config:
|
||||
- type: physical
|
||||
name: en0
|
||||
subnets:
|
||||
- type: static
|
||||
address: {data.cidr_1}
|
||||
gateway: {data.gateway}
|
||||
- type: physical
|
||||
name: en1
|
||||
subnets:
|
||||
- type: static
|
||||
address: {data.cidr_2}
|
||||
gateway: {data.gateway}
|
||||
- type: nameserver
|
||||
address:
|
||||
- {data.dns}
|
||||
search:
|
||||
- {data.search_domain}
|
||||
15
src/virt-install/user-data.tpl
Normal file
15
src/virt-install/user-data.tpl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue