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, one public and one private.

Ansible Inventory structure

Following inventory structure is used.

`-- inventories
    `-- dev  #name of the environment
    |   `-- group_vars
    |   |   `-- dev-es.yml  # DEV ES specific vars
    |   |   `-- dev.yml  # DEV specific vars
    |   `-- hosts  # Ansible inventory definition
    |   `-- secrets.yml  # DEV 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