[Puppet Users] Re: Puppet upgrade broke puppet agent on my Oracle Linux 5 and 6 boxes

2017-02-02 Thread Kenton Brede
Strange. It ended up being all my notify attributes quit working. A restart of puppetserver solved the issue. Kenton Brede On Thu, Feb 2, 2017 at 3:24 PM, Kenton Brede wrote: > As it turns out the agents.pp file is on my puppetmaster. If I comment > out my 'mcollective'

[Puppet Users] Re: Puppet upgrade broke puppet agent on my Oracle Linux 5 and 6 boxes

2017-02-02 Thread Kenton Brede
bs/code/environments/production/modules/nagios/manifests/files.pp:7 Kenton Brede On Thu, Feb 2, 2017 at 3:02 PM, Kenton Brede wrote: > On ol7 boxes the puppet agent is working fine. > > This is what I have installed on one of my ol6 boxes: > > # rpm -qa |grep puppet > mcollec

[Puppet Users] Puppet upgrade broke puppet agent on my Oracle Linux 5 and 6 boxes

2017-02-02 Thread Kenton Brede
re is no agents.pp file on my systems. This is an empty directory: /etc/puppetlabs/code/environments/production/modules/ Anyone know how to recover from this? I'm in the process of trying to provision a ol6 box and can't. Thanks, Kenton Brede -- You received this message

Re: [Puppet Users] puppetlabs-release not signed

2016-04-20 Thread Kenton Brede
I'm getting the same for: Package puppetlabs-release-5-12.noarch.rpm is not signed Package puppetlabs-release-6-12.noarch.rpm is not signed Package puppetlabs-release-7-12.noarch.rpm is not signed Kenton Brede On Wed, Apr 20, 2016 at 4:11 AM, Jonathan Gazeley < jonat

Re: [Puppet Users] maestrodev/wget + owner + group + mode

2016-03-10 Thread Kenton Brede
You change the "mode" to the permissions you want. What perms do you want? Kent Kenton Brede On Thu, Mar 10, 2016 at 1:01 PM, Vicente Zepeda wrote: > Hello, I'm new to puppet, I'm using maestrodev/wget to get some file to a > folder I created. > > fi

Re: [Puppet Users] mcollective modules for puppet4

2016-03-05 Thread Kenton Brede
included in the repo and I stuck the files into Puppet and distributed them to the correct directories. Plugins are here: https://github.com/puppetlabs?utf8=%E2%9C%93&query=mcollective- Install guide is here: https://docs.puppetlabs.com/mcollective/deploy/plugins.html hth, Kent Kenton

Re: [Puppet Users] Recommended way to get mcollective working with PC1

2016-01-15 Thread Kenton Brede
That does indeed work. :) Playing around this morning I also found that I could get a working configuration starting with: puppetserver gem install jruby-activemq But using the older Puppet repo makes for a cleaner install. Thanks Stefan, Kent On Fri, Jan 15, 2016 at 10:31 AM, Stefan Heijma

[Puppet Users] Recommended way to get mcollective working with PC1

2016-01-14 Thread Kenton Brede
It doesn't look like PC1 includes middleware for mcollective. I'm not finding documentation specifically for mcollective and PC1. Is activemq still the preferred middleware? If so, should I install the activemq (0.0.1) gem or the jruby-activemq gem (5.5.1)? How can I get the puppetmaster to see

Re: [Puppet Users] 'puppetmaster gem install activemq' issue

2015-12-21 Thread Kenton Brede
ally people are interested in > the activemq java package and not the activemq rubygem. > > [1] - > https://docs.puppetlabs.com/puppetserver/latest/gems.html#gems-with-native-c-extensions > > On Fri, Dec 11, 2015 at 2:01 PM, Kenton Brede wrote: > > Trying to install activem

[Puppet Users] 'puppetmaster gem install activemq' issue

