Configures a host to automatically run the ansible playbooks and log the results. This is used in firewalled environments where third-party CI solution is unavailable.
N/A
After you run the playbook, there are two manual steps:
- Configure the user with the Ansible Vault key
- Configure the user with the SSH key to use
For data.gov, this usually copying the files over from the root user:
sudo cp /root/ansible-secret.txt /home/ci/
sudo chown ci:ci /home/ci/ansible-secret.txt
sudo cp /root/.ssh/ckan-csw-aws.pem /home/ci/.ssh/
sudo chown ci:ci /home/ci/.ssh/ckan-csw-aws.pemci_inventory string required
The ansible inventory to run the CI script against.
ci_username string
The Linux user account to create for running the CI script.
ci_home_dir string
Home directory for the CI user.
ci_log_dir string
The directory to log to. You may want to configure logrotate for /var/log/ci.log to avoid the file growing too large.
- geerlingguy.git role
---
- hosts: jumpbox
roles:
- role: gsa.datagov-deploy-ciThis project is in the worldwide public domain. As stated in CONTRIBUTING:
This project is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication.
All contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.