Running Scripts from puppet master withou interacting the puppet agent on Amazon ec2 instance

68 views
Skip to first unread message

Dilip Varma

unread,
Sep 27, 2013, 7:15:02 AM9/27/13
to puppet...@googlegroups.com
Hi,

I'm newbie to Puppet even i don't know how to configure it.

Could you please tell me how to run scripts from puppet master to puppet agent without interacting the agent nodes(like rack,bootstrap from puppet master)?

is there any puppet cook books or any puppet pdfs?







Thanks in advance,
Dilip

Sneha More

unread,
Sep 27, 2013, 7:34:34 AM9/27/13
to puppet...@googlegroups.com
Hi Dilip,
   If you want to execute any script on client, then just transfer that script to puppetclient using "File" resource
and execute it using "exec" resource.
Refer link  http://www.puppetcookbook.com/ for Puppet cookbook
or http://docs.puppetlabs.com/learning/ral.html for learning resources, manifests, ordering, modules, classes etc.

I hope this will help you.

Thanks & Regards,
Sneha More,
NTT DATA GTS, OSS Center, India, Pune

Dilip Varma

unread,
Sep 27, 2013, 7:37:26 AM9/27/13
to puppet-users
i'll try and let u know,Thank You

Thanks,
Dilip


--
You received this message because you are subscribed to a topic in the Google Groups "Puppet Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/puppet-users/I-sRO41KFKs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to puppet-users...@googlegroups.com.
To post to this group, send email to puppet...@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

jcbollinger

unread,
Sep 27, 2013, 10:06:23 AM9/27/13
to puppet...@googlegroups.com


On Friday, September 27, 2013 6:15:02 AM UTC-5, Dilip Varma wrote:
Hi,

I'm newbie to Puppet even i don't know how to configure it.

Could you please tell me how to run scripts from puppet master to puppet agent without interacting the agent nodes(like rack,bootstrap from puppet master)?



I'm having trouble understanding the question.  Do you mean bona fide scripts (shell, perl, etc.), or do you mean configuration declarations contained in Puppet manifests (which are sometimes inaccurately called "scripts")?  Only in the former case might Puppet Exec resources be relevant.

In any case, it sounds like you are asking for a way to have the puppet master directly modify another computer, without any active participation from the target computer.  In general, that is flat impossible, with or without Puppet.  Only if the master and target machine share a disk is it conceivable; that might be if the target node is in fact a VM hosted on the same hardware as the master, or if target node is diskless and the master can write to the network filesystem(s) that serves the target node.  Even then, the manifests that you would use in such cases are fundamentally different from those you would use for a standard master / agent setup, or for direct application by the target node.

It is possible to use Puppet as part of a provisioning process, but except in special cases such as discussed above, they all involve Puppet code running on the target machine.  A master does not need to be involved, though it is often convenient to use one, especially if the node will continue to be managed via that master after it is deployed.


John

Reply all
Reply to author
Forward
0 new messages