Skip to content

Commit

Permalink
add more conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd committed Dec 13, 2024
1 parent c59f90b commit 080e8f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jobs/opensearch/templates/bin/pre-start.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ source /var/vcap/packages/openjdk-17/bosh/runtime.env
cp -u ${OPENSEARCH_HOME}/config/opensearch-security/*.yml "$OPENSEARCH_SECURITY_CONFIG_PATH"

<% if p("opensearch.node.allow_data") %>
<% if_p('opensearch.cf.domain', 'opensearch.cf.client_id', 'opensearch.cf.client_password') do %>
<%
api = p("opensearch.cf.domain")
client = p("opensearch.cf.client_id")
Expand All @@ -44,6 +45,7 @@ for org in $(cf orgs | tail -n +4); do
yq -i ".\"$ROLE_NAME\"={\"backend_roles\": [\"$ORG_GUID\"]}" "$OPENSEARCH_SECURITY_CONFIG_PATH/roles_mapping.yml"
done
<% end %>
<% end %>

# leaving all plugin files and plugins installed for now
# can revisit https://opensearch.org/docs/latest/install-and-configure/plugins/ for how to
Expand Down

0 comments on commit 080e8f0

Please sign in to comment.