Files
system-config/playbooks/roles/sync-project-config
James E. Blair 617cff00b4 Update sync-project-config to delete
When we synchronize the project-config repo to remote hosts, we
don't delete existing files.  This can cause problems for systems
(like grafyaml) that iterate over all files present.

Enable the delete option to correct this.

Also, add some file triggers so this is exercised and deployed
appropriately.

Change-Id: Ia189fdfede5b17178907d01ca4a75d9e1fbaaaf5
2025-07-02 16:28:11 -07:00
..

Sync project-config to remote host

This syncs the project-config repo checked out on the bastion host (which is actually running the Ansible that runs this role) to the current host. This repo holds configuration for some production hosts and thus we want to make sure to deploy those services with the checked-out tree Zuul has prepared for a given deploy-pipeline CD job run (i.e. so we apply config updates in commit order).

Also see the setup-src to see where this checkout is setup; there are some tricks -- for example for hourly and periodic jobs we want to ensure we run from master at the time the job runs, not at the time the job was enqueued.