Here is the generic code for host entires:

class abcd::hosts (

) inherits abcd::params {
 
host { 'etc_hosts':
    ensure       => 'present',
    name         => $fqdn,
    ip           => $ip,
    host_aliases => $host_aliases,
  }
##############
above values want to populate from yaml file and below is the output of 
yaml file for single host entry. what if I want to add multiple host 
entires using same variable. 
abcd.yaml
abcd::fqdn: 'example.com'
abcd::ip: '1.1.1.1'
abcd::host_aliases: 'example'
can some one please give me syntax to add multiple entires in hiera using 
single host attribute in manifest?
 
and here is the example line using in params.pp.
fqdn = hiera('abcd::fqdn', 'default.com')
 

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6e7482de-8df0-4c26-ada1-ef8b0b988ecd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to