Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
3ed2255f
Commit
3ed2255f
authored
2 years ago
by
Keshav Prasad
Browse files
Options
Download
Patches
Plain Diff
fix: updated vars and tasks for using az module
parent
e86f4122
master
login-changes
loginRegisterBtn
prasath-release-5.1.0
release-5.1.0
release-5.1.0-api
release-5.1.0-apiuat
release-5.1.0-bulk-enrol-unenrol
release-5.1.0-uat
release-5.1.0-uatLatest
release-5.1.0-uatapi
release-5.1.0-upsmf-prod
release-uat-nginx
revert-5-login-changes
upstream/release-5.1.0-vdn
release-5.1.0_RC3
release-5.1.0_RC2
release-5.1.0_RC1
release-5.0.2
release-5.0.2_RC1
release-5.0.1
release-5.0.1_RC1
release-5.0.0
release-5.0.0_RC5
release-5.0.0_RC4
release-5.0.0_RC3
release-5.0.0_RC2
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ansible/roles/es-azure-snapshot/tasks/main.yml
+3
-10
ansible/roles/es-azure-snapshot/tasks/main.yml
ansible/roles/es6/defaults/main.yml
+1
-5
ansible/roles/es6/defaults/main.yml
private_repo/ansible/inventory/dev/Core/common.yml
+1
-5
private_repo/ansible/inventory/dev/Core/common.yml
private_repo/ansible/inventory/dev/Core/secrets.yml
+1
-1
private_repo/ansible/inventory/dev/Core/secrets.yml
with
6 additions
and
21 deletions
+6
-21
ansible/roles/es-azure-snapshot/tasks/main.yml
+
3
−
10
View file @
3ed2255f
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/es6/defaults/main.yml
+
1
−
5
View file @
3ed2255f
...
...
@@ -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
This diff is collapsed.
Click to expand it.
private_repo/ansible/inventory/dev/Core/common.yml
+
1
−
5
View file @
3ed2255f
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
private_repo/ansible/inventory/dev/Core/secrets.yml
+
1
−
1
View file @
3ed2255f
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets