Commit 3ed2255f authored by Keshav Prasad's avatar Keshav Prasad
Browse files

fix: updated vars and tasks for using az module

Showing with 6 additions and 21 deletions
+6 -21
......@@ -5,17 +5,10 @@
- set_fact: snapshot_number="snapshot_{{ lookup('pipe','date +%s') }}"
- name: Ensure backup folder exists in azure blob
azure_rm_storageblob:
resource_group: "{{ azure_management_storage_resource_group_name }}"
storage_account_name: "{{ azure_management_storage_account_name }}"
container: "{{ es_azure_backup_folder_name }}"
state: present
shell: "az storage container create --name {{ es_azure_backup_folder_name }}"
environment:
AZURE_TENANT: "{{ azure_management_tenant_id }}"
AZURE_SUBSCRIPTION_ID: "{{ azure_management_subscription_id }}"
AZURE_CLIENT_ID: "{{ azure_management_client_id }}"
AZURE_SECRET: "{{ azure_management_client_secret }}"
delegate_to: localhost
AZURE_STORAGE_ACCOUNT: "{{ azure_management_storage_account_name }}"
AZURE_STORAGE_KEY: "{{ azure_management_storage_account_key }}"
- name: Create Azure Repository
uri:
......
......@@ -45,8 +45,4 @@ es_plugins_reinstall: true
es_plugins:
- plugin: "repository-azure"
- plugin: "repository-s3"
- plugin: "repository-gcs"
### Re-use exisiting variables of azure storage account
azure_management_storage_account_name: "{{ sunbird_management_storage_account_name }}"
azure_management_storage_account_key: "{{ sunbird_management_storage_account_key }}"
\ No newline at end of file
- plugin: "repository-gcs"
\ No newline at end of file
......@@ -27,11 +27,7 @@ sunbird_management_storage_account_name: "change.azure.storage.account.name"
# Define the below if you are using Azure Cloud
# Ansible Azure Module Variables
# Management Storage Account
azure_management_tenant_id: ""
azure_management_subscription_id: ""
azure_management_storage_resource_group_name: ""
azure_management_client_id: ""
azure_management_storage_account_name: ""
azure_management_storage_account_name: "{{ sunbird_management_storage_account_name }}"
# Define the below if you are using AWS Cloud
# Ansible AWS Module Variables
......
......@@ -21,7 +21,7 @@ sunbird_private_storage_account_key: "change.azure.storage.account.key"
# Define the below if you are using Azure Cloud
# Ansible Azure Module Variables
# Management Storage Account
azure_management_client_secret: ""
azure_management_storage_account_key: "{{ sunbird_management_storage_account_key }}"
# Define the below if you are using AWS Cloud
# Ansible AWS Module Variables
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment