...
Git repositories for ansible - structure and use
This section is out of date; we no longer use the git submodule as described here.
The code we use to administer Sufia via Ansible is based on code provided to us by DCE, and available at https://github.com/curationexperts/ansible-hydra. See Ansible-Hydra Submodule for more details.
A wrapper with local configuration lives at https://bitbucket.org/ChemicalHeritageFoundation/ansible-inventory. Wrapper contains:
- our hosts file
- our group_vars files
- ansible-hydra as a git submoduleour roles
- an ansible.config which points to ansible-hydra for roles_path.
- A number of roles and plays for CHF specific customizationplaybooks
Aside: pull requests can be submitted via branches; there's really no need to fork this repo since we'll all be owners.
...
- $ git clone clone git@bitbucket.org:ChemicalHeritageFoundation/ansible-inventory.git
- $ cd ansible-inventory
- $ git submodule update --init
...
- ansible-inventory
...
- $ git submodule update
Playbook Notes
configure_prod: Sets up backup (via s3 and postgres roles) for production servers. If the SSL certs are installed (and they should be) it will also set the machine to send secured password reset e-mails. It also adds the secrets data for capistrano. All of this is handled by roles which as of 2/26/16 are fairly atomic but could be trimmed down further.
...