Use rsync to copy the system-config repo to puppetmaster
Instead of using a Git server to stage changes on system-config, better just copy over the local system-config from the command center machine, the instances created by OpenStack may not have connectivity to the Git server.
This commit is contained in:
parent
29dc8c21c3
commit
e914d40602
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
system_config_repo_url: git@your_git_server/system-config.git
|
system_config_repo_url: git@your_git_server/system-config.git
|
||||||
system_config_repo_https_url: https://your_git_server/system-config.git
|
|
||||||
key_name: your_openstack_key
|
key_name: your_openstack_key
|
||||||
infra_servers:
|
infra_servers:
|
||||||
- name: puppetmaster.yourdomain.cloud
|
- name: puppetmaster.yourdomain.cloud
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
---
|
|
||||||
# Clone system-config
|
|
||||||
- git: repo="{{ system_config_repo_https_url }}"
|
|
||||||
dest=/opt/system-config/production
|
|
||||||
accept_hostkey=True
|
|
||||||
version="{{ system_config_branch }}"
|
|
||||||
force=True
|
|
||||||
tags: clone_system_config
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
- include: clone_system_config.yml
|
- include: rsync_system_config.yml
|
||||||
- include: install_puppet_and_modules.yml
|
- include: install_puppet_and_modules.yml
|
||||||
- include: configure_puppetmaster.yml
|
- include: configure_puppetmaster.yml
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
# Synchronize system-config from local to dest machine
|
||||||
|
- synchronize: src=/tmp/infra-ansible/system-config dest=/opt/system-config/production
|
||||||
|
tags: rsync_system_config
|
Loading…
Reference in New Issue