-
Notifications
You must be signed in to change notification settings - Fork 6
Update Variables
All of these points are applicable for dev/staging environments
Variables can be found in below locations
-
sunbird-devops/{{ env }}/defaults/main.yml
-
sunbird-devops/{{ env }}/group_vars/main.yml
-
sunbird-devops/{{ env }}/secrets.yml
-
sunbird-devops/ansible/roles/stack-sunbird/templates/{{ service_name }}.env
If you're updating a new variable in code, then please follow below guidelines.
-
All user defined variables must be initialized in
sunbird-devops/{{ env }}/defaults/main.yml
example
sunbird_actor_system_name: ""
-
Static values can be hard-coded in
sunbird-devops/{{ env }}/group_vars/main.yml
example
sunbird_version: "1.2.3"
-
All secrets must be preceded with
vault_
and declare insunbird-devops/ansible/roles/stack-sunbird/templates/{{ service_name }}.env
example
keystore_password: "{{vault_keystore_password}}"
Actual secret have to be defined in sunbird-devops/{{ env }}/secrets.yml
ansible-vault edit sunbird-devops/{{ env }}/secrets.yml vault_keystore_password: sample_password_123