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:
Ricardo Carrillo Cruz 2015-04-29 13:40:10 +02:00
parent 29dc8c21c3
commit e914d40602
4 changed files with 5 additions and 10 deletions

View File

@ -1,6 +1,5 @@
---
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
infra_servers:
- name: puppetmaster.yourdomain.cloud

View File

@ -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

View File

@ -1,4 +1,4 @@
---
- include: clone_system_config.yml
- include: rsync_system_config.yml
- include: install_puppet_and_modules.yml
- include: configure_puppetmaster.yml

View File

@ -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