inject dns_alt_names into puppet.conf
[bottlenecks.git] / utils / infra_setup / user_data / p-agent-user-data
index 2641c90..6ec191b 100644 (file)
@@ -10,5 +10,6 @@ runcmd:
   - sed -i '/^factpath/a runinterval=1d' /etc/puppet/puppet.conf
   - sed -i '/^templatedir/d' /etc/puppet/puppet.conf
   - sed -i 's/START=no/START=yes/g' /etc/default/puppet
+  - 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."