diff --git a/docs/advanced/default.yml.spec.md b/docs/advanced/default.yml.spec.md index 87e009e1..0a321b03 100644 --- a/docs/advanced/default.yml.spec.md +++ b/docs/advanced/default.yml.spec.md @@ -606,6 +606,9 @@ splunk: access_key: secret_key: endpoint: http://s3-us-west-1.amazonaws.com + azure: + endpoint: https://azure_blob_storage_endpoint + container_name: your_container_name maxGlobalDataSizeMB: 500 maxGlobalRawDataSizeMB: 200 hotlist_recency_secs: 30 diff --git a/roles/splunk_cluster_master/tasks/configure_indexes.yml b/roles/splunk_cluster_master/tasks/configure_indexes.yml index cb0f4b13..e348ec7e 100644 --- a/roles/splunk_cluster_master/tasks/configure_indexes.yml +++ b/roles/splunk_cluster_master/tasks/configure_indexes.yml @@ -32,6 +32,18 @@ when: index.s3 is defined no_log: true +- name: Write Azure properties for the remote specified + ini_file: + dest: "{{ splunk.home }}/etc/master-apps/_cluster/local/indexes.conf" + section: "volume:{{ index.remoteName }}" + option: "{{ item.key }}" + value: "{{ item.value }}" + with_items: + - { key: "remote.azure.endpoint", value: "{{ index.azure.endpoint }}" } + - { key: "remote.azure.container_name", value: "{{ index.azure.container_name }}" } + when: index.azure is defined + no_log: true + - name: Write paths for the index ini_file: dest: "{{ splunk.home }}/etc/master-apps/_cluster/local/indexes.conf"