Skip to content

Devops code structure

Kiran G edited this page Oct 16, 2017 · 10 revisions

Ansible Structure

Sunbird devops is split across two repositories.

Ansible Inventory structure

Following inventory structure is used:

`-- inventories
    `-- {env}  #name of the environment
    |   `-- group_vars
    |   |   `-- {env}-es.yml  # ES specific variables
    |   |   `-- ...
    |   |   `-- ...
    |   |   `-- {env}.yml  # Variables
    |   `-- hosts  # Ansible inventory definition
    |   `-- secrets.yml  # Secrets, encrypted using Ansible vault

Default values for variables should be put in {role}/defaults/main.yml.

Service deploy script flow

Image: Edit Link

Clone this wiki locally