Merge pull request #183 from rbkmoney/add_san_to_es_certs

Add san to es certs
This commit is contained in:
Ivan Panteleev 2021-06-28 17:35:39 +03:00 committed by GitHub
commit c61163bdca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ create-elasticsearch-keystore:
cmd.run:
- env:
- ES_PATH_CONF: /etc/elasticsearch
- JAVA_HOME: /etc/java-config-2/current-system-vm
- name: /usr/share/elasticsearch/bin/elasticsearch-keystore create -s
- creates: /etc/elasticsearch/elasticsearch.keystore
- require:

View File

@ -23,6 +23,7 @@ update-elasticsearch-keystore:
cmd.run:
- env:
- ES_PATH_CONF: /etc/elasticsearch
- JAVA_HOME: /etc/java-config-2/current-system-vm
- name: "cat /etc/elasticsearch/s3_access | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin --force s3.client.default.access_key && cat /etc/elasticsearch/s3_secret | /usr/share/elasticsearch/bin/elasticsearch-keystore add --stdin --force s3.client.default.secret_key"
- require:
- pkg: app-misc/elasticsearch