Skip to content

Commit

Permalink
add CF client configuration for opensearch job on data nodes (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdboyd authored Dec 13, 2024
1 parent fd5af6f commit b65bec0
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
2 changes: 2 additions & 0 deletions opensearch-jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ instance_groups:
indices.query.bool.max_clause_count: 2048
jvm_options:
- "-Dlog4j2.formatMsgNoLookups=true"
cf:
client_id: opensearch_client_id
persistent_disk_type: logs_opensearch_os_data
stemcell: default
azs: [z1]
Expand Down
6 changes: 6 additions & 0 deletions opsfiles/cf-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,9 @@
path: /instance_groups/name=maintenance/jobs/name=upload-dashboards-objects/properties?/cloudfoundry?/system_domain?
value: ((cf-api-development))

- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/client_password?
value: ((/bosh/cf-development/opensearch_client_secret))
- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/domain?
value: ((cf-api-development))
9 changes: 8 additions & 1 deletion opsfiles/cf-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@
value: ((/bosh/cf-production/opensearch_client_secret))
- type: replace
path: /instance_groups/name=maintenance/jobs/name=upload-dashboards-objects/properties?/cloudfoundry?/system_domain?
value: ((cf-api-production))
value: ((cf-api-production))

- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/client_password?
value: ((/bosh/cf-production/opensearch_client_secret))
- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/domain?
value: ((cf-api-production))
10 changes: 9 additions & 1 deletion opsfiles/cf-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
value: ((/bosh/cf-staging/opensearch_client_secret))
- type: replace
path: /instance_groups/name=maintenance/jobs/name=upload-dashboards-objects/properties?/cloudfoundry?/system_domain?
value: ((cf-api-staging))
value: ((cf-api-staging))

- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/client_password?
value: ((/bosh/cf-staging/opensearch_client_secret))
- type: replace
path: /instance_groups/name=opensearch_data/jobs/name=opensearch/properties?/opensearch?/cf?/domain?
value: ((cf-api-staging))

0 comments on commit b65bec0

Please sign in to comment.