Compare commits

..

2 commits

Author SHA1 Message Date
ecbc961b6a
netbox(host): setup ansible_pull for host and define common config
Some checks failed
/ Ansible Lint (push) Failing after 48s
/ Ansible Lint (pull_request) Failing after 47s
Define common ansible_pull configuration for chaosknoten inventory hosts
and setup ansible_pull for NetBox host.
2025-10-13 16:54:14 +02:00
f52fc82470
ansible_pull(role): introduce ansible_pull role
Introduce ansible_pull role for setting up automatic ansible_pull runs.
Also add accompanying host group and playbook play.
2025-10-13 16:32:30 +02:00
4 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,7 @@
# ansible_pull
# ansible_pull__age_private_key needs to be defined per host (probably HOST.sops.yaml).
ansible_pull__repo_url: https://git.hamburg.ccc.de/CCCHH/ansible-infra.git
ansible_pull__inventory: inventories/chaosknoten
ansible_pull__playbook: playbooks/maintenance.yaml
ansible_pull__timer_on_calendar: "*-*-* 04:00:00 Europe/Berlin"
ansible_pull__timer_randomized_delay_sec: 30min

View file

@ -1,10 +1,3 @@
ansible_pull__repo_url: https://git.hamburg.ccc.de/CCCHH/ansible-infra.git
ansible_pull__inventory: inventories/chaosknoten
ansible_pull__playbook: playbooks/maintenance.yaml
ansible_pull__timer_on_calendar: "*-*-* 04:00:00 Europe/Berlin"
ansible_pull__timer_randomized_delay_sec: 30min
ansible_pull__checkout: ansible_pull
netbox__version: "v4.1.7"
netbox__config: "{{ lookup('ansible.builtin.template', 'resources/chaosknoten/netbox/netbox/configuration.py.j2') }}"
netbox__custom_pipeline_oidc_group_and_role_mapping: true

View file

@ -43,3 +43,5 @@ ola_hosts:
proxmox_vm_template_hosts:
hosts:
thinkcccore0:
ansible_pull_hosts:
hosts:

View file

@ -19,5 +19,3 @@ Should work on Debian-based distributions.
- `ansible_pull__user`: The user to run `ansible_pull` as. Defaults to `ansible_user`.
- `ansible_pull__checkout`: The branch/tag/commit to check out to run the playbook from. Defaults to `main`.
- `ansible_pull__timer_randomized_delay_sec`: The timer will be randomly delayed by a value between 0 and this. Useful to not have all timers fire at the same time, even if `ansible_pull__timer_on_calendar` is the same. Time value in seconds. Defaults to 0.
## Links & Resources