[Puppet Users] grep puppet/cache/reports for failures

2019-01-18 Thread Peter K
Can anyone recommend a quick and dirty way to grep through puppet/cache/reports (or whatever $reportdir reports to) to find failures or missing reports? I'm looking for a temporary solution before I commit to setting up reporting software. thx, -peter -- You received this message because you

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-04 Thread Peter K
ting and set it to en_US.UTF-8 > > export LANG=en_US.UTF.8 > > Best, > Martin > > > > On 31. Aug 2018, at 20:48, Henrik Lindberg > wrote: > > > > On 2018-08-31 20:23, Peter K wrote: > >> I'm getting this error when I try and create a user on osx:

Re: [Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-09-04 Thread Peter K
Thank you Henrik. That was useful. I"ll keep that in my bag of tricks. -peter On Friday, August 31, 2018 at 11:48:52 AM UTC-7, Henrik Lindberg wrote: > > On 2018-08-31 20:23, Peter K wrote: > > I'm getting this error when I try and create a user on osx: > > '''Error:

[Puppet Users] Re: user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-08-31 Thread Peter K
The puppet agent is on a mac with 10.13.4. On Friday, August 31, 2018 at 2:23:03 PM UTC-4, Peter K wrote: > > I'm getting this error when I try and create a user on osx: > '''Error: Failed to apply catalog: undefined method `each' for > nil:NilClass''' > > My code looks like th

[Puppet Users] user resource on darwin throws "undefined method `each' for nil:NilClass"

2018-08-31 Thread Peter K
I'm getting this error when I try and create a user on osx: '''Error: Failed to apply catalog: undefined method `each' for nil:NilClass''' My code looks like this: ''' class fakeadmin2 { user { 'fakeadmin2': name=> 'fakeadmin2', ensure => 'present', uid => '504',

[Puppet Users] Re: How would you represent this in hiera?

2017-06-08 Thread Peter K
Thank you all; I thought I had a solution but realized I'd put code back into site.pp. @Joseph Karns Thank you for the notes and link. I think I get the gist; I just need to figure out if this is a direction I plan to go. -peter -- You received this message because you are subscribed to the

[Puppet Users] Re: How would you represent this in hiera?

2017-06-08 Thread Peter K
@Peter Kristolaitis I was wrong. That worked. My working config for /etc/ssh/sshd_config is: (which I believe will eventually work on darwin, redhat, and ubuntu): classes: - ssh::server ssh::server::config::x11forwarding: 'yes' ssh::server::config::protocol: '2'

Re: [Puppet Users] How would you represent this in hiera?

2017-06-07 Thread Peter K
Thank you, guys. Unfortunately it still doesn't produce anything. I guess I'll have to figure out the author's code. @Peter Kristolaitis, thank you for bringing to my attention that the "sftp" title will probably not be a key, or class name. @amateo, I'm not yet familiar with roles/profiles but

[Puppet Users] How would you represent this in hiera?

2017-06-01 Thread Peter K
Hi all, I'm using the zleslie-ssh module and trying to configure it with hiera. I have all the lines working but this one (this is the output I"m seeking): Subsystem sftp/usr/libexec/sftp-server Here is successfully working code that is non-hiera:

[Puppet Users] Re: hiera_include('classes') fails with "undefined method `downcase' for nil:NilClass"

2017-04-21 Thread Peter K
Well...I had never called 'downcase' myself but it appears to be a function defined in in the puppet stdlib module. But I seem to have narrowed down the cause to having an unused 'classes:' line in my hostname.domain.com.yaml when there is also a 'classes:' line in my common.yaml It seems as

[Puppet Users] hiera_include('classes') fails with "undefined method `downcase' for nil:NilClass"

2017-04-20 Thread Peter K
I'm missing something. I've never been able to include classes via hiera via the hiera_include('classes') command. Any insight? If I call : # /opt/puppetlabs/bin/puppet agent -t --debug > /tmp/debug Yields: > Error: Could not retrieve catalog from remote server: Error 500 on SERVER: > Server

Re: [Puppet Users] hiera hierarchy by network

2017-04-14 Thread Peter K
Thank you Rob. I've been close to experimenting with custom facts but haven't tried yet. I think I can stick with what I have for now and just watch out of breakage...at which point I'll create a custom fact. -peter -- You received this message because you are subscribed to the Google Groups

[Puppet Users] hiera hierarchy by network

2017-04-13 Thread Peter K
This network lookup is simple and works well...but only on some clients because they have more than one network interface: hiera.yaml: --- :hierarchy: - "%{::trusted.certname}" - "%{::network}" - common It fails on some machines because they have docker virtual interfaces and instead

Re: [Puppet Users] removing "minimum_uid=1000" value from all my pam config files

2017-04-06 Thread Peter K
Garrett, I'd like to use a puppet module to use an indempotent approach to establishing these config files...but I need to fix *just* these specific settings instead of learning pam well enough to configure a pam module. For lack of expertise, I'm leaning heavily on the default config files to

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-04-04 Thread Peter K
Oh, yeah, and this goes into the site.pp: Exec { path => '/bin/:/sbin/:/usr/bin/:/usr/sbin/' } ### This helps with ... ### exec resources (like researchpattern) so you don't need to specify binary paths for debian/redhat -- You received this message because you are subscribed to

[Puppet Users] Re: removing "minimum_uid=1000" value from all my pam config files

2017-04-04 Thread Peter K
@jcbollinger: Thank you so much. Sometimes when you've been looking at code a while you just can't see the obvious. I started with code you created in another post and finished it with your help. Here's the finished code: class replacepattern { define replace($file,$pattern,$newstring){

[Puppet Users] removing "minimum_uid=1000" value from all my pam config files

2017-03-30 Thread Peter K
I'm trying to remove a specific configuration value, "minimum_uid=1000", from multiple lines in several files (currently 5 files) in /etc/pam.d/. A typical line looks like this: auth [success=1 default=ignore] pam_ldap.so use_first_pass minimum_uid=1000 I've tried exec and sed, but I

Re: [Puppet Users] how to pxe boot and preseed puppet-agent install in ubuntu from puppetlabs repo

2017-03-30 Thread Peter K
e PXE boot servers with Cobbler, install Xenial > with a recent Puppet agent and automatically sign the certificate on > the master for freshly deployed servers. Everything out of the box :) > > Hth, > Tom. > > On Wed, 2017-03-22 at 13:06 -0700, Peter K wrote: > >

