inject dns_alt_names into puppet.conf 21/13821/1
authorwangyaoguang <sunshine.wang@huawei.com>
Tue, 10 May 2016 06:38:55 +0000 (14:38 +0800)
committerwangyaoguang <sunshine.wang@huawei.com>
Tue, 10 May 2016 06:38:55 +0000 (14:38 +0800)
There were cert issues when puppet agents use old hostname 'rubbos-control'.
This can be eliminated by adding dns-alt_names in puppet.conf

JIRA: BOTTLENECK-75

Change-Id: Id483ca2792b8faef6ab87788371e60ce8e390b5e
Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
utils/infra_setup/user_data/p-agent-user-data
utils/infra_setup/user_data/p-master-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."
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."