I need a push in the right direction. I have a need to have a subset of
hosts in my environment "register" themselves to receive rsync updates from
a central host. I realize that the right approach is exported resources
but I'm getting stuck on the actual implementation.
Here is what I tried:
in one module
define registerhost() {
include parms
concat::fragment("$fqdn fragment":
content => "${fqdn}",
target=>"${parms::filenmae}"
}
}
and elsewhere
@@registerhost {"${fqdn}": }
and then to marshal the resources
concat { "${parms::filename}":
ensure => present,
backup=> true,
owner => root, group=> root, mode => 0644
}
Registerhost <<||>>
What I'm seeing is
/usr/local/etc/remote-masters.txt]/returns: The fragments directory is
empty, cowardly refusing to make empty config files
I watched the puppetdb log and it would seem something is being written to
puppetdb and puppetdb is the backend for storeconfigs.
so... suggestions?
--
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/CAArvnv22a%3DOf_5XX%3DPocetco_pLKt89%3DHNsrhc5Fny5kgwhpRg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.