-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: updated roles and plays for azure provision and backup
- Loading branch information
Showing
12 changed files
with
46 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
# es_curator_major_version: 3 | ||
# es_curator_version: 3.4.1-1 | ||
|
||
es_curator_major_version: 5 | ||
es_curator_version: 5.7.6 | ||
python_es_curator_version: 3.4.1-1 | ||
es_curator_version: 5.8.4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
--- | ||
dependencies: | ||
- { role: es-curator, es_curator_major_version: 5, es_curator_version: 5.8.1, python_es_curator_version: 3.4.1-1 } | ||
- { role: es-curator, es_curator_major_version: 5, es_curator_version: 5.8.4 } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Check if elasticsearch keystore exists or not | ||
become: yes | ||
stat: | ||
path: "{{ conf_dir }}/elasticsearch.keystore" | ||
register: elasticsearch_keystore_file | ||
|
||
- name: Create the elasticsearch keystore if not exists | ||
become: yes | ||
command: "{{es_home}}/bin/elasticsearch-keystore create" | ||
environment: | ||
ES_PATH_CONF: "{{ conf_dir }}" | ||
when: elasticsearch_keystore_file.stat.exists is false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
---- | ||
--- | ||
- name: Add default azure account name for backups | ||
become: yes | ||
shell: echo "{{ azure_management_storage_account_name }}" | {{ es_home }}/bin/elasticsearch-keystore add azure.client.default.account | ||
shell: echo "{{ azure_management_storage_account_name }}" | {{ es_home }}/bin/elasticsearch-keystore add -f azure.client.default.account | ||
no_log: True | ||
environment: | ||
ES_PATH_CONF: "{{ conf_dir }}" | ||
|
||
|
||
- name: Add default azure account key for backups | ||
become: yes | ||
shell: echo "{{ azure_management_storage_account_key }}" | {{ es_home }}/bin/elasticsearch-keystore add azure.client.default.key | ||
no_log: True | ||
shell: echo "{{ azure_management_storage_account_key }}" | {{ es_home }}/bin/elasticsearch-keystore add -f azure.client.default.key | ||
no_log: True | ||
environment: | ||
ES_PATH_CONF: "{{ conf_dir }}" |
4 changes: 2 additions & 2 deletions
4
...les/es6/tasks/plugins/repository-gcs.yaml → ...oles/es6/tasks/plugins/repository-gcs.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
---- | ||
--- | ||
- name: Add gcs credentials file to keystore | ||
become: yes | ||
shell: echo "{{ s3_management_bucket_access_key }}" | {{ es_home }}/bin/elasticsearch-keystore add-file gcs.client.default.credentials_file google_cloud_store_management_service_account.json | ||
shell: echo "{{ s3_management_bucket_access_key }}" | {{ es_home }}/bin/elasticsearch-keystore add-file -f gcs.client.default.credentials_file google_cloud_store_management_service_account.json | ||
no_log: True |
6 changes: 3 additions & 3 deletions
6
...oles/es6/tasks/plugins/repository-s3.yaml → ...roles/es6/tasks/plugins/repository-s3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
---- | ||
--- | ||
- name: Add default aws account name for backups | ||
become: yes | ||
shell: echo "{{ s3_management_bucket_access_key }}" | {{ es_home }}/bin/elasticsearch-keystore add s3.client.default.access_key | ||
shell: echo "{{ s3_management_bucket_access_key }}" | {{ es_home }}/bin/elasticsearch-keystore add -f s3.client.default.access_key | ||
no_log: True | ||
|
||
- name: Add default aws account key for backups | ||
become: yes | ||
shell: echo "{{ s3_management_bucket_secret_key }}" | {{ es_home }}/bin/elasticsearch-keystore add s3.client.default.secret_key | ||
shell: echo "{{ s3_management_bucket_secret_key }}" | {{ es_home }}/bin/elasticsearch-keystore add -f s3.client.default.secret_key | ||
no_log: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters