Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-16 Thread Martin Alfke
On Sep 17, 2013, at 8:18 AM, Rahul Khengare wrote: > Hi Mani, > > Case2: A=true, when B runs it fails > Error 400 on SERVER: > Duplicate definition: Package[pkg1] is already defined in > file A at line ; cannot redefine at > > How do i overcome this issue to complete the workflow of module B

[Puppet Users] Re: The security of the puppet master

2013-09-16 Thread huangming...@gmail.com
I want the puppetmaster can sign the manifest. avoid some guys publish dangerous manifest to agent. like exec{"foo": command=>"rm / -rf";} there is a software named samhain. it's a integrity checker and host intrusion detection system . when compile the source code of the software, you can c

[Puppet Users] Re: Need help with defining same package resource in two modules

2013-09-16 Thread Rahul Khengare
Hi Mani, Case2: A=true, when B runs it fails > Error 400 on SERVER: > Duplicate definition: Package[pkg1] is already defined in > file A at line ; cannot redefine at > > How do i overcome this issue to complete the workflow of module B in both > cases (where A is enabled or disabled) > If modu

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Rahul Khengare
Hi Adeel, You can send the manifests execution reports to puppet master. For the execution report files refer /var/lib/puppet/reports directory. For that you have to add report=true in /etc/puppet/puppet.conf file # # /etc/puppet/puppet.conf file # [agent] report =true >From the reports .

[Puppet Users] Need help with defining same package resource in two modules

2013-09-16 Thread Mani Devarajan
Hello all, I have two puppet modules A & B. A module is enabled or disabled with flag set to true or false respectively. I need a package pkg1 to do complete the workflow of B. Module A: package { "pkg1": ensure => "installed" } Module B: package { "pkg1": ensure => "installed" } C

Re: [Puppet Users] Re: Need input on how to run a file with list of commands

2013-09-16 Thread Mani Devarajan
Hello Wolf, Thanks for the reference. It is very useful information. Thanks again, Mani On Sun, Sep 15, 2013 at 10:58 PM, Wolf Noble wrote: > > Glad to hear you got it worked out! > > You might have good luck with this module for controlling network > interfaces > https://github.com/adrienthe

Re: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-16 Thread Rastio Hodul
Hi everybody, thanks for all your responses. Sorry for coming back this late, I was out of commission for a while... At the end I am going with the solution described here http://www.linuxuser.co.uk/tutorials/unattended-ubuntu-installations The first commenter there created a script to do the w

[Puppet Users] node performance - rack wrapper app

2013-09-16 Thread Ryan Bowlby
Hi All, For those of us dealing with slow puppet runs, due to having hundreds or thousands of node manifests, I've release a simple rack wrapper app. The app will determine which site.pp to use based on the fqdn of the requesting agent. It just a wrapper to the puppet rack call that passes the

