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
67944988
Commit
67944988
authored
2 years ago
by
Keshav Prasad
Browse files
Options
Download
Patches
Plain Diff
fix: interim commit
parent
8554e32c
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
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/es.yml
+4
-4
ansible/es.yml
ansible/roles/es-azure-snapshot/defaults/main.yml
+6
-1
ansible/roles/es-azure-snapshot/defaults/main.yml
ansible/roles/es-azure-snapshot/tasks/main.yml
+10
-2
ansible/roles/es-azure-snapshot/tasks/main.yml
with
20 additions
and
7 deletions
+20
-7
ansible/es.yml
+
4
−
4
View file @
67944988
...
...
@@ -8,10 +8,10 @@
roles
:
-
role
:
es-azure-snapshot
when
:
cloud_provider == "azure"
-
role
:
es-aws-snapshot
when
:
cloud_provider == "aws"
-
role
:
es-gcloud-snapshot
when
:
cloud_provider == "gcloud"
#
- role: es-aws-snapshot
#
when: cloud_provider == "aws"
#
- role: es-gcloud-snapshot
#
when: cloud_provider == "gcloud"
-
role
:
es5-snapshot-purge
tags
:
-
es_backup
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/es-azure-snapshot/defaults/main.yml
+
6
−
1
View file @
67944988
...
...
@@ -9,4 +9,9 @@ snapshot_create_request_body: {
# Override these values
es_snapshot_host
:
"
localhost"
snapshot_base_path
:
"
default"
backup_container
:
"
elasticsearch-snapshots"
\ No newline at end of file
backup_container
:
"
elasticsearch-snapshots"
### 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
}}"
azure_management_resource_group
:
"
{{
azure_management_resource_group
}}"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansible/roles/es-azure-snapshot/tasks/main.yml
+
10
−
2
View file @
67944988
...
...
@@ -4,6 +4,16 @@
-
set_fact
:
snapshot_number="snapshot_{{ lookup('pipe','date +%s') }}"
-
name
:
Ensure blob container exisits
azure_rm_storageblob
:
resource_group
:
"
{{
azure_management_resource_group
}}"
storage_account_name
:
"
{{
azure_management_storage_account_name
}}"
container
:
"
{{
backup_container
}}"
state
:
present
environment
:
AZURE_STORAGE_KEY
:
"
{{
azure_management_storage_account_key
}}"
delegate_to
:
localhost
-
name
:
Create azure snapshot
uri
:
url
:
"
http://{{
es_snapshot_host
}}:9200/_snapshot/{{
snapshot_base_path
}}"
...
...
@@ -16,8 +26,6 @@
uri
:
url
:
"
http://{{
es_snapshot_host
}}:9200/_snapshot/{{
snapshot_base_path
}}/{{
snapshot_number
}}"
method
:
PUT
body
:
>
{"indices":"*","include_global_state":false}
headers
:
Content-Type
:
"
application/json"
...
...
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