Hi,
I'm very impressed with the director approach. I hope it can live up
to be usable for automation and still for end users. Like it
promises. What I have tested I really nice!
II got the CSV import working with fileshipper. I want to try to
import my Puppet facts (for now with the fileshipper, I'll also try
PuppetDB shipper)
I was able to import the directory on the filesystem with Director.
I'm configuring the sync rule, but I'm stuck.
The yaml files has this data:
--- !ruby/object:Puppet::Node::Facts
name: gamba1.ugent.be
values:
filesystems: "btrfs,ext3"
boardproductname: "440BX Desktop Reference Platform"
boardserialnumber: None
kernel: Linux
ipaddress: 1.1.1.1
...
I'm having trouble setting up the sync. Unfortunately I need to go
two levels deep.
How can I access value '1.1.1.1' above?
$values[ipaddress]
$values{ipaddress]
All get translated to "$values{ipaddress]"
E.g.
object Host "myhost.be" {
address = "$values[ipaddress]"
}
A second question. Then import setting isn't in the source file, I can
add it manually (I did that for my csv import) as a static translation
(defined in the properties)
But do I need to really do it for every import?
Thank you in advance,
Rudy
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert e-mail: rudy.geva...@ugent.be
Directie ICT, Afdeling Infrastructuur
Groep Systemen tel: +32 9 264 4750
Universiteit Gent fax: +32 9 264 4994
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users