[Puppet Users] Re: How to find version of an application on nodes

2018-01-30 Thread Brandon Blackmoor
We've upgraded the Puppet master, and are working on the Puppet agents now. Out of curiosity, is there an example facter script of the type people have mentioned here? I think that would be a useful thing to have on hand. On Monday, January 29, 2018 at 5:17:56 AM UTC-5, Brandon Blackmoor

Re: [Puppet Users] How to find version of an application on nodes

2018-01-29 Thread Brandon Blackmoor
5:29:52 AM UTC-5, Martin Alfke wrote: > > Hi Brandon, > > > On 25. Jan 2018, at 23:17, Brandon Blackmoor > wrote: > > > > I apologize if this is a stupid question, but I am still a novice at > Puppet. I have been asked if it is possible to use Puppet to find o

[Puppet Users] How to find version of an application on nodes

2018-01-29 Thread Brandon Blackmoor
I apologize if this is a stupid question, but I am still a novice at Puppet. I have been asked if it is possible to use Puppet to find out if an application (apparmor, specifically) is installed on our various nodes (Ubuntu servers, specifically). The nodes are all running puppet agent and so o

[Puppet Users] set fact based on top scope variable

2015-04-17 Thread Brandon Metcalf
Is it possible to reference a top scope variable passed in from an ENC and set a fact based on that? That is, parameters: var: value I know it's the other way around that top scope variables are set from facts, but just trying to figure out the best way to do this other that writing out a scri

Re: [Puppet Users] inline template variable access

2014-09-12 Thread Brandon Metcalf
On Thursday, September 11, 2014 6:15:16 PM UTC-5, Henrik Lindberg wrote: > > On 2014-12-09 1:06, Henrik Lindberg wrote: > > On 2014-11-09 22:57, Brandon Metcalf wrote: > >> > >> > >> On Thursday, September 11, 2014 12:56:50 PM UTC-5, Henrik Lindberg &g

Re: [Puppet Users] inline template variable access

2014-09-11 Thread Brandon Metcalf
On Thursday, September 11, 2014 12:56:50 PM UTC-5, Henrik Lindberg wrote: > > On 2014-11-09 16:04, Brandon Metcalf wrote: > > > > On Sunday, September 7, 2014 9:39:56 AM UTC-5, Felix.Frank wrote: > > > > On 09/06/2014 11:09 PM, Spencer Krum wrote: >

Re: [Puppet Users] inline template variable access

2014-09-11 Thread Brandon Metcalf
On Sunday, September 7, 2014 9:39:56 AM UTC-5, Felix.Frank wrote: > > On 09/06/2014 11:09 PM, Spencer Krum wrote: > > > > $java_home = $java_home_var > > > > Barring that, this is the correct way to use a template: > > > > $java_home = inline_template('<%= @java_home_var %>') > > Well, yes,

[Puppet Users] Re: puppet (3.7.0) module install fails with a specific module that worked on puppet 3.6.2

2014-09-08 Thread Brandon High
On Friday, September 5, 2014 1:44:17 PM UTC-7, Anderson Mills wrote: > > Sebastian, > > So, this is caused by symlinks in this module which don't have a > corresponding directory or file. Puppet 3.7.0 now checks for symlinks, and > unfortunately has a File Not Found error if the symlinks don't

[Puppet Users] inline template variable access

2014-09-05 Thread Brandon Metcalf
Using puppet 3.4.3 and getting the following warning: Variable access via 'java_home_var' is deprecated. Use '@java_home_var' instead. template[inline]:1 from the following line: $java_home = inline_template('<%= scope[@java_home_var] %>') Any

[Puppet Users] Meeting Puppet contractors

2014-03-11 Thread Brandon Clark
I'm not clear on what the etiquette is here but I was hoping to reach out to the puppet community to see if there are any sysops people here who are looking for work. My current admin recently got a new job and moved on so I have need of a replacement person with puppet experience. If these kind

[Puppet Users] Re: config print seems to be broken

2013-09-23 Thread Brandon Metcalf
On Monday, September 23, 2013 4:47:45 AM UTC-5, Rahul Khengare wrote: > > Hi Brandon, > puppet config print option print the environment variable of [main] > section only it is not overridden by another config block. > Check the config block of environment variable present in p

[Puppet Users] config print seems to be broken

2013-09-22 Thread Brandon Metcalf
Am I missing something or is this behavior broken: $ puppet -V 3.2.3 $ grep environment /etc/puppet/puppet.conf environment = bmetcalf $ puppet config print environment production Thanks. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

