Re: [Puppet Users] Puppet Language Style Guide update

2017-01-13 Thread Henrik Lindberg
On 13/01/17 08:38, Peter Faller wrote: Has the Gepetto auto-formatter been updated (or will it be updated) to match the style guide? Or is there another way of automatically formatting manifests to match the style guide? Geppetto is pretty much up to date on the style guide as there are no fu

Re: [Puppet Users] Trouble using type Stdlib::Windowspath

2017-01-13 Thread Tiago Delboni
Em quarta-feira, 11 de janeiro de 2017 15:38:28 UTC-2, Henrik Lindberg escreveu: > > > Maybe there is something wrong with that type. > What does this give you: > > notice('C:\a\valid\path' =~ Stdlib::Windowspath) > > If that fails, please report the issue against stdlib. > (Or I am blind

[Puppet Users] Re: Regex auto-escape

2017-01-13 Thread Thomas Müller
Am Donnerstag, 12. Januar 2017 20:23:48 UTC+1 schrieb Ugo Bellavance: > > Hi, > > I've been working on a public module that manage text entries that have > SELinux contexts in them. I added basic support to some of the regex > special characters that may be used in SELinux contexts and here's t

[Puppet Users] Re: writing custom fact -> return value not as expected

2017-01-13 Thread Thomas Müller
Am Dienstag, 10. Januar 2017 17:44:23 UTC+1 schrieb Denny: > > Hi there, > > probably a pretty easy to answer question. > > I want to try out adding custom facts. My first custom fact should be > "lastrebootdate" > > My code looks like this: > > Facter.add(:lastrebootdate) do > setcode do >

[Puppet Users] Re: Regex auto-escape

2017-01-13 Thread Ugo Bellavance
On Friday, January 13, 2017 at 6:24:57 AM UTC-5, Thomas Müller wrote: > > > > Am Donnerstag, 12. Januar 2017 20:23:48 UTC+1 schrieb Ugo Bellavance: >> >> Hi, >> >> I've been working on a public module that manage text entries that have >> SELinux contexts in them. I added basic support to some o

Re: [Puppet Users] Re: writing custom fact -> return value not as expected

2017-01-13 Thread Rob Nelson
There's also `last reboot -1`, add your favorite timestamp format with -T :) Rob Nelson rnels...@gmail.com On Fri, Jan 13, 2017 at 6:27 AM, Thomas Müller wrote: > > > Am Dienstag, 10. Januar 2017 17:44:23 UTC+1 schrieb Denny: >> >> Hi there, >> >> probably a pretty easy to answer question. >>

[Puppet Users] Weird behavior of puppetdb records

2017-01-13 Thread Maksim Podlesniy
We have an issue with virtual resources. Usual during puppet applying inside puppetdb appears additional node record which leads to puppet duplicate error Error: Could not retrieve catalog from remote server: Error 400 on SERVER: A duplicate resource was found while collecting exported resource

[Puppet Users] How to reference NFS shares in a file resource

2017-01-13 Thread warron.french
Hi, I need to understand how to properly write some puppet code that will take files off of an NFS share on serverA and place them on my clients via a puppet module. My NFS server is *serverA.home*, providing serverA:/some/path that mounts on my clients my puppet master is *puppetmaster.home*, I

[Puppet Users] Debugging confusion !?

2017-01-13 Thread Steve Button
Hi, I've been struggling to debug this Puppet code for a couple of days now. Perhaps it's something obvious but I just can't see it! Can anyone suggest a debugging approach to get this working?? Why is it complaining every time that redis and Ruby are already at the lastest versions? More imp

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread dkoleary
Hey; thanks for the reply. I do use augeas sparsely. Turns out that's not the issue but your suggestion is very intriguing. I'm going to be trying that out shortly. Thanks Doug > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsu

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread dkoleary
Hi, Garret; Your suggestion to review last_run_summary.yaml results in one huge step in the right direction. # grep file: /opt/puppetlabs/puppet/cache/state/last_run_summary.yaml file: 121.817228425 So, how do I go about finding out which file resource(s) are causing the problem? Thanks a

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread R.I.Pienaar
- Original Message - > From: "dkoleary" > To: "puppet-users" > Sent: Friday, 13 January, 2017 19:43:20 > Subject: Re: [Puppet Users] Open source puppet performance monitoring/tuning? > Hi, Garret; > > Your suggestion to review last_run_summary.yaml results in one huge step in > the ri

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread dkoleary
Thanks; That looks like a pretty cool too; unfortunately, I can't seem to get it to run. Centos 6.8 fully patched: $ ./report_print.rb ./report_print.rb:17:in `require': no such file to load -- puppet (LoadError) from ./report_print.rb:17 Some googling showed a 'gem install' command

[Puppet Users] simple file resource taking longer than it should

2017-01-13 Thread dkoleary
Hi; A follow-on to another thread; I'm trying to track down performance issues in open source puppet server (and clients) ver 4.5.0 Reading through last_run_summary.yaml, the vast majority of time is spent on file resources. I then hit the last_run_report.yaml and, as an example, one of the s

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread R.I.Pienaar
- Original Message - > From: "dkoleary" > To: "puppet-users" > Sent: Friday, 13 January, 2017 20:52:30 > Subject: Re: [Puppet Users] Open source puppet performance monitoring/tuning? > Thanks; That looks like a pretty cool too; unfortunately, I can't seem to > get it to run. > > Cento

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread dkoleary
Excellent! Thank you very much. That will come in handy. Doug On Friday, January 13, 2017 at 2:06:27 PM UTC-6, R.I. Pienaar wrote: > > > > - Original Message - > > From: "dkoleary" > > > To: "puppet-users" > > > Sent: Friday, 13 January, 2017 20:52:30 > > Subject: Re: [Puppet Users]

Re: [Puppet Users] Open source puppet performance monitoring/tuning?

2017-01-13 Thread Garrett Honeycutt
On 1/13/17 1:46 PM, R.I.Pienaar wrote: > > > - Original Message - >> From: "dkoleary" >> To: "puppet-users" >> Sent: Friday, 13 January, 2017 19:43:20 >> Subject: Re: [Puppet Users] Open source puppet performance monitoring/tuning? > >> Hi, Garret; >> >> Your suggestion to review last_

[Puppet Users] How to read in file into array of hashes to use build start script template

2017-01-13 Thread James Perry
After spending most of they day digging around and researching, I find Puppet's immutable variables are keeping me from properly handling what I'm trying to do, so I want to see if anyone else has some suggestions on how to handle was I need to accomplish. Goal: Ingest a CSV file provided by a

Re: [Puppet Users] How to read in file into array of hashes to use build start script template

2017-01-13 Thread Garrett Honeycutt
On 1/13/17 4:15 PM, James Perry wrote: > After spending most of they day digging around and researching, I find > Puppet's immutable variables are keeping me from properly handling what > I'm trying to do, so I want to see if anyone else has some suggestions > on how to handle was I need to accompl

Re: [Puppet Users] Trouble using type Stdlib::Windowspath

2017-01-13 Thread Henrik Lindberg
On 13/01/17 12:16, Tiago Delboni wrote: Em quarta-feira, 11 de janeiro de 2017 15:38:28 UTC-2, Henrik Lindberg escreveu: Maybe there is something wrong with that type. What does this give you: notice('C:\a\valid\path' =~ Stdlib::Windowspath) If that fails, please report th

[Puppet Users] Re: How to read in file into array of hashes to use build start script template

2017-01-13 Thread John Gelnaw
Set up hiera correctly, add a yaml file to your hierarchy, and and translate the CSV file to YAML: I'm a perl geek, so: #!/bin/perl while(<>) { chomp; tr/A-Z/a-z/; my @a = split(/\,/); push(@{$hash{$a[0]}}, $a[1]); } for my $srv (sort(keys(%hash))) { print "startup::$srv\n"; for

[Puppet Users] Re: How to read in file into array of hashes to use build start script template

2017-01-13 Thread John Gelnaw
Set up hiera correctly, add a yaml file to your hierarchy, and and translate the CSV file to YAML: I'm a perl geek, so: #!/bin/perl while(<>) { chomp; tr/A-Z/a-z/; my @a = split(/\,/); push(@{$hash{$a[0]}}, $a[1]); } for my $srv (sort(keys(%hash))) { print "startup::$srv\n"; for m