2015-12-11 Thread Kenton Brede
Trying to install activemq on an Oracle Linux 7.2 box. Using puppetlabs-release-pc1-1.0.0-1 which has puppetserver version 2.2.1. Below is the command I ran and the resulting error message. I'm not a java guy. Any advice appreciated. -- Thanks. [puppet ~]# puppetserver gem install activemq Bui

Re: [Puppet Users] Status of activemq

2015-09-22 Thread Kenton Brede
I'm wondering the same thing here. Kent On Wed, Jul 22, 2015 at 6:28 PM, Ellison Marks wrote: > So, I'm going through the dance of upgrading to puppet 4.2 from 3.8 on > CentOS 6, and I've run into a few things that brought up some questions. > During the install, I ran into a number of collisio

[Puppet Users] Anyone successfully use mcollective shell plugin with RHEL 5 & 6?

2015-09-22 Thread Kenton Brede
The title pretty much says it all. I mostly manage RHEL 5 & 6 boxes that come with ruby 1.8.7. The mcollective shell plugin requires ruby 1.9. SCL might work for the RHEL 6 systems but not 5. Building everything from source would work but certainly not ideal. I took a stab at managing ruby wit

[Puppet Users] How do you keep hostnames out of the manifest?

2014-11-03 Thread Kenton Brede
We're a small organization and all my servers are pets. I've made an effort to keep site specific data out of the manifest, but I haven't been able to completely. Hiera has been a big help in getting us most of the way. Is it even possible to have a clean manifest, when a person has pets to mange

Re: [Puppet Users] Augeas and idempotency

2014-10-20 Thread Kenton Brede
hange variables in the file either by hand or with another > tool later and you do not want to change them back. > > Trevor > > On Mon, Oct 20, 2014 at 11:26 AM, Kenton Brede wrote: > >> I'd like to add a "this file managed by puppet" line to the top of the >>

[Puppet Users] Augeas and idempotency

