Skip to content

Commit

Permalink
Add support for a custom opensearch.yml file
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Mar 7, 2024
1 parent e5eed1a commit 4eabddc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ inputs:
description: 'Path to a security config file to replace the default. Leave empty if security is not enabled or using the default config'
required: false

opensearch_yml_file:
description: 'Path to a opensearch.yml file to replace the default. Leave empty to use the default config'
required: false

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -122,6 +126,12 @@ runs:
echo "cluster.routing.allocation.disk.threshold_enabled: false" >> ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
shell: bash

- name: Replace opensearch.yml file if applicable
if: ${{ inputs.opensearch_yml_file != '' }}
run: |
mv ${{ inputs.opensearch_yml_file }} ./opensearch-${{ inputs.opensearch-version }}-SNAPSHOT/config/opensearch.yml
shell: bash

# Run OpenSearch
- name: Run OpenSearch with plugin on Linux
if: ${{ runner.os == 'Linux'}}
Expand Down

0 comments on commit 4eabddc

Please sign in to comment.