Re: [Puppet Users] Can't find source of "Removing mount" errors

2013-06-20 Thread Brandon
I've searched, but haven't found anything. I will continue looking. On Thursday, June 13, 2013 6:25:35 AM UTC-7, jcbollinger wrote: > > > > On Thursday, June 13, 2013 1:34:32 AM UTC-5, denmat wrote: >> >> Hi, >> >> You sure that a grep for 'mount' through your manifest finds nothing? >> >> > Ye

[Puppet Users] Can't find source of "Removing mount" errors

2013-06-12 Thread Brandon
I'm maintaining part of a rather large puppet config and at a loss to figure out where the following errors are coming from during a puppet update: err: Removing mount all: /var/lib/puppet/files/all does not exist or is not a directory err: Removing mount pixel: /var/lib/puppet/files/pixel does

[Puppet Users] Re: Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Brandon Groves
Thanks for the help. I ended up removing the postgres user on the puppet agent machine and directing puppet in the module manifest file to create the postgres user. And now Exec ["postgres init"] runs properly. On Tuesday, March 19, 2013 10:30:09 AM UTC-4, Brandon Groves wrote

[Puppet Users] Puppet modifying directories by executing shell script as non-root user results in kernel-level insufficient privilege complaints

2013-03-19 Thread Brandon Groves
is that Exec ["postgres init"] does not run as expected because the initdb command in the shell script fails to write files to the data directory. All the permissions on the files and directories are correct and when I do: [root@host]# su postgres bash-4.1$ ./initializePostgres.sh , t

[Puppet Users] Re: How To Expand an .erb Template Without Doing a Full Puppet Run?

2013-02-24 Thread Brandon
ss it shouldn't be hard to wrap the above into a script. One could use a directory from mktemp and generate a minimal manifest from a here-document or by pulling it out of the original manifest with awk/sed... Hope that helps, Brandon -- You received this message because you are subscribed to

[Puppet Users] Pass Variable to Virtual Resource

2012-10-30 Thread Brandon Bell
and pass them in to a `define` and it works, however I cannot do this using virtual resources in order to work from multiple modules. Thanks, Brandon -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visi

[Puppet Users] from= in ssh key

2012-03-28 Thread Brandon
Fairly new to puppet here and trying to figure out a couple of issues with distributing ssh keys. First one is how can I distribute a public key with the from= field at the beginning. What I currently have working is ssh_authorized_key { "brandon": user => "br

Re: [Puppet Users] could not find class

2011-03-15 Thread Brandon Metcalf
Thanks. This is what I thought and I tried moving that class to a module named groups to no avail. I'll revisit to see what I did wrong. On Mar 15, 2011, at 4:48, Martijn Grendelman wrote: > On 14-03-11 22:31, Brandon Metcalf wrote: >> I'm using the module https://github

[Puppet Users] could not find class

2011-03-14 Thread Brandon Metcalf
I'm using the module https://github.com/sansnoc/puppet/tree/master/users but running into a problem where puppet can't find a class. In /etc/ puppet/manifests/nodes.pp I have node basenode { include hosts include groups::namidev include users::people include users::namidev } node 'uti

[Puppet Users] Remote Facts Hack

2011-03-08 Thread Brandon Black
[1]['server_tokens'].split(/,/) i = 0 while i < nprocs do svrs.push(sprintf('%s:%u/%s', ip, sport + i, stokens[i])) i += 1 end } servers = svrs.join("\n") %><%= servers %> -- Brandon -- You received

Re: [Puppet Users] Using Ruby DSL requires master restart for unrelated changes?

2011-03-08 Thread Brandon Black
k sanely. Still using 2.6.1 from the official stable repos for clients, seems to work fine. -- Brandon -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe

Re: [Puppet Users] Puppetd Cron Not Running

