Am 28.01.2014 08:09, schrieb krishna bhaskara rao:

> I have installed puppetmaster in ubuntu machine and i have installed
> puppet in all my clients using apt-get. I have joined all my puppet
> clients with puppet master. Is it possible to copy a file to all these
> puppet clients from puppet master instead of going into agent and
> issue the command to pull?

No. The master does not actively push stuff to the agents. However, you
also don't need to "go into agent and issue the command to pull". The
agent runs as a daemon and queries the master every 30 minutes, so all
you need to do is to provide a manifest containing a "file" resource
which puts your file in place.

For example, a simple approach to change the agents puppet.conf could
look like this:

/etc/puppet/modules/puppetconf/manifests/init.pp

class puppetconf {

  service { 'PuppetAgent':
    name => 'puppet',
    ensure => 'running',
    enable => 'true',
    subscribe => File['puppet.conf'],
  }

  file { 'puppet.conf':
    path => '/etc/puppet/puppet.conf',
    ensure => file,
    source => 'puppet:///modules/puppetconf/puppet.conf',
  }
}

You would then put the puppet.conf file that should be copied to your
agents into /etc/puppet/modules/puppetconf/files.

HTH...

    Dirk
-- 

*Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions
*Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rheinbach
*Tel*: +49 2226 1596666 (Ansage) 1149
*Email*: d...@recommind.com <mailto:d...@recommind.com>
*Skype*: dirk.heinrichs.recommind
www.recommind.com <http://www.recommind.com>



http://www.recommind.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/52E75A61.7080703%40recommind.com.
For more options, visit https://groups.google.com/groups/opt_out.

<<inline: Logo.gif>>

Reply via email to