Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...

  1. 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.
    1. 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.
  2. Edit the file with the new value(s).
  3. Edit the group_var file(s) with the values you need.
  4. Commit your change
  5. Push your change to BitbucketA box, manage_prod updates its copy of the repository every 2 minutes
  6. Staging boxes are updated on 25 and 55 every hour as a cronjob
  7. Production boxes are updated on 45 every hour as a cronjob
  8. If you need to run the update sooner, manually run the update command in the main Ansible page.

...