Hello,

I have this setup but don't know how to implement it in puppet. There are 3 
servers: puppetmaster, agent1, agent2

In order to setup agent1, I need to run a command on agent2 and return the 
data.

I know "file" can generate() function to run a command. However, it runs on 
the puppetmaster but I need it to run on agent2 instead. Is it possible 
with puppet? How? Thanks

file { "/tmp/setup_data":
            content => generate(
                "/bin/sh",
                "/tmp/script_on_puppetmaster.sh",
                $myvar,
            )
        }

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/kYGRX3e0B1kJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to