Ask Your Question

Revision history [back]

export ips from nodes to puppetdb.

Research PuppetDB export/imports for bastion host project.

The goal is to have a module with a resource like


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

from=",, "

where,, 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.