2010-08-23 Thread Brandon Evans
On 8/23/10 9:15 AM, Franck wrote: So I've decided to use crontab for all my puppet clients rather than the daemon. I've set-up a puppetmaster with seven puppet clients. I'm using the following pattern: class cron { $minute = generate('/usr/bin/env', 'sh', '-c', 'printf $((RANDOM %60+0)

[Puppet Users] Re: Any ideas about this error with upgrading to 0.25.1?

2009-11-04 Thread Brandon Evans
conf directory on the puppetmaster. -brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this gro

[Puppet Users] Re: [Puppet-dev] ANNOUNCE: Puppet 0.25.1 released!

2009-11-02 Thread Brandon Evans
f into the RPM also. It is part of the "Migration to REST" [http://reductivelabs.com/trac/puppet/wiki/ReleaseNotes#migration-to-rest] process and is signficantly different the the other puppet configuration files. -brandon --~--~-~--~~~---~--~~ You

[Puppet Users] Environment variable access inside an exec

2009-06-04 Thread Brandon Whalen
e ' /etc/fstab | grep -c nosuid` -eq 0", environment => "MNT_OPTS=`grep ' \/home ' /etc/fstab | awk '{print $4}'`"; } Could someone tell me what I'm doing wrong and tell me what I need to do to fix it or point me at some examples. Regards, Brandon

[Puppet Users] Puppet not creating users home directories

2009-06-02 Thread Brandon Whalen
e the user is created the home directory of the user is not. If I run puppet after the installation of the operating system is complete the users home directory is successfully added. Anyone have any ideas what might be happening? Thanks in adv

[Puppet Users] Re: --enablerepo=epel*

2009-05-21 Thread Brandon Evans
> I requested this feature but it was rejected. > > http://projects.reductivelabs.com/issues/2247 > > Ben I ran into the same issue. There is another similar feature request that would solve this issue. http://projects.reductivelabs.com/issue

[Puppet Users] Re: Puppet and yum repositories

2009-05-01 Thread Brandon Evans
your Fedora boxes to find out. Hopefully this helps you out. Left me know if you have any more questions or hop into #puppet in freenode. There is usually someone there who will answer any questions you have. -Brandon Evans > Help most welcome! Tim > > On Apr 30, 10:19 pm, Brand

[Puppet Users] Re: Assign variable with content of a file?

2009-05-01 Thread Brandon Evans
no-can-do. What exactly are you trying to get done? -brandon John Florian wrote: > Anyone know of how I can do in puppet the equivalent of this from the > land of shell scripting? > > foo=$(cat /tmp/bar) > > or if you prefer >

[Puppet Users] Re: Cant get puppet to remove rpm's with circular dependencies

2009-05-01 Thread Brandon Evans
at is disabled by default (yum --enablrerepo=rpmforge) I ended up reluctantly creating custom Exec's for both scenarios. There is a feature request ticket open for the issue I mentioned http://projects.reductivelabs.com/issues/915 -Brandon Jim Pirzyk wrote: > I see the same dependency

[Puppet Users] Re: Puppet and yum repositories

2009-04-30 Thread Brandon Evans
lease %>/$basearch mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-<%= lsbmajdistrelease %>&arch=$basearch failovermethod=priority enabled=<%= enableme %> gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL == SNIP == -Brandon t.kend...@kew.org wr

[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.

2009-04-16 Thread Brandon Evans
It is Redhat 8 from 2002 >:-} My first swing at getting it running on rh8 didn't go so well. The method listed here seems to work fine. Since my original post I have since rolled it out to my redhat 8 boxes (about 6 of them) and everything is running smooth. -brandon David Lu

[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.

2009-04-15 Thread Brandon Evans
> Hey Brandon, > > Good work, one question though. I see that you are make && make > install 'ing at a lot of places. Wouldn't it be better if you just > download the latest source rpm and modify the spec file instead? > > Just a though. > Perha

[Puppet Users] Re: How To: Puppet Setup on Redhat 8 using the puppet gem.

2009-04-15 Thread Brandon Evans
Will do. I'll clean it up a little and add try to add it today. -Brandon Peter Meier wrote: > Hi > >> I got puppet installed and running on Redhat 8 today. I'm passing on my >> notes to the list to help out others that may want or need puppet >> running o

[Puppet Users] How To: Puppet Setup on Redhat 8 using the puppet gem.

2009-04-14 Thread Brandon Evans
ted in /opt/puppet/lib/ruby/gems/1.8/bin. I ended up creating a puppet module that links the different binaries from the gems directory to /usr/bin & /usr/sbin then adds an init script to /etc/init.d * When you run puppetd for the first time it

[Puppet Users] Re: looking for puppet on redhat el 3

2009-03-31 Thread Brandon Evans
have you tried installing using the ruby gem method? http://reductivelabs.com/trac/puppet/wiki/InstallationGuide#Alternative:UsingRubyGems I got fairly far using this method with Redhat 8 before having to put my Redhat 8 + puppet project on hold. -Brandon Vincent wrote: > Hello, >