On Tuesday, 28 March 2017 23:04:09 BST 'Jason B. Nance' via Foreman users 
wrote:
> Hello,
> 
> Has anyone happened to already have written some code to get the
> "provisioning" IP (provision: true in the foreman_interfaces array) for a
> host for use in a Puppet ERB template?

I'm not aware of any puppet module for working with foreman_interfaces, 
although that would be cool :)

You could use something more generic (like https://github.com/voxpupuli/
puppet-network) and pass in data via the smart parameters - then you'd put 
something like <%= @host.provision_interface.ip %> in your matcher

HTH
Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to