Hi,
the code below will work, but it will not magically transfer file
contents as seen on host A to the master and from there to host B.
Any state you wish puppt to maintain you have to make known to puppet.
If you want puppet to pickup and process any piece of information from
an agent, you will have to write a custom fact for it. (Contents of
large files are ill fit to be shared as custom facts, though.)
HTH,
Felix
On 01/23/2012 06:10 PM, Lorenzo Salvadorini wrote:> Hi all,
> can I export a file present on a puppet client not created by puppet
itself?
>
> In example:
>
> On host A I have a file /var/www/my_intranet_site/htusers that I like to
> have on host B too
>
> class exporter {
> @@file { "/var/www/my_intranet_site/htusers":
> tag => "basic_auth_users",
> ensure => present,
> }
> }
>
> class importer {
> File <<| tag == "basic_auth_users" |>>
> }
>
> host A {
> include exporter
> }
>
> host B {
> include importer
> }
>
>
> Thanks,
> L.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.