[Puppet Users] Set Home environment at runtime

2014-10-29 Thread shashank
Hi, Require to execute some puppet commands on puppet server i.e master node eg: puppet resource user or puppet cert clean pclient. While trying to execute these commands through generate() I am continuously getting error i.e Error: Could not initialize global default settings: couldn't find H

Re: [Puppet Users] Filebucket

2014-10-29 Thread Garrett Honeycutt
On 10/30/14 12:01 AM, Tom Tucker wrote: > Hello. I have a file bucket question. I believe I have file bucket > configured correctly. I am able to backup a change file and restore it > My question is how do get a list of files for a particular host or > revisions for a particular file. > > > Th

[Puppet Users] Filebucket

2014-10-29 Thread Tom Tucker
Hello. I have a file bucket question. I believe I have file bucket configured correctly. I am able to backup a change file and restore it My question is how do get a list of files for a particular host or revisions for a particular file. Thanks Info: /Stage[main]/Sudo/File[/etc/sudoers]: File

Re: [Puppet Users] Puppet, inventory, and single sources of truth.

2014-10-29 Thread Robin Lee Powell
On Wed, Oct 29, 2014 at 02:09:25AM -0700, Gavin Williams wrote: > Sounds like The Foreman [1] might be a good option if you want to manage > 'should', not 'is'... > > [1] http://theforeman.org/ *nod* Thanks, I should look at that again; it's been a while. Unfortunately our internal abstractio

Re: [Puppet Users] Does Puppet restart a failed service by default?

2014-10-29 Thread Josh Holland
On Wed, 29 Oct 2014, at 08:24 PM, shaunington wrote: > My question is: If sshd dies will the puppet agent (v2.7.x) restart sshd > the next time it runs on the client? Yes. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from thi

[Puppet Users] Does Puppet restart a failed service by default?

2014-10-29 Thread shaunington
Hi, Here is a V simple class: class ssh { package { 'openssh-server': ensure => installed, } service { 'sshd': enabled => true, ensure => running, } } My question is: If sshd dies will the puppet agent (v2.7.x) restart sshd the next time it runs on the client? TI

[Puppet Users] Re: certificates being 'randomly' revoked

2014-10-29 Thread Cliff Wells
On Wednesday, March 19, 2014 2:14:15 PM UTC-7, jcbollinger wrote: > > > > On Wednesday, March 19, 2014 10:15:19 AM UTC-5, st...@wtfast.com wrote: >> >> What would happen if I chattr +i ca_crl.pem to prevent it being updated? >> >> Certificate revocation is something that should be manually contro

Re: [Puppet Users] NUB here with a question as I go through the tutorials

2014-10-29 Thread Walid
you would need the exec resource to execute the "who -b" and filters you apply to it On 29 October 2014 20:09, Erik Ritzman wrote: > I am fairly new to DSP and am experimenting as I follow along with the > Puppet Tutorial > > Playing off of the Task 1 in the Conditionals section... > my conditi

[Puppet Users] NUB here with a question as I go through the tutorials

2014-10-29 Thread Erik Ritzman
I am fairly new to DSP and am experimenting as I follow along with the Puppet Tutorial Playing off of the Task 1 in the Conditionals section... my conditionals.pp worked as the example gave; however I was wanting to add on the "else" statement what the "uptime" is and then to state when the de

[Puppet Users] Re: puppetlabs mcollective module + clustering

2014-10-29 Thread Juan Sierra Pons
El viernes, 10 de enero de 2014 10:44:43 UTC+1, Andrey escribió: > > Is anyone using mcollective module from puppetlabs? > is there built-in way to configure activemq clustering between 2 DCs which > I am missing? > > > Andrey > Hi, I am facing the same issue now: configuring activemq clusterin

[Puppet Users] Filesystem mounting in sequence with puppet

2014-10-29 Thread amogh patel
Hi Puppet Users, I've a requirement to create filesystem and mount 10 disks. For that, I've created this define and calling that define with hash. I need to mount these disks in sequence like below: /dev/sdb1 917G 72M 870G 1% /data/01 /dev/sdc1

[Puppet Users] can we use facts in file location of puppet facts

2014-10-29 Thread Spriya
Hi, I am trying to id fact in path location for new puppet facts. *logfile = "/home/${::id}/javaapp.txt"* *log = Facter::Util::FileRead.read(logfile)* can we use like this? Please help me -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Re: beaker test fails to resolve "agent" roles, works if role is master/database

2014-10-29 Thread Kevin Imber
Hi Manish, I'm having some trouble reproducing the problem that you're seeing. This is working for me with the tests given using generic beaker, although I'm using a different hypervisor at the moment. Are you using beaker-rspec and the modules acceptance tests? Thanks, Kevin On Tuesday, O

