summaryrefslogtreecommitdiffstats
path: root/utils/infra_setup/user_data/p-master-user-data
diff options
context:
space:
mode:
authorwangyaoguang <sunshine.wang@huawei.com>2016-05-10 14:38:55 +0800
committerwangyaoguang <sunshine.wang@huawei.com>2016-05-10 14:38:55 +0800
commit4f8ab04db81191b3a1608e150db1ad6cedfc38d4 (patch)
treeb9acae32a63fe7742ef49d21c3f4fcea4f2f961e /utils/infra_setup/user_data/p-master-user-data
parent9a4afd44ae162b4649771b674990ebe9bc6da720 (diff)
inject dns_alt_names into puppet.conf
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>
Diffstat (limited to 'utils/infra_setup/user_data/p-master-user-data')
-rw-r--r--utils/infra_setup/user_data/p-master-user-data1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/infra_setup/user_data/p-master-user-data b/utils/infra_setup/user_data/p-master-user-data
index 05d137dd..76087259 100644
--- a/utils/infra_setup/user_data/p-master-user-data
+++ b/utils/infra_setup/user_data/p-master-user-data
@@ -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."