I created a module to copy one file from the master and install to agents 
and it works fine with code below: but now I am trying to copy 3 different 
files in different directory and install each one on different environment. 
For example: file A need to be installed on all agents in A environment 
File B need to be installed on all agents in B environment File C need to 
be installed on all agents in C environment

  1 class profile::ma {
  2
  3 file { '/tmp/filename.sh':
  4     ensure  => 'present',
  5     replace => 'no',

  6     source  => 'puppet:///module/files/filename.sh',
  7     mode   => '0755',
  8     notify  => Exec['install'],
  9
 10 }
 11
 12    exec { 'install':
 13      command     => '/tmp/filename.sh -i',
 14      onlyif      => '/usr/bin/test ! -e /etc/filetocheck',
  15 }16}

-- 
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/fccc5dd3-adfb-48ab-96ea-8a808c0ca64b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to