inject dns_alt_names into puppet.conf
[bottlenecks.git] / utils / infra_setup / user_data / p-master-user-data
index 05d137d..7608725 100644 (file)
@@ -9,5 +9,6 @@ runcmd:
   - sed -i '/^factpath/a server=REPLACED_PUPPET_MASTER_SERVER' /etc/puppet/puppet.conf
   - sed -i '/^factpath/a runinterval=1d' /etc/puppet/puppet.conf
   - sed -i '/^templatedir/d' /etc/puppet/puppet.conf
+  - sed -i '/^\[master\]/a dns_alt_names=REPLACED_PUPPET_MASTER_SERVER' /etc/puppet/puppet.conf
 
 final_message: "The system with puppet is finally up, after $UPTIME seconds."