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

Refactor hostgroup parameter name #6

Merged
merged 2 commits into from
May 5, 2024
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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ An [ansible collection](https://galaxy.ansible.com/ui/repo/published/nephelaiio/

| Hostgroup | Default | Description |
|:-------------------------|---------------------:|:---------------------------------|
| consul_group | 'consul' | Consul cluster members |
| consul_group_name | 'consul' | Consul cluster members |
| consul_update_skip_group | 'consul_update_skip' | Consul cluster update skip hosts |

## Collection variables
Expand All @@ -28,6 +28,7 @@ Cluster wide parameters
| consul_backup_minutes | '\*/5' | Consul snapshot cronjob component | false |
| consul_backup_hours | '\*' | Consul snapshot cronjob component | false |
| consul_backup_days | '\*' | Consul snapshot cronjob component | false |
| consul_group | 'consul | Consul OS group | false |
| consul_role | 'server' | Consul node role, one of ['server', client] | false |

## Collection playbooks
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: nephelaiio
name: consul
version: 0.0.5
version: 0.0.6
readme: README.md
authors:
- Ted Cook <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion playbooks/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
path: "{{ _consul_backup_path }}"
state: directory
owner: consul
group: consul
group: "{{ _consul_group }}"
mode: 0740

- name: Create Consul backup script
Expand Down
3 changes: 2 additions & 1 deletion playbooks/vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
_consul_hostgroup: "{{ consul_group | default('consul') }}"
_consul_hostgroup: "{{ consul_group_name | default('consul') }}"
_consul_update_skip_hostgroup: "{{ consul_update_skip_group | default('consul_update_skip') }}"
_consul_release: "{{ consul_release | default('1.18.1-1') }}"
_consul_release_package: "{{ _consul_release }}"
Expand All @@ -15,3 +15,4 @@ _consul_backup_bin: "{{ consul_backup_bin | default('/usr/local/bin/consul-backu
_consul_restore_bin: "{{ consul_backup_bin | default('/usr/local/bin/consul-restore') }}"
_consul_install_from_repo: "{{ (consul_install_from_repo | default(False)) | bool }}"
_consul_role: "{{ consul_role | default('server') }}"
_consul_group: "{{ consul_group | default('consul') }}"