[Puppet Users] puppet is the best tool for the following operations?

2014-10-29 Thread Diego Lagos
Hello everyone, I ask you a hand to better understand if puppet is the right tool to use in my company. I had the task of carrying out an exploratory survey of puppet and this is a short summary of the various tasks that should be performed. 1. copy files from a repository (nexus and ftp)

[Puppet Users] Re: beaker test fails to resolve "agent" roles, works if role is master/database

2014-10-29 Thread Josh Partlow
On Tuesday, October 28, 2014 2:10:11 AM UTC-7, Manish Sapariya wrote: > > Hi, > I have the nodeset definition as follows.. > > -- Some of the attributes removed for clarity > -- > HOSTS: > kpointvm1.zencite.com: > roles: > - master > hypervisor : vagra

Re: [Puppet Users] ENC vs manifest - cage match

2014-10-29 Thread Atom Powers
Jon, Were you asking which tool you should use, or asking what happens when you define the same variable in both tools? An ENC sets global variables, "parameters". A manifest uses data from variables/parameters. Puppet won't let you redefine or duplicate a variable or resources so in that contex

[Puppet Users] Custom / nested resource types - crackpot ideas

2014-10-29 Thread JonY
Is it (reasonably) feasible to add new resource types? I don't want to disassemble the whole code base but if there is a known path to this I'd like to read about it. Some thoughts:It strikes me that there are at a few situations that I run into with this SW that would make for decent addition

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-29 Thread jcbollinger
On Wednesday, October 29, 2014 8:31:12 AM UTC-5, jcbollinger wrote: > > Without the certname specified in your config file, does Puppet > successfully serve correct manifests? > I meant "serve correct *catalogs*," of course. John -- You received this message because you are subscribed to th

[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2014-10-29 Thread jcbollinger
On Tuesday, October 28, 2014 3:41:06 PM UTC-5, Victor Danilchenko wrote: > > So, I just started randomly twiddling knobs, and I realized the 'puppet > module list' starts returning proper values once I comment out the ' > certname' setting in /etc/puppet/puppet.conf: > > certname=kmadmin102.vist

Re: [Puppet Users] Re: ENC vs manifest - cage match

2014-10-29 Thread JonY
I have to use an ENC as there are DB calls to be made to determine which nodes get which SW. AFAIU hiera can't do this. On Wednesday, October 29, 2014 6:13:42 AM UTC-7, R.I. Pienaar wrote: > > > > - Original Message - > > From: "jcbollinger" > > To: "puppet-users" > > > Sent: Wednesd

Re: [Puppet Users] Re: ENC vs manifest - cage match

2014-10-29 Thread R.I.Pienaar
- Original Message - > From: "jcbollinger" > To: "puppet-users" > Sent: Wednesday, October 29, 2014 1:09:04 PM > Subject: [Puppet Users] Re: ENC vs manifest - cage match > On Wednesday, October 29, 2014 5:44:41 AM UTC-5, JonY wrote: >> >> If we throw these two into the octagon.. who wi

[Puppet Users] Re: ENC vs manifest - cage match

2014-10-29 Thread jcbollinger
On Wednesday, October 29, 2014 5:44:41 AM UTC-5, JonY wrote: > > If we throw these two into the octagon.. who wins? If one says "add it" > and the other says "remove it".. what do I end up with? > Two techs enter, one tech leaves! Or not. I really can't agree with the premise that a winner b

Re: [Puppet Users] ENC vs manifest - cage match

2014-10-29 Thread Thomas Bendler
It depend on the scope, there are already some modules with in module hiera that do not fully work in conjunction with ENC (i.e. puppetlabs/mcollective). You can still use the module but you can't benefit from in module hiera. If you can accept this limitations, Foreman is from my point of view the

Re: [Puppet Users] ENC vs manifest - cage match

2014-10-29 Thread Felix Frank
On 10/29/2014 11:44 AM, JonY wrote: > If we throw these two into the octagon.. who wins? If one says "add it" > and the other says "remove it".. what do I end up with? There are exactly two things that might compel me to consider using an ENC: 1. If I really wanted a web interface for managing m

[Puppet Users] ENC vs manifest - cage match

2014-10-29 Thread JonY
If we throw these two into the octagon.. who wins? If one says "add it" and the other says "remove it".. what do I end up with? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, s

Re: [Puppet Users] Puppet, inventory, and single sources of truth.

2014-10-29 Thread Gavin Williams
Sounds like The Foreman [1] might be a good option if you want to manage 'should', not 'is'... [1] http://theforeman.org/ On Wednesday, 29 October 2014 03:35:36 UTC, Robin Powell wrote: > > On Sun, Oct 26, 2014 at 06:09:08PM -0700, Garrett Honeycutt wrote: > > On 10/26/14 4:46 PM, Robin Lee Po