tweaked userdata and tfvars.example
This commit is contained in:
parent
ddcaf0fb66
commit
117daeb9c3
@ -1,11 +1,8 @@
|
|||||||
#cloud-config
|
#cloud-config
|
||||||
|
|
||||||
# Resize /var, not /, as that's the last partition in MicroOS image.
|
|
||||||
growpart:
|
|
||||||
devices: ["/var"]
|
|
||||||
|
|
||||||
write_files:
|
write_files:
|
||||||
# Configure private network
|
|
||||||
|
# Configure the private network interface
|
||||||
- content: |
|
- content: |
|
||||||
BOOTPROTO='dhcp'
|
BOOTPROTO='dhcp'
|
||||||
STARTMODE='auto'
|
STARTMODE='auto'
|
||||||
@ -32,15 +29,24 @@ write_files:
|
|||||||
- ${key}
|
- ${key}
|
||||||
%{ endfor ~}
|
%{ endfor ~}
|
||||||
|
|
||||||
|
# Resize /var, not /, as that's the last partition in MicroOS image.
|
||||||
|
growpart:
|
||||||
|
devices: ["/var"]
|
||||||
|
|
||||||
# Make sure the hostname is set correctly
|
# Make sure the hostname is set correctly
|
||||||
manage_etc_hosts: "localhost"
|
|
||||||
preserve_hostname: true
|
|
||||||
prefer_fqdn_over_hostname: false
|
|
||||||
hostname: ${hostname}
|
hostname: ${hostname}
|
||||||
|
preserve_hostname: true
|
||||||
|
manage_etc_hosts: "localhost"
|
||||||
|
|
||||||
runcmd:
|
runcmd:
|
||||||
|
|
||||||
# As above, make sure the hostname is not reset
|
# As above, make sure the hostname is not reset
|
||||||
- sed -i 's#NETCONFIG_NIS_SETDOMAINNAME="yes"#NETCONFIG_NIS_SETDOMAINNAME="no"#g' /etc/sysconfig/network/config
|
- [ sed, -i, 's#preserve_hostname: false#preserve_hostname: true#g', /etc/cloud/cloud.cfg]
|
||||||
|
- [ sed, -i, 's#NETCONFIG_NIS_SETDOMAINNAME="yes"#NETCONFIG_NIS_SETDOMAINNAME="no"#g', /etc/sysconfig/network/config]
|
||||||
|
- [ sed, -i, 's#DHCLIENT_SET_HOSTNAME="yes"#DHCLIENT_SET_HOSTNAME="no"#g', /etc/sysconfig/network/dhcp]
|
||||||
|
|
||||||
|
# We set Google DNS servers
|
||||||
|
- [ sed, -i, 's#NETCONFIG_DNS_STATIC_SERVERS=""#NETCONFIG_DNS_STATIC_SERVERS="8.8.8.8 8.8.4.4"#g', /etc/sysconfig/network/config]
|
||||||
|
|
||||||
# Activate the private network
|
# Activate the private network
|
||||||
- systemctl reload network
|
- systemctl reload network
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Only the first values starting with a * are obligatory, the rest can remain with their default values, but Values or you want
|
# Only the first values starting with a * are obligatory, the rest can remain with their default values, or you
|
||||||
# could adapt them to your needs.
|
# could adapt them to your needs.
|
||||||
#
|
#
|
||||||
# Note that some values, notably "location" and "public_key" have no effect after the initial cluster has been setup.
|
# Note that some values, notably "location" and "public_key" have no effect after the initial cluster has been setup.
|
||||||
|
Loading…
Reference in New Issue
Block a user