Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible role properities should be prefixed with role name #8

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ This role supports the following,
- `opencast_opensearch_heap_size`
- Memory configuration (default: `1g`)
- Might make sense to set this to `2g` for larger installations.
- `opensearch_api_host`
- `opencast_opensearch_api_host`
- Defaults to `127.0.0.1`.
- `opensearch_api_port`
- `opencast_opensearch_api_port`
- Defaults to `9200`.
- `opencast_opensearch_started`
- By default, the OpenSearch service will (re)start if something has changed that requires the service to be restarted. This is done via the Ansible notification handler. However, if you expect the OpenSearch service to be running when you run this role, you can force the service to start by setting the value to `true`.
Expand Down
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
opencast_opensearch_heap_size: 1g

# Bind OpenSearch to this specific interface.
opensearch_api_host: 127.0.0.1
opencast_opensearch_api_host: 127.0.0.1

# Bind OpenSearch to this specific port.
opensearch_api_port: 9200
opencast_opensearch_api_port: 9200

# Whether to force the start of the OpenSearch service at the end of this role.
opencast_opensearch_started: false
4 changes: 2 additions & 2 deletions templates/opensearch.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cluster.name: "opensearch-cluster"
node.name: "{{ inventory_hostname }}"
network.host: "{{ opensearch_api_host }}"
http.port: "{{ opensearch_api_port }}"
network.host: "{{ opencast_opensearch_api_host }}"
http.port: "{{ opencast_opensearch_api_port }}"
discovery.type: single-node
bootstrap.memory_lock: true
plugins.security.disabled: true