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>
- 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."
- 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."