[Puppet Users] how to pxe boot and preseed puppet-agent install in ubuntu from puppetlabs repo

2017-03-22 Thread Peter K
In my googling I did not find a simple recipe for how to install and run puppet for the first time (for a pxe / tftpboot / ubuntu / preseed / puppetlabs-repo scenario). Here's what I tagged onto the bottom on my preseed.cfg script: d-i preseed/late_command string in-target wget -O

[Puppet Users] Re: noob question about configuring modules via hiera's common.yaml instead of site.pp

2017-02-28 Thread Peter K
Thank you Bill. -peter -- 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...@googlegroups.com. To view this discussion on the web visit

[Puppet Users] noob question about configuring modules via hiera's common.yaml instead of site.pp

2017-02-27 Thread Peter K
I see the value of keeping data separate from code via hiera...but I'm missing something in when it comes to using a pre-built module that wasn't designed to be used with hiera. I'm working with bodgit's openldap module and I can get it to work when I

[Puppet Users] Re: noob problem: Could not find a directory environment named 'development'

2017-02-21 Thread Peter K
Thank you very much, Eric. I feel I''ve regained some of my sanity. -peter -- 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] Re: noob problem: Could not find a directory environment named 'development'

2017-02-17 Thread Peter K
I fixed my site.pp and that got my hiera lookups working...but I still dont' understand the puppet config results. -peter -- 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

[Puppet Users] Re: noob problem: Could not find a directory environment named 'development'

2017-02-17 Thread Peter K
I fixed my site.pp and that got my hiera lookups working...but I still dont' understand the puppet config results. -peter On Thursday, February 16, 2017 at 7:31:57 PM UTC-5, Peter K wrote: > > Hi all, I'm hoping you can point out some detail I'm missing. Puppet agent > seems to run fin

[Puppet Users] puppet print config yields 'Could not find a directory environment named 'development'

2017-02-16 Thread Peter K
Hi. I'm a new user with an environment problem. My puppet.conf on my client host (puppet agent 4.9.2) looks like this: [main] certname = centosCLIENT.pretend.com server = puppet environment = development runinterval = 1h environment_timeout = 0 and when I run*

[Puppet Users] noob problem: Could not find a directory environment named 'development'

2017-02-16 Thread Peter K
Hi all, I'm hoping you can point out some detail I'm missing. Puppet agent seems to run fine until I introduce hiera. I believe the issue is configuration path related: I'm using opensource pupperserver version 2.7.2 on an ubuntu 16.04 machine and puppet agent version 4.9.2 on a centos 7