...
If staging encounters no errors, merge staging with master. Do not delete the staging branch.
A box, manage_prod updates its copy of the repository every 2 minutes
- Staging boxes are updated on 11, 22, 33, 44, and 55 every hour as a cronjob.
- Production boxes are updated on 45 every hour as a cronjob
Variable Structure
Ansible looks at a number of different files when building or updating a box. When looking for a variable, use the following guide to decide where to check for a variable or where to place one. All variables are in the group_vars folder.
...
- Locate the file. Ansible files are pushed out from role/ROLENAME/templates or role/ROLENAME/fileĀ files in templates have variables while files in the file directory are static.
- At the moment a role guide to help locate files isn't written, the usual name pattern for a template is file_name.extension.j2 where j2 is the jinja2 extension. Search for the file name to find it if you're not sure what role it might be in.
- Edit the file with the new value(s).
- Edit the group_var file(s) with the values you need.
- Commit your change
- Push your change to BitbucketA box, manage_prod updates its copy of the repository every 2 minutes
- Staging boxes are updated on 25 and 55 every hour as a cronjob Production boxes are updated on 45 every hour as a cronjob
- If you need to run the update sooner, manually run the update command in the main Ansible page.
...