[Puppet Users] Using notify with concat module...

2017-01-23 Thread Sean
Hello, I was reading over several threads regarding the use of concat modules and subscribe capabilities. It seems everyone is subscribe from another resource instead of notify with a concat resource. My preference is to use notify, as I think it makes the code read better for documentation

[Puppet Users] Re: Using notify with concat module...

2017-01-25 Thread Sean
Thank you for the reply! On Tuesday, January 24, 2017 at 4:42:10 AM UTC-5, Luke Bigum wrote: > > > > On Monday, 23 January 2017 20:55:44 UTC, Sean wrote: >> >> Hello, >> >> I was reading over several threads regarding the use of concat modules >> and sub

[Puppet Users] Struggling with hiera 5 and puppet 4.10

2017-05-26 Thread Sean
Hi, I'm working to prototype an upgrade of our environment to puppet 4.10 and use hiera 5 data layers. Today, we're running puppet 3, and I've refactored a our main modules to use hiera module data instead of params.pp. It better suits our needs to have the data layers setup this way. This

Re: [Puppet Users] Struggling with hiera 5 and puppet 4.10

2017-06-01 Thread Sean
Take a look at https://puppet.com/blog/debugging-hiera > <https://www.google.com/url?q=https%3A%2F%2Fpuppet.com%2Fblog%2Fdebugging-hiera&sa=D&sntz=1&usg=AFQjCNFsec44FVrEZDblVBLzYE5gRokbKg> > > for help > debuggin hiera problems. > > El 26/05/17 a la

Re: [Puppet Users] Struggling with hiera 5 and puppet 4.10

2017-06-01 Thread Sean
ing data. On Thursday, June 1, 2017 at 11:19:38 AM UTC-4, Sean wrote: > > Thanks for that, I have read that blog plus the more recent followup. I > also have tried using the --explain flag for the lookup function. > > Again if I run puppet lookup --node test.demo.local --explain >

[Puppet Users] How to determine best place to put external facts?

2017-06-02 Thread Sean
Hi, I am searching for a reasonably good method to determine where I should drop external fact files (like yaml/json files) on an arbitrary unix/linux/mac system...preferably outside of puppet. It seems different versions and install methods of puppet put the facter/facts.d directory in diffe

[Puppet Users] Question regarding Puppet4 class params and Hiera5

2017-09-26 Thread Sean
Greetings, I have read searched and read several threads in the list regarding using hiera, automatic lookup, and class params. Some of them, I'm thinking relate to Puppet3 and prior, and I admit I'm struggling a bit with weeding through the information that's appropriate to my scenario of ver

Re: [Puppet Users] Question regarding Puppet4 class params and Hiera5

2017-09-26 Thread Sean
ubclass1', ], } Will subclass1 obtain the value of enable_feature1 from the above declaration? Suppose the module default in data/common.yaml for enable_feature1 is true. On Tuesday, September 26, 2017 at 12:13:42 PM UTC-4, David Schmitt wrote: > > > > On Tue, Sep 26, 2017 at 4

[Puppet Users] Re: Question regarding Puppet4 class params and Hiera5

2017-09-28 Thread Sean
y scoped names, and including class parameters only in init.pp, than attempting to include class params in the module's member classes (formerly addressed as sublcasses). Thank you both! On Thursday, September 28, 2017 at 9:24:49 AM UTC-4, jcbollinger wrote: > > Dear Sean, > &g

[Puppet Users] Confusing error with file resource...

