Hi,
i'm trying to setup an automatic dns master/slave rollout with puppet.
"master nodes" are getting *role: role::network_service::named_master* and
"slave nodes" *role::network_service::named_slave*. quite simple so far.
But i don't know how to get slave-ips to master configuration. We have
already working PuppetDB and i tried first with just simple example to
understand exported resources of puppet:
on Master:
code...
Host <<| tag == 'exported-slaves' |>>
@@host { $::fqdn:
ip => $::facts['networking']['ip'],
tag => 'exported-named-masters'
}
code...
on Slaves:
code...
@@host { $::fqdn:
ip => $::facts['networking']['ip'],
tag => 'exported-named-slaves'
}
Host <<| tag == 'exported-named-masters' |>>
code...
This populates for an example /etc/hosts successfully.
But how can i get the ips only to populate my erb templates or manifests?
I would appreciate any help.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/b6e93fbe-dfcb-4a87-98fe-2dfcc94960a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.