Hello guys,
I need some help please with an override that I've created : I tryna link my Windows template to specific VMs which are discovered by my VMware template, but it doesn't work.
So this is what it looks like (Sorry for my english by the way) :
discovery_rules:
- uuid: f90290623fd34fXXXXXXXXXXXXXX
name: 'VMware VM discovery'
type: SIMPLE
key: 'vmware.vm.discovery[{$VMWARE.URL}]'
delay: 5s
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
filter:
evaltype: AND
conditions:
- macro: '{#VM.POWERSTATE}'
value: '{$VMWARE.VM.POWERSTATE}'
formulaid: A
description: 'Discovery of guest virtual machines.'
host_prototypes:
- uuid: 54e0021ba71f4fe7aXXXXXXXXXXXX
host: '{#VM.NAME}'
name: '{#VM.NAME}'
group_links:
- group:
name: TEST
custom_interfaces: 'YES'
interfaces:
- ip: '{#VM.IP}'
overrides:
- name: 'Applys Windows template if 4th letter is W'
step: '1'
filter:
conditions:
- macro: '{#VM.NAME}'
value: '^WINT\w{7}'
operator: MATCHES_REGEX
formulaid: A
I need some help please with an override that I've created : I tryna link my Windows template to specific VMs which are discovered by my VMware template, but it doesn't work.
So this is what it looks like (Sorry for my english by the way) :
discovery_rules:
- uuid: f90290623fd34fXXXXXXXXXXXXXX
name: 'VMware VM discovery'
type: SIMPLE
key: 'vmware.vm.discovery[{$VMWARE.URL}]'
delay: 5s
username: '{$VMWARE.USERNAME}'
password: '{$VMWARE.PASSWORD}'
filter:
evaltype: AND
conditions:
- macro: '{#VM.POWERSTATE}'
value: '{$VMWARE.VM.POWERSTATE}'
formulaid: A
description: 'Discovery of guest virtual machines.'
host_prototypes:
- uuid: 54e0021ba71f4fe7aXXXXXXXXXXXX
host: '{#VM.NAME}'
name: '{#VM.NAME}'
group_links:
- group:
name: TEST
custom_interfaces: 'YES'
interfaces:
- ip: '{#VM.IP}'
overrides:
- name: 'Applys Windows template if 4th letter is W'
step: '1'
filter:
conditions:
- macro: '{#VM.NAME}'
value: '^WINT\w{7}'
operator: MATCHES_REGEX
formulaid: A