changed name of zabbix tag group
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -5,7 +5,7 @@ pipeline {
|
|||||||
string(
|
string(
|
||||||
name: 'LIMIT',
|
name: 'LIMIT',
|
||||||
defaultValue: '',
|
defaultValue: '',
|
||||||
description: 'Limit to specific hosts or groups (e.g., "vms", "lxcs", "zabbix", or hostname) no .lan required'
|
description: 'Limit to specific hosts or groups (e.g., "vms", "lxcs", "zabbix_targets", or hostname) no .lan required'
|
||||||
)
|
)
|
||||||
booleanParam(
|
booleanParam(
|
||||||
name: 'DRY_RUN',
|
name: 'DRY_RUN',
|
||||||
@@ -33,7 +33,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
echo "Testing dynamic inventory connection..."
|
echo "Testing dynamic inventory connection..."
|
||||||
ansible-inventory -i inventory/inventory.proxmox.yml --list | head -10
|
ansible-inventory -i inventory/inventory.proxmox.yml --graph zabbix_targets
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ groups:
|
|||||||
update_targets: "'update' in (proxmox_tags | default([]))"
|
update_targets: "'update' in (proxmox_tags | default([]))"
|
||||||
docker_hosts: "'docker' in (proxmox_tags | default([]))"
|
docker_hosts: "'docker' in (proxmox_tags | default([]))"
|
||||||
kubernetes: "'k8s' in (proxmox_tags | default([]))"
|
kubernetes: "'k8s' in (proxmox_tags | default([]))"
|
||||||
zabbix: "'zabbix' in (proxmox_tags | default([]))"
|
zabbix_targets: "'zabbix' in (proxmox_tags | default([]))"
|
||||||
|
|
||||||
compose:
|
compose:
|
||||||
ansible_host: name + '.lan'
|
ansible_host: name + '.lan'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: Install Zabbix Agent2 on tagged Proxmox hosts
|
- name: Install Zabbix Agent2 on tagged Proxmox hosts
|
||||||
hosts: zabbix
|
hosts: zabbix_targets
|
||||||
become: true
|
become: true
|
||||||
gather_facts: true
|
gather_facts: true
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user