[Puppet Users] windows groups - append

2014-08-11 Thread Helen Paterson
Hi, I would like puppet to add additional users to the "administrators" group, however it currently replaces the membership ( removing existing users). How can i change this ? class win_local_admin { group { 'Administrators': ensure => present, members => ['Adm

Re: [Puppet Users] Re: Hiera - how to include all files inside a directory

2014-08-11 Thread Pete Brown
I am glad you found a solution. That looks pretty handy. Thanks for the link. On 1 August 2014 17:30, Juan Moreno wrote: > > Here, we have a solution: > > https://github.com/mapa3m/hiera_multijson_backend > > Cheers > > El jueves, 24 de julio de 2014 14:27:58 UTC+2, Juan Moreno escribió: >> >> H

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-11 Thread Satish Katuru
Correct me If I am wrong.This means puppet automatically takes the latest version of GIT from the Repository and deploy it on the Master Server. What about other softwares like java...etc ? What is the procedure for other software installation which puppet wont take from the repository? On Frida

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-11 Thread Dan White
Yes and no. Yes: it takes the latest git from the repo. No: it will not deploy git on the Puppet Master. It will deploy git on the node running the Puppet agent that has that statement in its catalog. The node can be the Puppet Master, but it also does noy have to be. Other softwares: Accord

[Puppet Users] variable not being picked up by hiera hierarchy

2014-08-11 Thread David LeVene
Hey All, I'm trying to setup environments as well as splitting up the configs to correctly manage various hosts we have - but I'm running into an issue where a variable defined does not seem to be picked up on a puppet run. I'm only referring to one hierarchy so I've left out a few of the other

[Puppet Users] having some troubles when build the master/agent with puppet

2014-08-11 Thread Louis Sherren
I tried to build the master/agent system with puppet, everything went well when I tried to pull the catalogs from the master in the agent here's the environment: master: centos 6 vps (public net) puppet 3.6.2 hostname is snspay.cn and little configuration agent: virtual box centos 6 pu

[Puppet Users] puppet slow when ensuring user with groups in combination with winbind auth

2014-08-11 Thread Jan van Lith
Hi, I am using winbind with "winbind enum groups = yes" on some of our servers. When ensuring a user that is local (and also in AD, so it has a lot of groups) the puppet run takes ages. Winbind process is taking a lot of cpu and when I strace it AD groups are passing by. This is the manifest:

[Puppet Users] puppet firewall redirection policy

2014-08-11 Thread Suresh P
Hi, I'm using puppetlabs/firewall. I need to create following iptable rules: iptables -A PREROUTING -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 8443 8 REDIRECT tcp -- 0.0.0.0/00.0.0.0/0 tcp dpt:443 redir ports 8443 My manifests is firewall { '001 def

Re: [Puppet Users] remote command execution from puppet dashboard ?

2014-08-11 Thread Christopher Wood
Puppet isn't really designed for real-time orchestration. Possibly you want to look into mcollective? http://puppetlabs.com/mcollective It will get you this sort of thing, and more (what OS are all my systems on the dev collective running?): $ mco facts operatingsystem Report for fact: operati

[Puppet Users] puppetlabs-firewall module - purging unmanaged firewall chains?

2014-08-11 Thread oogs
Hi, We (my colleagues and I) have a question about using the purge attribute in puppetlabs/firewall 1.1.3. Specifically, the per-chain purge attribute listed here: https://forge.puppetlabs.com/puppetlabs/firewall#050---2014-02-10 If I have this as my node definition: node oogs-test01 { in

Re: [Puppet Users] Puppetdb query. Search two classes

2014-08-11 Thread Ken Barber
>> Thanks, but I says about query like this: >> >> ["and", >> ["and", >> ["=", "type", "Class"], >> ["=", "title", "Php"]], >> ["and", >> ["=", "type", "Class"], >> ["=", "title", "Nginx"]]] > > Think about what this does behind the scenes on the resources endpoint > (see the qu

[Puppet Users] Mcollective and Bamboo issue

2014-08-11 Thread Guy Knights
I'm trying to execute a custom mcollective RPC call via Atlassian Bamboo and have run into a frustrating issue. I've posted this question to the Bamboo community help page but figured I could try asking the same thing here in case anyone's run into this problem as well, even though I suspect it

Re: [Puppet Users] Mcollective and Bamboo issue

2014-08-11 Thread R.I.Pienaar
- Original Message - > From: "Guy Knights" > To: puppet-users@googlegroups.com > Sent: Monday, August 11, 2014 7:56:45 PM > Subject: [Puppet Users] Mcollective and Bamboo issue > > I'm trying to execute a custom mcollective RPC call via Atlassian Bamboo > and have run into a frustrating

Re: [Puppet Users] Mcollective and Bamboo issue

2014-08-11 Thread Guy Knights
Ahh...that explains a lot. I modified my RPC client to make the shell commands write the output (including error) to a log file, and when it's run via bamboo it never writes to the log file. So it seems like it doesn't even get to the point of executing the shell command, which seems very possi

Re: [Puppet Users] Mcollective and Bamboo issue

2014-08-11 Thread R.I.Pienaar
- Original Message - > From: "Guy Knights" > To: puppet-users@googlegroups.com > Sent: Monday, August 11, 2014 9:00:53 PM > Subject: Re: [Puppet Users] Mcollective and Bamboo issue > > Ahh...that explains a lot. I modified my RPC client to make the shell > commands write the output (inc

Re: [Puppet Users] windows groups - append

2014-08-11 Thread Rob Reynolds
On Mon, Aug 11, 2014 at 3:01 AM, Helen Paterson wrote: > Hi, > > I would like puppet to add additional users to the "administrators" group, > however it currently replaces the membership ( removing existing users). > How can i change this ? > > > class win_local_admin { > > group { 'Administrato

Re: [Puppet Users] puppetlabs-firewall module - purging unmanaged firewall chains?

2014-08-11 Thread Hunter Haugen
> > oogs@oogs-dev:/etc/puppet-dev/modules/firewall/lib/puppet/type$ grep -A6 > purge firewallchain.rb > newparam(:purge, :boolean => true) do > desc <<-EOS > Purge unmanaged firewall rules in this chain > EOS > newvalues(:false, :true) > defaultto :false > end > > I assume

Re: [Puppet Users] scheduled_task changes on every puppet run

2014-08-11 Thread Rob Reynolds
On Thu, Aug 7, 2014 at 6:36 AM, cko wrote: > Hi, > > I'm using the following scheduled_task on one of my windows server 2008 r2 > boxes: > > scheduled_task { 'reboot': >> command => 'C:\WINDOWS\System32\shutdown.exe', >> arguments => "-r -f -t 01", >> user => 'SYSTEM', >> trigger

Re: [Puppet Users] puppetlabs-firewall module - purging unmanaged firewall chains?

2014-08-11 Thread oogs
Hi Hunter, Yes, oogs-dev is the master in this case. This environment also has the latest version of puppetlabs/firewall. As for the caching issue, the puppet daemon uses passenger to have multiple copies of the daemon running simultaneously, and they usually reload every 5-10 minutes. Runnin

[Puppet Users] install windows package

2014-08-11 Thread huhm4n
is it possible to install the windows package using puppet? I know I can do it using the Powershell but I want to dry run it to ensure if it is installed first? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group an

Re: [Puppet Users] Mcollective and Bamboo issue

2014-08-11 Thread Guy Knights
Ok, I'll take a look at that. Thanks! On Monday, August 11, 2014 1:03:50 PM UTC-7, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Guy Knights" > > > To: puppet...@googlegroups.com > > Sent: Monday, August 11, 2014 9:00:53 PM > > Subject: Re: [Puppet Users] Mcollective and

Re: [Puppet Users] How to install GIT on puppet Server

2014-08-11 Thread Vikas Kumar
Hi Satish, I would make a local repo and install it from there, just in case my server isn't connected to internet. If it is, you need not worry about it. Just install the package, and tweak the configuration files for your setup. Regards, Vikas On Monday, 11 August 2014 19:50:45 UTC+10, Sati

[Puppet Users] Re: having some troubles when build the master/agent with puppet

2014-08-11 Thread Louis Sherren
any helps?? 在 2014年8月11日星期一UTC+8下午7时00分47秒,Louis Sherren写道: > > I tried to build the master/agent system with puppet, everything went well > when I tried to pull the catalogs from the master in the agent > > here's the environment: > > master: centos 6 vps (public net) puppet 3.6.2 hostname

Re: [Puppet Users] Re: having some troubles when build the master/agent with puppet

2014-08-11 Thread Spencer Krum
I believe you should watch this https://www.youtube.com/watch?v=TdAmAj3eaFI In it, Mike tells us that we should not making puppeting puppet our first task for puppet. I can also point you to the learning tools online: Which should help you get started http://puppetlabs.com/download-learning-vm I

Re: [Puppet Users] Re: having some troubles when build the master/agent with puppet

2014-08-11 Thread Louis Sherren
thanks for the video. I have already done almost everything include the cleaning $ssldir thing, I have used another agent and everything is ok, so I think it is something wrong with my virtual box centos, I believe if I used the official vbox image it will go well too. Now I want to figure out

[Puppet Users] Wild Card in Augeas

2014-08-11 Thread Vikas Kumar
Dear All, I am trying to use augeas to change the value of NM_CONTROLLED to "no" on all my RHEL 6.X machines. However, the number of ethernet cards differ on each server, thus I want to use expression or wild cards. if $::operatingsystemmajrelease == '6' { augeas { "network-tweaks

[Puppet Users] How can we add multiple lines to a file ?

2014-08-11 Thread Vikas Kumar
Hello, I am looking for an option to add multiple lines to a */etc/bashrc* and */etc/profile*. I can do this with *file_line*, but is there any other alternative. *file_line* does the job but for each line I will have to create a *file_line* resource, which does not sound good for multiple line