2014-10-20 Thread Kenton Brede
I'd like to add a "this file managed by puppet" line to the top of the files I manage with augeas. This works but is not idempotent. I could add an onlyif but then if I want to change SELINUX to "off" I won't be able to, since the comment will always exist. augeas { 'selinux_config': context =

[Puppet Users] Getting the last of site specific data out of manifest

2014-10-16 Thread Kenton Brede
I'm using OS Puppet 3.7.1. I'm using Hiera and *mostly* have our site specific data out of our modules. I could use some advice on how to handle the following two cases. Case #1 node basenode { include files # files common to all nodes } node 'hostname.example.com' inherits basenode { in

Re: [Puppet Users] File_line match

2014-05-14 Thread Kenton Brede
I tested this and the match is working OK. What I got from what you posted is the following: Error: Failed to apply catalog: Validation of File_line[password policy change] failed: When providing a 'match' parameter, the value must be a regex that matches against the value of your 'line' paramete

Re: [Puppet Users] augeas for setting URIEncoding variable in tomcat, server.xml file.

2014-05-08 Thread Kenton Brede
080" and URIEncoding="UTF-8." But I'm pressed for time and need to get going. Hopefully this will get you down the road a bit further. Someone else may chime in here with a better solution. Kent On Thu, May 8, 2014 at 11:29 AM, Pradeep Reddy wrote: > Thx Kent. >

Re: [Puppet Users] augeas for setting URIEncoding variable in tomcat, server.xml file.

2014-05-08 Thread Kenton Brede
Try something like this: augeas { 'update_server.xml': lens=> 'Xml.lns', context => '/files/opt/apphome/apache-tomcat-7.0.53/conf/server.xml/Server/Service/Connector[*]/#attribute/', incl => "/opt/apphome/apache-tomcat-7.0.53/conf/server.xml", changes => ['ins URIEncodin

Re: [Puppet Users] Re: Setting quotes using augeas type

2014-05-06 Thread Kenton Brede
That's one combination I hadn't tried but it works! Thanks, Kent On Tue, May 6, 2014 at 4:52 AM, wrote: > On Wednesday, April 30, 2014 11:21:47 PM UTC+2, kbrede wrote: > > But when using the augeas type with the following: >> changes => 'set \$database_password "\"test\""', >> >> The file entry

[Puppet Users] Setting quotes using augeas type

2014-04-30 Thread Kenton Brede
I'm using the phpvars lens for a cacti file, trying to set the password. The file entry should look like: $database_password = "testpass"; I can successfully set and save the password with quotes, while using augtool: augtool> set /files/usr/share/cacti/include/config.php/$database_password "\"te

Re: [Puppet Users] Augeas Question

2014-04-28 Thread Kenton Brede
Not ab augeas expert but IIRC what I did in a similar situation is force puppet/augeas to point to only one file. Try adding "context," "incl," and "lens" to your augeas definition, like the example below. By specifying the lens, I think it helps speed up the augeas type also. At least I read th

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-25 Thread Kenton Brede
If the end game is allowing users to add to a Puppet controlled file, perhaps you can use concat, similar to the "class motd" example on this page: https://github.com/puppetlabs/puppetlabs-concat Kent On Thu, Apr 24, 2014 at 8:33 AM, Paul Tötterman wrote: > Hi, > > I'm managing workstations u

Re: [Puppet Users] Best way to manage auth.conf

2014-04-25 Thread Kenton Brede
There's an augeas lens that works with auth.conf, puppet_auth.aug. Would using the augeas type work for you? http://docs.puppetlabs.com/references/latest/type.html#augeas Kent On Tue, Apr 22, 2014 at 1:45 PM, Benjamin72 wrote: > Hi, > > I would like to manage *auth.conf* file of puppet client

Re: [Puppet Users] augeas with puppet : cannot update line

2014-04-23 Thread Kenton Brede
First, it looks to me like you have a typo. I don't have a my.cnf handy ATM but I'd think "setbind-adress" should be "setbind-address." Second, do you have "augeas-libs" installed on your target system? The system you wish the changes to be made need "/usr/share/augeas/lenses/dist/*" in place.

Re: [Puppet Users] Re: Augeas lens to change an arbitrary line in a file?

2014-04-22 Thread Kenton Brede
I'm no expert with augeas but after looking at the gs_init.ps file, I don't know of any current lens that could be easily modified to work with it. I agree with Mike, I'd either use file_line or an exec. File_line is part of stdlib. Click on the "types" tab on this page for an example. https://

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Kenton Brede
Click on the "types" tab on that page and you'll see the documentation for "file_line." Kent On Mon, Apr 21, 2014 at 5:53 PM, Andreas Ntaflos wrote: > On 2014-04-22 00:10, Joachim Schrod wrote: > > On 04/21/14 19:42, Kenton Brede wrote: > >> Look

Re: [Puppet Users] How to check a text file for a certain line?

2014-04-21 Thread Kenton Brede
Look into using "file_line," it's part of stdlib. https://forge.puppetlabs.com/puppetlabs/stdlib If you want to check for an existing line, using an "exec" you can use "onlyif" or "unless." Something like: unless => "grep myline /path/to/file", http://docs.puppetlabs.com/references/latest/type

Re: [Puppet Users] "yum install puppet" vs "gem install puppet" on CentOS with Ruby 2.0. Gem works, not yum.

2014-04-18 Thread Kenton Brede
Puppet from the repo uses ruby 1.8. Your ec2 instance is using ruby 2.0. If you want to change which ruby version you're using on your ec2 servers, you can run: alternatives --config ruby If ruby 1.8 isn't installed on your system, you'll need to install it before you run the "alternatives" com

Re: [Puppet Users] Cleaning up temp files with puppet

2014-03-12 Thread Kenton Brede
How about ending your script with a command that removes itself? /bin/rm path_to_script or /bin/rm $0 Kent On Tue, Mar 11, 2014 at 5:09 PM, nfwlpw wrote: > So I have a puppet module, that gets a script from files/, runs that > script, and after it's done, I'd like to remove it. > > Unfortunat

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
Thanks all! Hiera is smarter than I knew. This is great. :) Kent On Wed, Mar 12, 2014 at 1:42 PM, José Luis Ledesma < joseluis.lede...@gmail.com> wrote: > Try my code, its just what you want. > El 12/03/2014 19:14, "Kenton Brede" escribió: > >> Thanks for the h

Re: [Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
all: > > > > $basepackages = hiera_array('basepackages') > > ensure_packages($basepackages) > > > > Then in hiera be define (or not) arrays of packages by os version, role, > etc... > > > > -Jon > > > > On Wed, Mar 12, 2014 a

[Puppet Users] Replicating += with hiera

2014-03-12 Thread Kenton Brede
I'm in the process of moving to Puppet 3 and hiera. With my old setup I placed users that were on all servers in basenode. Then did a += for any additional users in the node definition. node basenode { users = ['user1', 'user2'] } node server.example.com inherits basenode { users += ['user3'

[Puppet Users] augeas, ntp.conf and iburst

2014-03-12 Thread Kenton Brede
I want to add a server on top of the stack in ntp.conf like: server time.example.com iburst server 0.rhel.pool.ntp.org iburst ... I came up with this: augeas { 'ntp.conf': context => '/files/etc/ntp.conf', changes => [ 'ins server before server[1]', 'set server[1] time.exam

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

2014-03-10 Thread Kenton Brede
2AM -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 co

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

2014-03-07 Thread Kenton Brede
I've got a module that installs and configures LDAP for user authentication. I've got another module that creates user directories and another that assigns ssh keys. Using runstages I force the "ldap" module to run first and the "user" and "ssh_keys" modules to run last. LDAP is installed but th

Re: [Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Kenton Brede
Works great! -- Thanks. On Wed, Mar 5, 2014 at 10:03 AM, Robin Bowes wrote: > Have a look in stdlib for the keys function. > > R. > > > On 5 March 2014 15:56, Kenton Brede wrote: > >> So in hiera I've got: >> >> users_common: >> user1:

[Puppet Users] Possible to get just the keys out of a hiera hash?

2014-03-05 Thread Kenton Brede
So in hiera I've got: users_common: user1: ensure: present home: /home/user1 managehome: true user2: ensure: present home: /home/user2 managehome: true I'm using "users_common" with a create_resources in one class but I'd like to just pull o

Re: [Puppet Users] hiera variable and "if statements" in manifest not working

2014-02-26 Thread Kenton Brede
On Wed, Feb 26, 2014 at 8:26 AM, Felix Frank < felix.fr...@alumni.tu-berlin.de> wrote: > Hi, > > On 02/26/2014 03:18 PM, Kenton Brede wrote: > > vmw_tools_purge: > > - 'PURGE' > > not that you are defining an array here, not a string. That

[Puppet Users] hiera variable and "if statements" in manifest not working

2014-02-26 Thread Kenton Brede
So I've got a variable set in Hiera: --- vmw_tools_purge: - 'PURGE' In the manifest, the following works fine: $vmw_tools_purge = hiera('vmw_tools_purge') notify { $vmw_tools_purge: } But this does not work. The "if statement" is just ignored and notify isn't triggered. What am I doing wr

[Puppet Users] How to purge and install package on same run?

2014-02-25 Thread Kenton Brede
I've got a situation where I need to remove a set of packages and then install the upgraded versions. I can't just upgrade. It's rare that I have to upgrade the software but I'd like to have something in place to upgrade when I have to. What's the best way to handle these types of situations wit

Re: [Puppet Users] Apache/Passenger RHEL6 not working

2011-09-15 Thread Kenton Brede
at 1:37 PM, Kenton Brede wrote: > On Wed, Sep 14, 2011 at 12:33 PM, Gary Larizza wrote: >> >> >> On Wed, Sep 14, 2011 at 11:12 AM, Kenton Brede wrote: >>> >>> I'm attempting to move from a working puppetmaster setup to >>> Apache/Passenger.  

Re: [Puppet Users] Apache/Passenger RHEL6 not working

2011-09-15 Thread Kenton Brede
On Thu, Sep 15, 2011 at 1:46 PM, Kenton Brede wrote: > On Wed, Sep 14, 2011 at 11:30 PM, Ashwin N wrote: >> Hi >> >> Passenger is a rack application - will run out of httpd . >> >> Have you got anything like the following in your passen

Re: [Puppet Users] Apache/Passenger RHEL6 not working

2011-09-15 Thread Kenton Brede
On Wed, Sep 14, 2011 at 11:30 PM, Ashwin N wrote: > Hi > > Passenger is a rack application - will run out of httpd . > > Have you got anything like the following in your passenger (httpd) > configuration file: > >     DocumentRoot /etc/puppet/rack/public/ >     RackBaseURI / >     >  

Re: [Puppet Users] Apache/Passenger RHEL6 not working

2011-09-15 Thread Kenton Brede
On Wed, Sep 14, 2011 at 12:33 PM, Gary Larizza wrote: > > > On Wed, Sep 14, 2011 at 11:12 AM, Kenton Brede wrote: >> >> I'm attempting to move from a working puppetmaster setup to >> Apache/Passenger.  I'm following the instructions in the Pro Puppet >>

[Puppet Users] Apache/Passenger RHEL6 not working

2011-09-14 Thread Kenton Brede
I'm attempting to move from a working puppetmaster setup to Apache/Passenger. I'm following the instructions in the Pro Puppet book. I'm using the epel repo and running puppet 2.6.6. Passenger version 3.0.9 from the stealthymonkeys repo. Running "puppetd -t -d" doesn't seem to tell me anything

Re: [Puppet Users] combining arrays in site.pp

2010-05-28 Thread Kenton Brede
On Fri, May 28, 2010 at 11:15 AM, Michael DeHaan wrote: > On Fri, May 28, 2010 at 11:57 AM, Kenton Brede wrote: >> I'm running 0.25.4.  What I'd like to do is place an array of users >> under the default node.  These users rarely change.  Then within each >> subs

[Puppet Users] combining arrays in site.pp

2010-05-28 Thread Kenton Brede
I'm running 0.25.4. What I'd like to do is place an array of users under the default node. These users rarely change. Then within each subsequent node, have another array of users added to the original array. These users change more frequently. These users are then be snarfed into a template.

Re: [Puppet Users] Re: Facter 1.5.7 and operatingsystemrelease

2009-12-22 Thread Kenton Brede
On Tue, Oct 20, 2009 at 8:45 PM, Ohad Levy wrote: > Hi, > > I for one, thinks that the operatingsystemrelease fact should contain only > the major number of the operating system, e.g. for Centos/Rehat 5.4 it > should return just 5. > > the reason behind it is that I rarely use the full release ver

[Puppet Users] Re: alternative to file by file?

2009-01-14 Thread Kenton Brede
On Wed, Jan 14, 2009 at 1:32 PM, Jewels wrote: > > Hi, > > If I wanted to monitor and serve up every file in a folder) i.e > all .db files in a folder for DNS server, is there an easy way to do > it without having to list each file? Can I use wildcards? I don't have > a test server right now, so

[Puppet Users] Re: Module Standards

2008-09-30 Thread Kenton Brede
On Mon, Sep 29, 2008 at 1:30 PM, Digant C Kasundra <[EMAIL PROTECTED]> wrote: > > > - "Kenton Brede" <[EMAIL PROTECTED]> wrote: > >> My question is, what's wrong with this setup? I ask this realizing >> the smallness of our >> opera

[Puppet Users] Re: Module Standards

2008-09-26 Thread Kenton Brede
2008/9/25 Luke Kanies <[EMAIL PROTECTED]>: > > On Sep 16, 2008, at 12:16 PM, Digant C Kasundra wrote: > >> >> Hello everyone, >> >> My team and I have been mulling over the module standards that were >> proposed (http://www.reductivelabs.com/trac/puppet/wiki/ModuleStandards >> ) >> >> Members of o

[Puppet Users] Re: Module Standards

2008-09-23 Thread Kenton Brede
Except foo::_files is a "syntax error".. Kent 2008/9/23 Kenton Brede <[EMAIL PROTECTED]>: > I vote for foo::_files. > Kent > > 2008/9/22 Digant C Kasundra <[EMAIL PROTECTED]>: >> >> When things are fairly small, it isn't an issue and cer

[Puppet Users] Re: Module Standards

2008-09-23 Thread Kenton Brede
differentiate is > valuable, even if just for us OCD folks. :) > > > - Original Message - > From: "Kenton Brede" <[EMAIL PROTECTED]> > To: puppet-users@googlegroups.com > Sent: Tuesday, September 16, 2008 12:40:09 PM GMT -08:00 US/Canada Pacific &g

[Puppet Users] Re: Module Standards

2008-09-16 Thread Kenton Brede
2008/9/16 Digant C Kasundra <[EMAIL PROTECTED]>: > > Hello everyone, > > My team and I have been mulling over the module standards that were proposed > (http://www.reductivelabs.com/trac/puppet/wiki/ModuleStandards) > > Members of our team like to break large classes up into tiny pieces, which >

[Puppet Users] Re: custom fact help

2008-09-12 Thread Kenton Brede
uot; was returned. When puppetd ran as a daemon, the correct variable was returned. The fix was to remove "/var/lib/puppet/yaml/facts/puppet.example.com.yaml." Kent 2008/9/11 Kenton Brede <[EMAIL PROTECTED]>: > I'm trying to create a custom fact. The following code works

[Puppet Users] custom fact help

2008-09-11 Thread Kenton Brede
I'm trying to create a custom fact. The following code works fine if puppetd runs as a daemon but not from the command line. In other words if this runs on server5 as a daemon, the return is correct, "confidential." But if I run "puppetd -t" from the command line "normal" is returned. I don't

[Puppet Users] Re: README example

2008-09-08 Thread Kenton Brede
I tried it both ways, results are the same. Thanks, Kent 2008/9/8 Andrew Shafer <[EMAIL PROTECTED]>: > It might be hosed, but try removing the trailing /. I only have email for > the moment or I would confirm. > > On Mon, Sep 8, 2008 at 10:59 AM, Kenton Brede <[EM

[Puppet Users] Re: README example

2008-09-08 Thread Kenton Brede
2008/9/8 Andrew Shafer <[EMAIL PROTECTED]>: > git clone name-of-repo is the easiest way to set it up > > try: > git clone git://oppermannen.com/modules/git.git/ > > git checkout switches between branches and git pull updates the local repo I knew I should have mentioned all that I tried in my fir

[Puppet Users] Re: README example

2008-09-08 Thread Kenton Brede
2008/9/8 Thom May <[EMAIL PROTECTED]>: > > On 08/09/2008, Kenton Brede <[EMAIL PROTECTED]> wrote: >> >> The documentation says to look at an example README in the git module. >> http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation >> >>

[Puppet Users] README example

2008-09-08 Thread Kenton Brede
The documentation says to look at an example README in the git module. http://reductivelabs.com/trac/puppet/wiki/ModuleOrganisation I installed git and tried to snag the repo but I get: $ git checkout git://oppermannen.com/modules/git.git fatal: Not a git repository Anyone have a good example