Created zincati update schedule and wariness settings
This commit is contained in:
parent
af6443a5eb
commit
8f424db147
8
hosts
8
hosts
@ -33,5 +33,13 @@ bitcoin_version=26.0
|
||||
bitcoin_rpcpassword=rVhfmriXjB8uFekmn7sLvnUiY610JaOx
|
||||
electrs_version=0.10.2
|
||||
zerotier_network=
|
||||
#Update wariness - 1 = very reluctant to update, 0 = eager to update
|
||||
#days - which days to update (its a list)
|
||||
#starttime - 24hr time format of when updates are permitted
|
||||
#length - how long is update window open
|
||||
update_wariness=0.75
|
||||
update_schedule_days=['Sat']
|
||||
update_schedule_starttime="02:00"
|
||||
update_schedule_length=60
|
||||
|
||||
|
||||
|
||||
@ -89,3 +89,34 @@
|
||||
state: stopped
|
||||
masked: true
|
||||
|
||||
- name: Set {{ ansible_user }} user to linger
|
||||
become: yes
|
||||
become_method: sudo
|
||||
command: loginctl enable-linger {{ ansible_user }}
|
||||
args:
|
||||
creates: /var/lib/systemd/linger/{{ ansible_user }}
|
||||
|
||||
- name: Set update zincati wariness to {{update_wariness}}
|
||||
become: yes
|
||||
become_method: sudo
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/zincati/config.d/10-update-wariness.toml
|
||||
content: |
|
||||
[identity]
|
||||
rollout_wariness = {{update_wariness}}
|
||||
|
||||
- name: Set update schedule for zincati
|
||||
become: yes
|
||||
become_method: sudo
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/zincati/config.d/20-update-schedule.toml
|
||||
content: |
|
||||
[updates]
|
||||
strategy = "periodic"
|
||||
|
||||
[[updates.periodic.window]]
|
||||
days = {{ update_schedule_days }}
|
||||
start_time = {{ update_schedule_starttime }}
|
||||
length_minutes = {{ update_schedule_length }}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user