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
8554e32c
Commit
8554e32c
authored
2 years ago
by
Keshav Prasad
Browse files
Options
Download
Patches
Plain Diff
fix: dont use epoch date facts caching
parent
796d4c98
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
+2
-2
ansible/es.yml
ansible/roles/es-azure-snapshot/tasks/main.yml
+2
-5
ansible/roles/es-azure-snapshot/tasks/main.yml
ansible/roles/es6/tasks/plugins/create-keystore.yml
+1
-1
ansible/roles/es6/tasks/plugins/create-keystore.yml
with
5 additions
and
8 deletions
+5
-8
ansible/es.yml
+
2
−
2
View file @
8554e32c
...
...
@@ -8,9 +8,9 @@
roles
:
-
role
:
es-azure-snapshot
when
:
cloud_provider == "azure"
-
role
:
aws
-azure
-snapshot
-
role
:
es-
aws-snapshot
when
:
cloud_provider == "aws"
-
role
:
gclou
-azure
-snapshot
-
role
:
es-
gclou
d
-snapshot
when
:
cloud_provider == "gcloud"
-
role
:
es5-snapshot-purge
tags
:
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/es-azure-snapshot/tasks/main.yml
+
2
−
5
View file @
8554e32c
...
...
@@ -2,6 +2,8 @@
-
set_fact
:
base_path_date="{{ lookup('pipe','date +%Y-%m') }}"
-
set_fact
:
snapshot_number="snapshot_{{ lookup('pipe','date +%s') }}"
-
name
:
Create azure snapshot
uri
:
url
:
"
http://{{
es_snapshot_host
}}:9200/_snapshot/{{
snapshot_base_path
}}"
...
...
@@ -10,11 +12,6 @@
headers
:
Content-Type
:
"
application/json"
-
debug
:
msg
:
"
snapshot_base_path:
{{
snapshot_base_path
}}"
-
set_fact
:
snapshot_number="snapshot_{{ansible_date_time.epoch}}"
-
name
:
Take new snapshot
uri
:
url
:
"
http://{{
es_snapshot_host
}}:9200/_snapshot/{{
snapshot_base_path
}}/{{
snapshot_number
}}"
...
...
This diff is collapsed.
Click to expand it.
ansible/roles/es6/tasks/plugins/create-keystore.yml
+
1
−
1
View file @
8554e32c
...
...
@@ -10,4 +10,4 @@
command
:
"
{{es_home}}/bin/elasticsearch-keystore
create"
environment
:
ES_PATH_CONF
:
"
{{
conf_dir
}}"
when
:
elasticsearch_keystore_file.stat.exists
is
false
when
:
elasticsearch_keystore_file.stat.exists
==
false
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