[Puppet Users] Re: Pushing git repo to Windows agent

2014-03-10 Thread jcbollinger
On Friday, March 7, 2014 2:13:47 PM UTC-6, Nick Miller wrote: > > Hi, > > I'm just starting out with puppet, and I have a basic handle on it. What > I've been tasked to do is to be able to push files from a git repo to > Windows servers. The servers themselves will have no internet access, so

[Puppet Users] puppetdb question !!!

2014-03-10 Thread Rakesh Kathpal
Hi, Its been some time that I have been working with puppet. I have recently installed puppetdb and am using puppetdb APIs to fetch the data about facts etc.. Few things that I have noticed are 1) Whenever I add a custom fact, I do not see it in the postgresql db until I delete all the facts f

Re: [Puppet Users] Have to run puppet agent twice to install LDAP and ssh keys.

2014-03-10 Thread jcbollinger
On Friday, March 7, 2014 11:38:20 AM UTC-6, Christopher Wood wrote: > > (inline) > > On Fri, Mar 07, 2014 at 09:39:44AM -0600, Kenton Brede wrote: > >I've got a module that installs and configures LDAP for user > >authentication.� I've got another module that creates user > directorie

[Puppet Users] Re: Puppet, Foreman and Modules

2014-03-10 Thread jcbollinger
On Friday, March 7, 2014 10:56:09 AM UTC-6, James James wrote: > > Hello, > First of all, sorry for my poor english > > I am trying to use foreman, puppet with modules. The razorsedge ( > https://forge.puppetlabs.com/razorsedge/network) network module. I have > created a manage folder in

[Puppet Users] Re: scheduling defined resources

2014-03-10 Thread jcbollinger
On Friday, March 7, 2014 8:57:58 AM UTC-6, Mark deJong wrote: > > Hello, > We're currently using version 3.4.3, and the documentation on > metaparameters states "any defined metaparameter can be used with any > instance in your manifest, *including defined components.*" Unless I'm > missing so

Re: [Puppet Users] Any Puppet Labs alternatives to test-kitchen

2014-03-10 Thread Nikola Petrov
Look at https://github.com/puppetlabs/beaker although I am not using it myself so I cannot tell you if it is stable enough. -- Nikolavp On Sun, Mar 09, 2014 at 10:35:53AM -0700, Louis wrote: > Any Puppet Labs alternatives for ... > > https://github.com/test-kitchen/test-kitchen > > > -- > Yo

Re: [Puppet Users] Have to run puppet agent twice to install LDAP and ssh keys.

2014-03-10 Thread Christopher Wood
On Mon, Mar 10, 2014 at 06:35:12AM -0700, jcbollinger wrote: >On Friday, March 7, 2014 11:38:20 AM UTC-6, Christopher Wood wrote: > > (inline) > > On Fri, Mar 07, 2014 at 09:39:44AM -0600, Kenton Brede wrote: > >    I've got a module that installs and configures LDAP for user >

Re: [Puppet Users] Versioned Deployment of Modules?

2014-03-10 Thread Nikola Petrov
Look at http://docs.puppetlabs.com/guides/environment.html especially this part http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master. You can specify different modules directories based on the environment and then put different version of base.pp dependin

[Puppet Users] Puppet Forge GCE Module: Mounting additional disks safely

2014-03-10 Thread michael . obrien
Does anyone know if the GCE module on puppet forge http://forge.puppetlabs.com/puppetlabs/gce_compute uses the google tool safe_format_and_mount included in the instance to mount additional persistent disks? -- You received this message because you are subscribed to the Google Groups "Puppet

[Puppet Users] what the mx mean in case

2014-03-10 Thread Teoh khah swee
HI all, I just come across an case statement for puppet. I would like to know what the means of the mx for below sample code? case $::operatingsystem { /(?-mx:AIX)/ :{ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from th

Re: [Puppet Users] what the mx mean in case

2014-03-10 Thread Matt Zagrabelny
On Sun, Mar 9, 2014 at 5:58 PM, Teoh khah swee wrote: > HI all, > > I just come across an case statement for puppet. I would like to know what > the means of the mx for below sample code? > > case $::operatingsystem { >/(?-mx:AIX)/ :{ From: http://perldoc.perl.org/perlre.html (?adlupimsx-im

[Puppet Users] Re: Pushing git repo to Windows agent

2014-03-10 Thread Nick Miller
Thank you for the replies. What I've done is setup the agent on the puppet master to pull the latest version of the repo, then the agents recursively pull the directory. There are a couple of problems I'm running into. The first is that line breaks seem to be stripped from any text files the

[Puppet Users] Export variables from a manifest calling another module

2014-03-10 Thread Brendon Standing
Hi I am busy writing puppet modules for logstash, and want to export tokens I get from the hiera application or %{calling_module} role. So each of my applications/modules that will make use of the shipper module and have the inputs.conf file installed and populated will have the following: c

[Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread David Portabella
exec {'test': command => "/bin/ls /doesnotexit", } fails as expected: Error: /bin/ls /doesnotexit returned 1 instead of one of [0] Error: /Stage[main]//Exec[test]/returns: change from notrun to 0 failed: /bin/ls /doesnotexit returned 1 instead of one of [0] However, exec {'test': command

Re: [Puppet Users] what the mx mean in case

2014-03-10 Thread Joachim Schrod
On 03/10/14 15:37, Matt Zagrabelny wrote: > On Sun, Mar 9, 2014 at 5:58 PM, Teoh khah swee wrote: >> HI all, >> >> I just come across an case statement for puppet. I would like to know what >> the means of the mx for below sample code? >> >> case $::operatingsystem { >>/(?-mx:AIX)/ :{ > > Fro

Re: [Puppet Users] Any Puppet Labs alternatives to test-kitchen

2014-03-10 Thread Gareth Rushgrove
Beaker works pretty well, once you get it setup. Here's a simple example module with some very simple acceptance tests with beaker. https://github.com/garethr/garethr-nginx Compared to Test Kitchen the command line UI is lacking but it's early days. For running tests is good, and worth using base

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread José Luis Ledesma
When you use concatenated commands any shell will only return the last command return code by design, and this is what puppet receives. So its a ' works at a expected' If you need to control each of the return codes just use different exec resources Regards, El 10/03/2014 16:02, "David Portabella

Re: [Puppet Users] puppetdb question !!!

2014-03-10 Thread Deepak Giridharagopal
On Mon, Mar 10, 2014 at 6:30 AM, Rakesh Kathpal wrote: > Hi, > > Its been some time that I have been working with puppet. > > I have recently installed puppetdb and am using puppetdb APIs to fetch the > data about facts etc.. > > > Few things that I have noticed are > > 1) Whenever I add a custom

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread David Portabella
I don't agree with this statement. in bash, for example, if you type "set -e" first, bash will stop and fail as soon as a concatenated command fails. (i agree that this behaviour is unfortunatelly not enabled by default in bash scripts) > If you need to control each of the return codes just use

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread Paul Tötterman
> > in bash, for example, if you type "set -e" first, bash will stop and fail > as soon as a concatenated command fails. > (i agree that this behaviour is unfortunatelly not enabled by default in > bash scripts) > >> exec {'test': >>> command => "/bin/ls /doesnotexit; /bin/echo hello", >>> }

[Puppet Users] how do I check to see whether a hash value is defined if a parent of the hash value might not even exist?

2014-03-10 Thread Steve Neuharth
I've got a big hash of info that looks like this: $web_conf = { my_client => { dev => { ws => { server_name => 'ws.foo.bar', server_aliases => ['ws.dev.bar.foo.com', 'ws.dev.another.foo.com'], }, csr => { server_aliases => ['csr

[Puppet Users] Recursive file delete fails with empty files

2014-03-10 Thread Sam Tresler
Sample config: file { "/var/www/apps": mode=> 0644, owner => "username" group => "groupname", ensure => directory, recurse => true, purge => true, force => true,

Re: [Puppet Users] Have to run puppet agent twice to install LDAP and ssh keys.

2014-03-10 Thread Kenton Brede
OK, stages and chaining doesn't seem to work. I'm running Puppet 3.4.3. The following is executing in order but I still get fails on Users::Admin_homedir_define and Ssh_authorized_key. Class [ 'ldap_auth' ] -> Exec <| title == 'disable_selinux' |> -> Users::Admin_homedir_define <||> -> Ssh_autho

Re: [Puppet Users] Have to run puppet agent twice to install LDAP and ssh keys.

2014-03-10 Thread Christopher Wood
(inline) On Mon, Mar 10, 2014 at 04:29:30PM -0500, Kenton Brede wrote: >OK, stages and chaining doesn't seem to work.  I'm running Puppet 3.4.3.  > >The following is executing in order but I still get fails on >Users::Admin_homedir_define and Ssh_authorized_key. > >Class [ 'ldap_

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread David Portabella
thanks. I agree, using && instead of ; solves the problem. however, again, there are many puppet modules which use concatenated commands, without realising about this problem. and so, I am suggesting that puppet should enable the "set -e" behavior by default. Regards, David On Monday, March 10

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-10 Thread David Arroyo
Along the same lines, many exec resources are written with this behaviour in mind. For example, this exec will initialize the puppet CA certificate. Useful if you're running puppet under something like passenger. exec{'Create initial puppet CA': command => '/sbin/service puppetmaste

Re: [Puppet Users] puppetdb question !!!

2014-03-10 Thread Rakesh Kathpal
Deepak.. Thanks alot for the info, really appreciate your help. 1) Regarding replace facts, I will recheck the issue and get back to you if it still seems to be a bug. 2) The thing is I need to run a report for the newly added report, so I am running a poller script which will poll every 5 mins a