Good morning,
I have also some questions:
I want to switch to the director module and was able to configure what
is needed. I've chosen as Query type "Nodes" and also tried "Resources"
and looks fine in the preview (also with the facts). But If I try to
synchronize the objects (@@Icinga::Host), than the host config is empty.
object Host "fc-r02-ceph-osd-04.example.com" {
}
All the facts disappear. The question for me is: what I did wrong. What
is the difference between "Node" and "Resource"? I think, with Resource
I can import more things, than just hosts.
In the sync rule "settings" I used:
Source name (PuppetDB Foo) Sourcefield (${certname}) and Target
object_name.
Is that correct ?
To get the facts into the Director via puppetdb import ... do I need to
import / create all the values ?
My puppet node looks like:
icinga2::host:
address: 1.2.3.4
vars:
ipmi_exclude_sensor_id: '3354'
smart_disk_type: 'ssd'
blockdevices:
'sda':
'path': '/dev/sda'
'iostats_disk': 'sda'
'sdb':
.....
and in the common.yaml I have:
#### Icinga related things ####
icinga2::host:
vars:
os: Linux
client_endpoint: "%{::fqdn}"
domain: "%{::domain}"
hostname: "%{::hostname}"
address: "%{::ipaddress}"
cores: "%{::processorcount}"
virtual_machine: "%{::is_virtual}"
virtual_machine_type: "%{::virtual}"
distro: "%{::operatingsystem}"
distro_name: "%{::lsbdistcodename}"
distro_version: "%{::operatingsystemrelease}"
puppet_classes: "%{::puppet_classes}"
puppet_modules: "%{::puppet_modules}"
role: "%{::role}"
disks:
'disk /':
disk_partitions: '/'
'disk /var':
disk_partitions: '/var'
The main question is: After configure the access to the PuppetDB ...
what are the next steps ?
cu denny
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users