[Puppet Users] [Announce] Release of PDK v1.4.1.2

2018-03-21 Thread Bryan Jen
Hello Everyone! Today we’re happy to announce the latest release of PDK, version 1.4.1.2. This release contains important security updates to curl and Nokogiri. For the full CHANGELOG, please visit: https://puppet.com/docs/pdk/ latest/release_notes.html. To try this new version, use yum or

Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-21 Thread jcbollinger
On Wednesday, March 21, 2018 at 8:46:02 AM UTC-5, jcbollinger wrote: > > > > On Wednesday, March 21, 2018 at 4:03:28 AM UTC-5, Martin Alfke wrote: >> >> I prefer the each lambda over ensure_resource and create_resource. >> my 5pc. >> > > In this particular case, the ensure_resource() call is

[Puppet Users] httpd vhost

2018-03-21 Thread nicu lelu
hi, i like to configure apache vhost on centos 6.here the apache daemon is httpd. [root@v manifests]# more site.pp import '/etc/puppet/manifests/httpd.pp' import '/etc/puppet/manifests/vhost.pp' node 'y' { include httpd include y } [root@v manifests]# more vhost.pp class y { httpd::vhost

[Puppet Users] rspec testing a custom puppet provider that has a parent

2018-03-21 Thread Bill Sirinek
I am trying to write an rspec test for a custom type and provider I wrote and having issues. The custom type has a provider that manages an ini file. Because I already have puppetlabs/inifile, I made this provider a child provider of ini_setting. (I don't use the ini_setting type directly in

Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-21 Thread jcbollinger
On Wednesday, March 21, 2018 at 4:03:28 AM UTC-5, Martin Alfke wrote: > > I prefer the each lambda over ensure_resource and create_resource. > my 5pc. > In this particular case, the ensure_resource() call is inside a defined type that is used both internally and externally, so I don't think

[Puppet Users] Re: Announce: Puppet Platform 5.5.0 is now available

2018-03-21 Thread Ryan Murphy
What version of PE will contain this? On Tuesday, March 20, 2018 at 3:20:15 PM UTC-5, Molly Waggett wrote: > > Puppet Platform 5.5.0 is a bug-fix and feature release that adds agent > support for Fedora 27, adds several stdlib functions to Puppet's core > functions, improves the puppet config

Re: [Puppet Users] run puppet-agent once per day specific range time.

2018-03-21 Thread Renato
Thank you very much! 2018-03-21 11:28 GMT+01:00 Andreas Zuber : > Hi > > We use something like this to distribute cron jobs over a specified > time interval: > > define cron::interval( > $ensure= present, > $start_hour= undef, > $length= '60', #

Re: [Puppet Users] run puppet-agent once per day specific range time.

2018-03-21 Thread Andreas Zuber
Hi We use something like this to distribute cron jobs over a specified time interval: define cron::interval( $ensure= present, $start_hour= undef, $length= '60', # interval length in minutes $comment = undef, $command = undef, $user = 'root',

Re: [Puppet Users] run puppet-agent once per day specific range time.

2018-03-21 Thread Martin Alfke
Hi > On 20. Mar 2018, at 10:49, Ren wrote: > > Hey everyone, > > > I am looking the best way to implement overall puppet-agent (v4.9.2) to run > only once per day during a specific time. > ie: between 4 hours > 8 hours. > > what do you suggest? should I go

Re: [Puppet Users] Code Manager + Bit bucket integration is not working

2018-03-21 Thread Martin Alfke
Hi, > On 20. Mar 2018, at 11:47, linux.today.fut...@gmail.com wrote: > > Hi All, > > I am not able to integrate my PE code manager with Bit Bucket server. > > Following are error: > > [root@aexxxpv007 ~]# puppet-code status > { > "alerts": [], > "detail_level": "info", > "state":

Re: [Puppet Users] Re: Is ensure_resource() evil?

2018-03-21 Thread Martin Alfke
I prefer the each lambda over ensure_resource and create_resource. my 5pc. > On 20. Mar 2018, at 23:21, jcbollinger wrote: > > On Tuesday, October 17, 2017 at 7:59:16 AM UTC-5, jcbollinger wrote: > > Nothing has changed with `ensure_resource()`. The problem is not