diff options
author | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-29 16:23:30 +0800 |
---|---|---|
committer | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-29 16:33:06 +0800 |
commit | 8ff853cf793a643061fc605d7435fdb15d8c97dc (patch) | |
tree | f778269f9c53aa9e03f186b53f5d36f2f2a3ea82 /testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh | |
parent | 479cc8b4588b33db8b38345da6a1d41af7768ce5 (diff) |
bugfix: integrate rubbos to ci
JIRA: BOTTLENECK-74
Change-Id: Idbcbe3c51b361d11b16ab7a0de8b12fa347f9186
Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh')
-rwxr-xr-x | testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh b/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh index 1b45d5a1..c28213b3 100755 --- a/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh +++ b/testsuites/rubbos/puppet_manifests/internal/run_rubbos_internal.sh @@ -213,6 +213,21 @@ direct_ssh() { done } +start_puppet_service() { + # Start puppetserver + local ssh_args="-o StrictHostKeyChecking=no -o BatchMode=yes -i /home/ubuntu/.ssh/id_rsa" + sudo service puppetserver status + sudo service puppetserver start + # Start all puppet agents + for host in "${all_agents_arr[@]}";do + ssh ${ssh_args} ubuntu@${host} "sudo service puppet start --no-client" + done + sudo service puppetserver status + sudo puppet cert list --all + sudo puppet cert sign --all + sudo puppet cert list --all +} + # inline function # It requires one local file path which needs to be replaced _replace_text() { @@ -361,6 +376,8 @@ main() { fetch_remote_resources echo "==> direct_ssh:" direct_ssh + echo "==> start_puppet_service:" + start_puppet_service echo "==> prepare_manifests:" prepare_manifests echo "==> execute_catalog start:" |