Re: [Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 10:53:38 AM UTC-5, Sean LaFreniere wrote: > > From the command line all works fine, only not from Puppet. BTW, I am > not the only one with this complaint online on your forums and elsewhere, > people complain that Tar works, but not UnTar. -S > > I see no reas

[Puppet Users] Re: End of Life Plan for Puppet 2.7.x

2013-09-16 Thread Aaron Stone
Hey Sam, following up from Puppet Conf. Anything I can do to assist with forthcoming 2.7.x releases? In particular, the full deprecation notices you mentioned in person would be great to get into a release! Cheers, Aaron On Wednesday, August 21, 2013 3:03:18 PM UTC-7, Sam Kottler wrote: > > Wi

Re: [Puppet Users] "puppet module install simondean/iis" gives error "Error: cert already in hash table"

2013-09-16 Thread Rob Reynolds
Yes, that is the one that I meant. I know you hate hearing this question, but did you reboot after you removed it (prior to module install) for full effect? On Mon, Sep 16, 2013 at 1:24 PM, Samuel Huang wrote: > If what you mean by Machine store is the Local Computer, I just deleted it > from b

Re: [Puppet Users] Re: How to specify kernel version from puppet and downgrade pkg version.

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 10:40:43 AM UTC-5, Yan Xiaofei wrote: > > Hello John > > Thanks very much! I am a new user of puppet. > > If I have lot of machines that install different version of kernel. I want > them install the same version. > Do I need specify delete all other version of ker

Re: [Puppet Users] Re: How to specify kernel version from puppet and downgrade pkg version.

2013-09-16 Thread Yan Xiaofei
Hello John Thanks very much! I am a new user of puppet. If I have lot of machines that install different version of kernel. I want them install the same version. Do I need specify delete all other version of kernel? Another question : I didn't find where to set the arch of package from resource

Re: [Puppet Users] default data lookup w/ hiera2? "Data in Modules"

2013-09-16 Thread robbyt
Henrik, Thank you for your quick response. Sorry mine wasn't so quick- Google ate my message, perhaps it contained too many curly braces. :) Anyhow, adding a default argument option to lookup() would be great. But adding the option to pass a hash with keyword arguments would be even better! P

Re: [Puppet Users] default data lookup w/ hiera2? "Data in Modules"

2013-09-16 Thread robbyt
And yes, a 3rd positional argument for the default would be fantastic. (For now...) On Thursday, September 12, 2013 12:13:37 AM UTC+3, Henrik Lindberg wrote: > Does adding a 3d argument to lookup for default cut it for you? > > Regards > - henrik > > > -- You received this message because y

Re: [Puppet Users] Re: Incorrect return code for failed exec

2013-09-16 Thread Igor Berger
Done: https://projects.puppetlabs.com/issues/22572 On Thursday, September 12, 2013 10:07:49 AM UTC-4, Rob Reynolds wrote: > > Please log this at > https://projects.puppetlabs.com/projects/puppet/issues/new > > In keywords, please put windows. > > Thanks. > > > On Tue, Sep 10, 2013 at 11:29 AM, I

Re: [Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-16 Thread Sean LaFreniere
From the command line all works fine, only not from Puppet. BTW, I am not the only one with this complaint online on your forums and elsewhere, people complain that Tar works, but not UnTar. -S On 9/12/13 5:54 AM, Matthew Burgess wrote: On 11 September 2013 23:55,

Re: [Puppet Users] Re: SSH configuration Question

2013-09-16 Thread Darin Perusich
I wrote an ssh_config defined type, unpublished, to manage every sshd config value. This allowed me to set custom options like $port, $allowgroups, create $match and $match_conditions, etc, on a server by servers basis. -- Later, Darin On Mon, Sep 16, 2013 at 12:02 PM, jcbollinger wrote: > > > O

[Puppet Users] Re: SSH configuration Question

2013-09-16 Thread jcbollinger
On Sunday, September 15, 2013 10:00:16 PM UTC-5, John.1209 wrote: > > I'm somewhat new to puppet and I have this issue with SSH. > > Let's say I have 6 different SSH configurations. How do I get puppet to > install or upgrade SSH based on the configurations? Assume the O/S and > SSHD versions

[Puppet Users] Re: /var/opt/lib/pe-puppet/reports/$hostname yaml files not recent

2013-09-16 Thread root
Still cannot figure out why I have such a variety of dates for the yaml files that exist in /var/opt/lib/pe-puppet/reports/`hostname` on each node. Each node is configured with "report = true", and the reports are supposedly being sent to the Master. Not sure at all why sometimes I get a loca

[Puppet Users] Unable to specify hierarchy for data-in-modules

2013-09-16 Thread Igor Berger
Hello, I'm running Puppet agent stand-alone on Windows. I got data-in-modules working. However, no matter what I put into the module hiera.yaml, I can only override the defaults from common.yaml by osfamily (and not, e.g., by environment). In the setup below the following command outputs: >pu

[Puppet Users] Re: The security of the puppet master

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 2:20:21 AM UTC-5, huangm...@gmail.com wrote: > > hi,guys > > when you use the puppet manage all you production server. the > security of the puppet master is very very very very import. > because if the hacker control the puppet master server. the can

Re: [Puppet Users] Re: Puppet Resources Ordering

2013-09-16 Thread chengkai liang
Thanks for this information. I'm now looking at the anchor pattern. On Sep 16, 2013, at 6:43 AM, jcbollinger wrote: > > > On Monday, September 16, 2013 12:19:50 AM UTC-5, Rahul Khengare wrote: > Hi Chengkai, > I have faced similar kind of problem for class ordering using ordering > arrow

[Puppet Users] Re: How to deploy & excecute script remotely

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 1:25:59 AM UTC-5, Raju Patil wrote: > > Hi, > > I am new to Puppet & just had installed Puppet master on Centos.And > manging Linux & Windows nodes, now I would like to deploy and execute > script on one of my Linux Box Remotely from > Puppet Master. > > Appri

[Puppet Users] Re: How to specify kernel version from puppet and downgrade pkg version.

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 1:57:19 AM UTC-5, Yan Xiaofei wrote: > > Hello > > I have some kernel moduls rpms related to specific kernel version. > Is there a method to control kernel versions by puppet? > You can use Puppet to install and remove kernel packages. You can control what versio

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 7:18:24 AM UTC-5, Adeel Bhatti wrote: > > It adds the entry in the log file but locally, I want to have agent's > entry on the puppet server's log file !! > is it possible ? > > Puppet's mechanism for communicating general information about nodes to the master is "

[Puppet Users] Re: Puppet agent and puppet master

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 7:40:35 AM UTC-5, Adeel Bhatti wrote: > > Thanks for your reply ! > This would be really cool if the agent can look and identify the manifect > changes ! > I have a service restart in my class, so I want to execute that only if > there is some change in the configu

[Puppet Users] Re: Puppet Resources Ordering

2013-09-16 Thread jcbollinger
On Monday, September 16, 2013 12:19:50 AM UTC-5, Rahul Khengare wrote: > > Hi Chengkai, > I have faced similar kind of problem for class ordering using ordering > arrow (*->)*. You can try the stage resources for ordering classes. > > Run stages are indeed a mechanism for controlling applic

Re: [Puppet Users] Puppet agent and puppet master

2013-09-16 Thread Peter Bukowinski
Adeel, This is already how puppet operates by default if your manifest is written correctly. You should not be explicitly telling puppet to restart your service each time the agent runs. Instead, you should create a dependency relationship between the service and its configuration file (and eve

[Puppet Users] Re: Failed to apply catalog: Netowork is unreachable - connect(2)

2013-09-16 Thread jcbollinger
On Friday, September 13, 2013 4:46:55 PM UTC-5, Anup Singh wrote: > > Error: Failed to apply catalog: Netowork is unreachable - connect(2) > Error: Could not send report: Network is unrechable - connect (2) > logged in as roop > > Test > telnet localhost 8041 (61613 and 443) > connected > telnet

Re: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-16 Thread jcbollinger
On Saturday, September 14, 2013 8:38:31 AM UTC-5, Rich Siegel wrote: > > > the Puppet code by which you achieve the OS installation is totally > different from what you would use to maintain any part of the installed > system post installation, via a client running on it? > > Yes but within o

[Puppet Users] Re: Puppet Resources Ordering

2013-09-16 Thread JuanBrein
This could be related to a bug in puppet, even though the dependency is defined between classes, the resources within the classes float and get executed in a different order. Take a look at the "anchor" pattern in the puppetlabs documentation. Juan On Sunday, September 15, 2013 6:14:17 AM UTC

[Puppet Users] Re: How to deploy & excecute script remotely

2013-09-16 Thread JuanBrein
Not hard at all... just use "file" resource to deploy the file and then "exec" to execute it: file{ "/path/to/my/script.sh" source => "puppet:///modules/${module_name}/script.sh", mode => 755, } ~> exec { "/path/to/my/script.sh" refreshonly => true, } The important bit here is the ~> . T

[Puppet Users] Re: Puppet to install and rollback using single module.

2013-09-16 Thread JuanBrein
Hi Neanudorn Is very difficult... you could try but if you really want to do it properly is going to take you a lot of time for all the modules. The main problem I foresee is that adding things is easy, but removing them is hard as you need to identify each of the objects that were added. Ie w

[Puppet Users] Re: Puppet agent and puppet master

2013-09-16 Thread Adeel Bhatti
Thanks for your reply ! This would be really cool if the agent can look and identify the manifect changes ! I have a service restart in my class, so I want to execute that only if there is some change in the configuration/manifest ! Regards Adeel On Monday, September 16, 2013 2:20:24 PM UTC+2,

[Puppet Users] Re: when does 'updated_at' column get updated?

2013-09-16 Thread John Santana
Does anyone know? On Wednesday, September 11, 2013 5:08:23 PM UTC-4, John Santana wrote: > > Using centos 6 with puppet-2.6.17 with thin_storeconfigs with mysql and > nagios exported resources. Every time an agent connects to the master, the > updated_at column in the hosts table is updated. How

[Puppet Users] Re: Puppet agent and puppet master

2013-09-16 Thread Rahul Khengare
Hi Adeel, First time you have to access the puppet agent and do the certificate generation and signing on puppet master. After that you can set the runinterval parameter in pupet.conf file( puppet agent request the puppet master manifests at defined time interval). This will automatically req

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Adeel Bhatti
It adds the entry in the log file but locally, I want to have agent's entry on the puppet server's log file !! is it possible ? Adeel On Monday, September 16, 2013 2:08:28 PM UTC+2, Sneha More wrote: > > Hi, > You can get response from puppet, depend upon what you want to achieve. > *1st case

Re: [Puppet Users] Puppet agent and puppet master

2013-09-16 Thread Adeel Bhatti
Hi, Could we not run the agent command from the server ? The point is if I have the access the client after changing the configuration on puppet master it would be tedious ! BTW, Puppet master Enterprise server functions the same way or it provides this funtionality ? Adeel On Monday, Septem

Re: [Puppet Users] Puppet agent and puppet master

2013-09-16 Thread Virender Khatri
You can use splay to schedule agent run and yes, you can view agent run / changes status in /var/log/messages. http://docs.puppetlabs.com/references/latest/configuration.html#splay -V On Mon, Sep 16, 2013 at 4:27 PM, Adeel Bhatti wrote: > Hi, > Is it nesseccary to access the client machine an

[Puppet Users] Re: Executing command via puppet !

2013-09-16 Thread Sneha More
Hi, You can get response from puppet, depend upon what you want to achieve. *1st case* : if you want to log the output of command "nginx -t", you can use attribute logoutput => "true" or "false" of exec resource Please refer http://www.puppetcookbook.com/posts/exec-output-logging.html fo

[Puppet Users] Puppet agent and puppet master

2013-09-16 Thread Adeel Bhatti
Hi, Is it nesseccary to access the client machine and execute the agent command manually to take in configuration ? or if the agent can know itsself that the server has some changes for it !! secondly, can't we have agent's logs/status of taking in changes/configurations ? I am using open sour

[Puppet Users] Re: puppet healthcheck

2013-09-16 Thread redalert . commander
Hi, I worked around the problem, the solution is documented at [1], not written by me. Basically I use a bash script with curl in combination with xinetd and the loadbalancer allows to specify a different port for the health check. Best regards, Steven [1] http://uberobert.com/puppet_master_hea

[Puppet Users] Puppet to install and rollback using single module.

2013-09-16 Thread Chatchai Neanudorn
Hi all, I would like to provide installation and rollback for any module. Here are was I've tried but not work, At modules/katie/manifests/init.pp class katie::add { tag 'add' user {'katie': ensure => present, } } class katie::remove { tag 'remove' user {'katie': ensure => absent, } } clas

[Puppet Users] Re: Solaris useradd uses /export/home and not /home

2013-09-16 Thread Andreas Dvorak
Many thanks John. Now it is solved. Here is the solution. init.pp class admin_user::group { group { "baaderadm": gid => "888", ensure => present, } } class admin_user { include admin_user::group, admin_user::list } list.pp class admin_user::list { admin_user::useradd { "

[Puppet Users] How to deploy & excecute script remotely

2013-09-16 Thread Raju Patil
Hi, I am new to Puppet & just had installed Puppet master on Centos.And manging Linux & Windows nodes, now I would like to deploy and execute script on one of my Linux Box Remotely from Puppet Master. Appriciate your help. Pls. share steps to be followed for achieving above tast. -- You

[Puppet Users] Executing command via puppet !

2013-09-16 Thread Adeel Bhatti
Hi, Is it possible to get response of a command from puppet ? For example if I run "nginx -t" it would give some details about the configurations i.e. if configuration has some error then which file has the error ! Regards -- You received this message because you are subscribed to the Google G

[Puppet Users] How to specify kernel version from puppet and downgrade pkg version.

2013-09-16 Thread Yan Xiaofei
Hello I have some kernel moduls rpms related to specific kernel version. Is there a method to control kernel versions by puppet? Another question is : Some time we need upgrade pkg version and downgrade pkg version, is possible by puppet? Regards Xiaofei -- You received this message because y

[Puppet Users] The security of the puppet master

2013-09-16 Thread huangming...@gmail.com
hi,guys when you use the puppet manage all you production server. the security of the puppet master is very very very very import. because if the hacker control the puppet master server. the can control you all servers. and can do anythings he want. I think most compan