2017-10-03 Thread Sean
Hi, I have a strange puppet error (v4.10.1) with a file resource that creates a cron job... file { '/etc/cron.daily/aide': ensure => $mymodule::ensure_aide, owner => 'root', group => 'root', mode=> '0755', source => 'puppet:///modules/mymodule/cron/daily-aide-chec

[Puppet Users] Question on searching for and using data inside a structured fact

2017-11-08 Thread Sean
Hi, I have been attempting (and failing miserably) at trying to obtain the UUID of a partition mounted in a specific directory from the partitions fact. I'm using puppet 4.10.8. As an example, let's say I'm looking for the UUID of /boot on my systems... $ facter partitions {"sda1"=>{"size"=>"

[Puppet Users] hiera can't find facts to read hierarchy files?

2017-11-28 Thread Sean
Hi, I'm quite confused about how I could have created this problem. I have a module we'll call it "test" which has been using Hiera v5 module data for the last couple of releases...this works great on either puppet 4 or 5...as expected. Last week added a feature, which involved adding 1 new

[Puppet Users] Re: hiera can't find facts to read hierarchy files?

2017-11-29 Thread Sean
Thanks to PuppetLab's Mr. Lindberg who helped get my troubleshooting focused in the right direction. Basically, I forgot to add my new parameters to the class parameter definitions in the module's init.pp. DOH! On Tuesday, November 28, 2017 at 4:53:42 PM UTC-5, Sean wrote: >

[Puppet Users] What changed on yum.puppetlabs.com and apt.puppetlabs.com?

2018-03-01 Thread Sean
Hi, Has something significant changed on repo sites? For years, I have been using lftp to selectively mirror parts of these repos to use on Internet isolated networks. lftp is a great tool and a little easier and more efficient than wget. Note, we are not able to use rsync, it is not permit

[Puppet Users] Re: mirroring puppet forge

2018-03-01 Thread Sean
I can't say it still works, as I haven't updated my forge mirror in about a year, but this is what I used back then - https://rubygems.org/gems/puppet-forge-mirror On Wednesday, February 21, 2018 at 7:37:23 PM UTC-5, Vince Skahan wrote: > > What's the preferred way these days to internally mirr

Re: [Puppet Users] What changed on yum.puppetlabs.com and apt.puppetlabs.com?

2018-03-01 Thread Sean
Thank you Ms. Waggett, I have made comments in the ticket so that the data from my post here is now there in full. On Thursday, March 1, 2018 at 1:42:35 PM UTC-5, Molly Waggett wrote: > > Hi Sean, > > We have opened CPR-519 <https://tickets.puppetlabs.com/browse/CPR-519> >

[Puppet Users] Is there a method for puppet to find all suid files?

2015-09-04 Thread Sean
Hi, I'm using a module from the Forge to manage auditd rules, the module works quite well and managing rules is very easy. The hard part is that there's a requirement to audit use SUID files on each system. With out knowing exactly what files are SUID on every server in the field, since ther

[Puppet Users] Puppet method to subtract two arrays?

2015-09-17 Thread Sean
Hello, I have been working on trying to drive an include statement with an array parameter. The idea looks like so (in pseudo code) : class foo( $whitelist = $::foo::params::whitelist, $blacklist = [],) { $include_list = inline_template( "<% @whitelist - @blacklist %>" ) validate_array($

Re: [Puppet Users] Puppet method to subtract two arrays?

2015-09-17 Thread Sean
tember 17, 2015 at 3:15:37 PM UTC-4, Peter Huene wrote: > > Hi Sean, > > On Thu, Sep 17, 2015 at 12:01 PM, Sean > > wrote: > >> Hello, >> >> I have been working on trying to drive an include statement with an array >> parameter. >> >> T

Re: [Puppet Users] Puppet method to subtract two arrays?

2015-09-18 Thread Sean
rray. I have coerced the datatype in the ENC using Foreman's SmartClass parameter override, and am now getting the correct results. I also converted the inline template into a custom function to avoid having to use any2array. On Thursday, September 17, 2015 at 4:16:16 PM UTC-4, Sean wrote: >

[Puppet Users] Puppet Exec resource with complex Environment Variables...

2015-12-04 Thread Sean
Greetings, I am working on streamlining some older puppet code, that uses a lot of Exec resources to accomplish it's purposes. It's not terribly elegant and we're working on design to replace it with code that leverages puppet features. One of the pieces I'm struggling with is how to set comp

[Puppet Users] Re: Puppet Exec resource with complex Environment Variables...

2015-12-07 Thread Sean
looks like the strings inside the environment variables aren't interpreted by the shell, they're just passed as literal strings. But notably, the the unless test fails with an error from /usr/bin/test that doesn't surface when running interactively. I will attempt to run in the sh

[Puppet Users] puppet module repository w/ self signed ssl?

2018-06-05 Thread Sean
Hello, I'm wanting to use the module_repository setting in puppet.conf on my puppet5 master. The local repo mirror we've setup requires SSL, but has a self-signed cert. Is there a way to make puppet trust that cert? Mostly, I want to be able to use puppet module search as a convenience since

[Puppet Users] Re: Managing mounted NFS shares, when having no write permission on that share

2018-08-20 Thread Sean
Another alternative might be to avoid specifying the user/group/mode attributes for the File resource. This would assume that you can be confident that the agent is running as root and the system has a sufficient umask setting. If that's the case, these resource attributes can be left out an

[Puppet Users] Re: hiera can't find facts to read hierarchy files?

2018-09-19 Thread Sean
t all produced a very strange behavior though. On Wednesday, September 19, 2018 at 12:14:47 PM UTC-4, ch...@fuzzyblender.com wrote: > > Hi Sean, > > I'm having the same issue, and I see what you said, I'm just too new to > puppet. Would it be possible for you (or others) to e

[Puppet Users] Re: Suggested class layout for multi-tenant puppet install?

2019-03-28 Thread Sean
Hello, This sounds like a different direction than you're thinking, but it might help to keep things manageable - and it's kinda cool! Take a look at R10K [1] and Control Repos [2]. The gist is that each tenant would have it's own control repo, then R10K can deploy each control repo as a dyna

[Puppet Users] Puppet Certificate's

2012-04-11 Thread Sean McGrath
I re-image a Mac so they can be re-trusted by the puppet master. Is there something like a root certificate I could build into the image to establish the trust relationship easily and securely each time a Mac is re-imaged? many thanks Sean -- You received this message because you are subscribed

[Puppet Users] Re: Puppet Certificate's

2012-04-12 Thread Sean McGrath
node_name_value = certname # i.e. the one from the server Is this correct? Thats it for now, I'm going to stay playing around with this and see where I can get but any help and guidance that anyone can provide will be very much appreciated. Regards Sean On Apr 11, 5:32 pm, Gary Larizza wrote: >

[Puppet Users] Re: Puppet Certificate's

2012-04-16 Thread Sean McGrath
Gary, thanks very much for that. I got that to work as I wanted after a bit of fighting with other issues of my own creation. So I am very grateful to you for your help. If you ever in Dublin, Ireland. Look me up, I owe you a favor so I'm willing to pay back, within reason of course. Best

Re: [Puppet Users] Re: Puppet Sites. Your thoughts?

2012-05-18 Thread Sean Millichamp
unt for a similarly high degree of flexibility to be something we'd be able to use. Thanks, Sean -- 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 t

Re: [Puppet Users] Re: Announce: PuppetDB 0.9.0 (first release) is available

2012-05-22 Thread Sean Millichamp
ferent vein, does PuppetDB support a cluster or HA configuration? I assume at least active/passive must be okay. Any gotchas to watch for? Thanks, Sean -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-

Re: [Puppet Users] Re: Announce: PuppetDB 0.9.0 (first release) is available

2012-05-23 Thread Sean Millichamp
atabase and cause me a lot of trouble? Sure, but that could be said of many tools. That's why we have backups, DR systems, etc. even though the "in the now" when it fails can be painful as heck. However, as long as Puppet Labs is designing it to be dependable and upgrade-safe (which it s

[Puppet Users] undefined method `initvars'

2011-07-26 Thread Sean Carolan
We are seeing this error in our log files on some clients: puppetd[15068]: Could not run Puppet configuration client: undefined method `initvars' for # Where do I begin troubleshooting this? The client software versions are: ruby-1.8.5-5.el5_4.8.x86_64 ruby-libs-1.8.5-5.el5_4.8.x86_64 ruby-shad

Re: [Puppet Users] undefined method `initvars'

2011-07-27 Thread Sean Carolan
On Tue, Jul 26, 2011 at 11:44 AM, Tony G. wrote: > Try enabling debug and trace on your agent, that will provide more details. Ok, we gave this a shot. Here's the output with --debug and --trace turned on: /var/lib/puppet/lib/puppet/type/package.rb:316:in `initialize' /usr/lib/ruby/site_ruby/1.

[Puppet Users] Corrupted inventory.txt - how to rebuild?

2011-08-15 Thread Sean Carolan
We have an issue where sometimes servers get assigned serial number "0x" in the inventory.txt file. This causes major problems including SSL cert errors in the log file. Anyone know how to properly rebuild inventory.txt without tearing everything out and starting from scratch? -- You receiv

Re: [Puppet Users] Corrupted inventory.txt - how to rebuild?

2011-08-16 Thread Sean Carolan
> 0x is typically the CA cert, was the inventory.txt file blank when > this occurred? If you have all the certificates, you can use puppet > cert -pa and extract the serial number, date, and CN info. I'm not > sure if there's an automated way using openssl commands. This might be > reasonably c

[Puppet Users] Question about "refreshonly"

2010-11-08 Thread Sean Carolan
I have inherited some puppet configurations; there is an exec resource that looks like this: exec { "force-reload-httpd": command => "/etc/rc.d/init.d/httpd force-reload", refreshonly => true, } Should this be paired with a "subscribe" or "notify" somewhere? -- You received this message bec

[Puppet Users] OS X package management

2010-12-29 Thread Sean Lazar
using the application. Is there a way to check if an application is running and do the package install later? How do people manage this? Or are more people leaning toward Munki and letting Munki's dialog box interact with the user? Sean -- You received this message because you are subscribe

[Puppet Users] Over-riding changes in modules and classes

2011-05-06 Thread Sean Carolan
Hello puppet gurus, maybe one of you can help with this. We have a bunch of servers that are managed by puppet, but would like to make a single, small change to a text file only on newly built machines. This text file is controlled by a module that is referenced in several places in our current co

Re: [Puppet Users] Over-riding changes in modules and classes

2011-05-06 Thread Sean Carolan
> You can just create a new class that inherits your previous class > and then overwrites the File[] you declared before and use that > only on the new machines. Will this also work with an augeas entry with a changes [] section? -- You received this message because you are subscribed to the Goo

[Puppet Users] Override a file{} directive - is it possible?

2012-08-17 Thread Sean Carolan
Maybe one of you can help with this. I have a class that's got a file{} type directive in it. It populates /etc/security/limits.conf with specific settings. I have a small handful of hosts where we want to manage /etc/security/limits.conf manually. Is there a simple way to tell puppet to exclud

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-17 Thread Sean Carolan
> You don't say what version of puppet you're using, whether you're using > an ENC, or whether you're already using either extlookup() or hiera(), > so it's really difficult to suggest something that integrates well with > your current environment. Sorry I didn't provide more detail. We're using

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-20 Thread Sean Carolan
> It's not really the cleanest-looking thing, but the easiest option for > your particular case is to wrap the file resource in an if statement > like this: > if (! $::security_limits_disabled) { > file { '/etc/security/limits.conf': > ... > } > } Thanks, this is just what I was

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-20 Thread Sean Carolan
>> It's not really the cleanest-looking thing, but the easiest option for >> your particular case is to wrap the file resource in an if statement >> like this: >> if (! $::security_limits_disabled) { >> file { '/etc/security/limits.conf': >> ... >> } >> } > > Thanks, this is just

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-21 Thread Sean Carolan
It's not really the cleanest-looking thing, but the easiest option for your particular case is to wrap the file resource in an if statement like this: if (! $::security_limits_disabled) { file { '/etc/security/limits.conf': ... } } Super, thanks

Re: [Puppet Users] Override a file{} directive - is it possible?

2012-08-23 Thread Sean Carolan
> This has been extremely useful in my environment when importing the odd > 'unique snowflake' type server quickly without having to make any code/logic > changes or introduce large numbers of ENC values to disable certain > functionality or alter the flow of your puppet code. Yes. Puppet doesn't

[Puppet Users] Starting service as non root user with puppet

2012-09-05 Thread Sean Murphy
Hi, I have an ubuntu system with some of our own services on it. I prefer to run these services as a non-root user. I can control the services using upstart as a non root user and can start and stop the service using initctl without any problems. I'm trying to use puppet to start and stop these s

Re: [Puppet Users] Service Resources and Selinux

2012-10-10 Thread Sean Millichamp
Tom, It seems like having that as a parameter in the service type might be a good idea worthy of at least some further discussion. Want to open a feature request in Redmine to track it? I might (eventually) take a stab at adding support for it. Sean On Wed, 2012-10-10 at 09:01 +0100, Tom wrote

[Puppet Users] Strange issue with create_resources and exec 'command' parameter

2012-12-04 Thread Sean Kamath
e is /bin/false, but the echo is called (or true, or whatever you want to run). Am I missing something, or is this a bug? It's an odd one as well, because I *really* want to create titles that are arbitrary names, and specify a command. Fortunately, the 'name' parameter, which i

[Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
I am running Puppet 2.7.x (x varies from 14 to 20 on different machines). I am trying to use Puppet to deploy a new Zabbix agent configuration file. On all machines where the file wasn't a symlink, the deployment worked. However, every machine where it is a link, Puppet refuses to replace teh

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
I've tried that as well. It doesn't work. On Monday, January 21, 2013 12:34:00 PM UTC-6, Gary Larizza wrote: > > You should be able to add "force => true" and get this to work for you > > On Monday, January 21, 2013 at 9:19 AM, Sean Kelly wrote: > > I

Re: [Puppet Users] Unable to replace a symlink with regular file

2013-01-21 Thread Sean Kelly
rote: > > Have you tried explicitly setting the ensure value - a la "ensure => file" > - on the files that might exist as symlinks? I tested this out locally and > was able to get Puppet to overwrite a symlink with a file declaration. > > On Monday, January 21, 2013 at 1

[Puppet Users] Trying to install a specific version of Java on Redhat

2013-02-13 Thread Sean LeBlanc
I have a class that looks like this: class java { package { "java-1.6.0-sun.x86_64": ensure => '1.6.0.39-1jpp.4.el5_9', } } ...but it gives me this error: err: /Stage[main]/Java/Package[java-1.6.0-sun.x86_64]/ensure: change from 1.6.0.33-1jpp.1.el5_8 to 1.6.0.39-1jpp.4.el5_9 failed: Could n

Re: [Puppet Users] Trying to install a specific version of Java on Redhat

2013-02-15 Thread Sean LeBlanc
UTC-7, Felix.Frank wrote: > > Hi, > > please take note that > > On 02/14/2013 02:32 AM, Sean LeBlanc wrote: > > ensure => '1.6.0.39-1jpp.4.el5_9',notice: > > ...this version is unlike... > > > /Stage[main]/Java/Package[java-1.6.0-sun.x

Re: [Puppet Users] Puppet runs extremly slow on 1 of 18 Windows Server

2013-08-14 Thread Sean Wolf
I ran into this same problem, and pe_compliance was the culprit-- took 120 seconds. Removing this class from the default group and re-running puppet made it run quickly again. On Monday, October 1, 2012 2:08:08 PM UTC-6, Josh Cooper wrote: > > On Mon, Sep 3, 2012 at 2:07 AM, David Schmitt > >

Re: [Puppet Users] Re: Puppet dashboard stuck pending jobs

2013-09-06 Thread Sean Penticoff
I ran into this as a result of the output of failed deps on a yum install and had a couple jobs that just wouldn't go away. After fixing the condition creating the error I used /usr/bin/rake jobs:clear to clear out the delayed_job queue and everything was back to normal. -- You received this

Re: [Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-16 Thread Sean LaFreniere
From the command line all works fine, only not from Puppet. BTW, I am not the only one with this complaint online on your forums and elsewhere, people complain that Tar works, but not UnTar. -S On 9/12/13 5:54 AM, Matthew Burgess wrote: On 11 September 2013 23:55,

[Puppet Users] FreeBSD / Puppet 3.3.1 problem

2013-10-21 Thread Sean Kelly
I just upgraded my Puppet master from 3.1 to 3.3.1. It is running via Passenger on FreeBSD.In manifests/default.pp, I have: Package { provider => "portupgrade", } This used to work just fine, but is now throwing errors. On the clients, I see: Error: Could not retrieve catalog from remote ser

Re: [Puppet Users] Re: Puppet master does not start

2013-10-28 Thread Sean Crosby
: # id puppet uid=52(puppet) gid=52(puppet) groups=52(puppet) Sean -- 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, send an email to puppet-users+unsubscr...@googlegrou

[Puppet Users] Duplicate declaration problem

2014-04-21 Thread Sean Korten
t;nancy"]/message: defined 'message' as 'user3: "nancy"' > Notice: user2: "bill" > Notice: /Stage[main]/Profile::Sysconfig::Sftpserver::Dowork/Notify[user2: > "bill"]/message: defined 'message' as 'user2: "bill&quo

[Puppet Users] Re: Duplicate declaration problem

2014-04-21 Thread Sean Korten
Found the problem. When passing an array to a define the default variable name for the elements of the array is $name. This works: define debugUsers { > validate_string($name) > notify { "username: \"${name}\"": } > } On Monday, April 21, 2014 11:31:5

[Puppet Users] Re: Puppet Master not responding

2014-05-06 Thread Sean Keery
puppet.conf file having an invalid line. There you go, Sean On Monday, December 9, 2013 9:45:17 PM UTC-7, Naveen Desu wrote: > > Hi, > > While I was trying to access Puppet REST API [ > https://:8140/production/facts/], getting the > below error. > > I am not sure the issue h

Re: [Puppet Users] How to use variables in a puppet class

2014-07-24 Thread Sean Crosby
Hi Vikas, Do you have the package 'redhat-lsb' installed? The $lsbdistrelease fact is only populated when this package is installed Sean On 24 July 2014 17:07, Vikas Kumar wrote: > Hello All, > > I have a kickstart server which I use to deploy many minor versions of > C

[Puppet Users] Announce, Puppet Agent 1.6.2 Available

2016-09-01 Thread Sean McDonald
://docs.puppetlabs.com/puppet/latest/reference/index.html -- Sean P. McDonald Associate Release Engineer, Puppet -- 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, send an email to pu

[Puppet Users] Announcement: Release of Facter 3.11.0 gem

2018-03-20 Thread sean . mcdonald
For this release we are focused on learning about incompatibilities in module testing. Please download the new Facter 3 gem and try it out! We would love your feedback -- Sean P. McDonald Software Engineer, Puppet Inc. -- You received this message because you are subscribed to the Google Gro

[Puppet Users] Puppet 4, rspec, and stages

2015-09-24 Thread Sean McKinley
We recently upgraded to PE2015, and as such have upgraded our local puppet gems to match (4.2.2). Unfortunately a few of our specs that were previously passing are now failing, mostly in regards to stages: "Evaluation Error: Error while evaluating a Function Call, Could not find stage first spe

Re: [Puppet Users] Puppet 4, rspec, and stages

2015-09-25 Thread Sean McKinley
:) > > On Thu, Sep 24, 2015 at 3:40 PM, Sean McKinley > wrote: > >> We recently upgraded to PE2015, and as such have upgraded our local >> puppet gems to match (4.2.2). Unfortunately a few of our specs that were >> previously passing are now failing, mostly in rega