export ips from nodes to puppetdb.

asked 2018-03-12 14:17:47 -0500

Research PuppetDB export/imports for bastion host project.

The goal is to have a module with a resource like

ssh_authorized_key

{ somekey': ensure => present, user => 'ec2-user', type => 'ssh-rsa', key => 'blahblah', options => "$imported_options" } where $imported_options is equal to

from=" 1.2.3.4, 5.6.7.8, 9.10.11.12 "

where 1.2.3.4, 5.6.7.8, 9.10.11.12 is a comma-separated list dynamically generated from PuppetDB.

What is the best way to have Puppet clients matching a certain criterion export their IPs to PuppetDB in a way they can be used by this module.

edit retag flag offensive close merge delete