We use project-config for gerrit, gitea and nodepool config. That's cool, because can clone that from zuul too and make sure that each prod run we're doing runs with the contents of the patch in question. Introduce a flag file that can be touched in /home/zuulcd that will block zuul from running prod playbooks. By default, if the file is there, zuul will wait for an hour before giving up. Rename zuulcd to zuul To better align prod and test, name the zuul user zuul. Change-Id: I83c38c9c430218059579f3763e02d6b9f40c7b89changes/43/719343/19
parent
edd46d1acc
commit
ebae022d07
@ -1,33 +0,0 @@
|
||||
# This ansible.cfg file is only for running ad-hoc commands from
|
||||
# the /opt/system-config checkout. This file should be kept in
|
||||
# sync with playbooks/roles/install-ansible/templates/ansible.cfg.j2
|
||||
[defaults]
|
||||
inventory=/opt/system-config/inventory/openstack.yaml,/opt/system-config/inventory/groups.yaml,/etc/ansible/hosts/emergency.yaml
|
||||
library=/usr/share/ansible
|
||||
log_path=/var/log/ansible/ansible.log
|
||||
inventory_plugins=/opt/system-config/playbooks/roles/install-ansible/files/inventory_plugins/inventory_plugins
|
||||
roles_path=/opt/system-config/roles:/etc/ansible/roles
|
||||
retry_files_enabled=False
|
||||
retry_files_save_path=
|
||||
gathering=smart
|
||||
fact_caching=jsonfile
|
||||
fact_caching_connection=/var/cache/ansible/facts
|
||||
# Squash warning about ansible auto-transforming group names with -'s in them
|
||||
force_valid_group_names=ignore
|
||||
callback_whitelist=profile_tasks, timer
|
||||
callback_plugins=/etc/ansible/callback_plugins
|
||||
stdout_callback=debug
|
||||
|
||||
[inventory]
|
||||
enable_plugins=yaml,yamlgroup,advanced_host_list,ini
|
||||
cache=True
|
||||
cache_plugin=jsonfile
|
||||
cache_connection=/var/cache/ansible/inventory
|
||||
any_unparsed_is_failed=True
|
||||
|
||||
[ssh_connection]
|
||||
retries=3
|
||||
pipelining = True
|
||||
|
||||
[callback_profile_tasks]
|
||||
task_output_limit = 50
|
@ -0,0 +1 @@
|
||||
Sync project-config to remote host
|
@ -0,0 +1,2 @@
|
||||
project_config_dest: /opt/project-config
|
||||
project_config_subdir: ""
|
@ -0,0 +1,11 @@
|
||||
- name: Create project-config dir
|
||||
file:
|
||||
path: '{{ project_config_dest }}'
|
||||
state: directory
|
||||
|
||||
- name: Sync project-config repo
|
||||
synchronize:
|
||||
src: '{{ project_config_src }}/{{ project_config_subdir }}'
|
||||
dest: '{{ project_config_dest }}'
|
||||
|
||||
|
Loading…
Reference in new issue