Skip to content

Commit

Permalink
Refactor hostgroup parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed May 5, 2024
1 parent 3346595 commit 80722d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
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 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') }}"

0 comments on commit 80722d9

Please sign in to comment.