no message
parent
1ef076b11a
commit
daa8634170
|
@ -1,5 +1,4 @@
|
||||||
instance-id: iid-%GUEST_NAME%;
|
instance-id: iid-%GUEST_NAME%;
|
||||||
hostname: %GUEST_NAME%
|
hostname: %GUEST_NAME%
|
||||||
local-hostname: %GUEST_NAME%
|
local-hostname: %GUEST_NAME%
|
||||||
manage_resolv_conf: true
|
|
||||||
dsmode: local
|
dsmode: local
|
17
user-data
17
user-data
|
@ -11,13 +11,24 @@ users:
|
||||||
|
|
||||||
ssh_pwauth: True
|
ssh_pwauth: True
|
||||||
package_upgrade: true
|
package_upgrade: true
|
||||||
|
|
||||||
apt_upgrade: false
|
apt_upgrade: false
|
||||||
#manage_etc_hosts: localhost
|
|
||||||
manage_etc_hosts: true
|
manage_etc_hosts: true
|
||||||
|
|
||||||
fqdn: %FQDN%
|
fqdn: %FQDN%
|
||||||
|
|
||||||
timezone: US/Mountain
|
timezone: US/Mountain
|
||||||
datasource_list:
|
|
||||||
- ConfigDrive
|
manage_resolv_conf: true
|
||||||
|
resolv_conf:
|
||||||
|
nameservers: ['%NAMESERVER1%', '%NAMESERVER2%']
|
||||||
|
searchdomains:
|
||||||
|
- %DOMAIN%
|
||||||
|
domain: %DOMAIN%
|
||||||
|
|
||||||
|
#datasource_list:
|
||||||
|
# - ConfigDrive
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- openssh-server
|
- openssh-server
|
||||||
|
|
|
@ -118,7 +118,7 @@ arch="amd64"
|
||||||
source distros
|
source distros
|
||||||
|
|
||||||
sed -e "s/%GUEST_NAME%/${hostname}/" ${WORKING_DIR}/meta-data > ${WORKING_DIR}/output/meta-data
|
sed -e "s/%GUEST_NAME%/${hostname}/" ${WORKING_DIR}/meta-data > ${WORKING_DIR}/output/meta-data
|
||||||
sed -e "s/%FQDN%/${hostname}.${domain}/" ${WORKING_DIR}/user-data > ${WORKING_DIR}/output/user-data
|
sed -e "s/%FQDN%/${hostname}.${domain}/" -e "s/%DOMAIN%/${domain}/" -e "s/%NAMESERVER1%/${nameserver1}/" -e "s/%NAMESERVER2%/${nameserver2}/" ${WORKING_DIR}/user-data > ${WORKING_DIR}/output/user-data
|
||||||
|
|
||||||
if [[ ${virt_netinfo_type} == "eni" ]]; then
|
if [[ ${virt_netinfo_type} == "eni" ]]; then
|
||||||
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
|
cat ${WORKING_DIR}/network/legacy-eni >> ${WORKING_DIR}/output/meta-data
|
||||||
|
@ -230,6 +230,6 @@ virt-install \
|
||||||
sleep 5
|
sleep 5
|
||||||
|
|
||||||
virsh change-media ${hostname}.${domain} vdb --eject --config
|
virsh change-media ${hostname}.${domain} vdb --eject --config
|
||||||
|
|
||||||
# cleanup
|
# cleanup
|
||||||
rm configuration.iso output/meta-data output/user-data output/network-config
|
rm configuration.iso output/meta-data output/user-data output/network-config
|
||||||
|
|
Loading…
Reference in New Issue