Re: [Puppet Users] Prefetch in custom types in Puppet v4?

2016-01-27 Thread Gareth Rushgrove
On 19 January 2016 at 01:52, Jakov Sosic wrote: > Hi guys, > > > I've noticed the following problem with one of my providers in v4. > > This is the original prefetch method I used: > >def self.prefetch(resources) > instances.each do |prov| >if resource = resources[prov[:name]] >

[Puppet Users] Error when installing Puppet Enterprise

2016-01-27 Thread Chinmay Dingore
Hi All. This is my first time to install Puppet Enterprise. However, I receive the error when installing it on CentOS 6.4 64 bit OS. [puppet.mydomain.com] An error occured while performing install_pe_puppet.mydomain.com: invalid byte sequence in US-ASCII If anybody could point me in right dir

[Puppet Users] configuration not applying but getting notice: Finished catalog run in 0.02 seconds

2016-01-27 Thread kumar kittu
Hi, I am new to puppet and installed puppet standalone in my linux box. I generated module with command:"puppet module generate test-sample" . created file in test-sample/manifests/site.pp: class sample::site { file { '/root/puppetfilecreation.txt': ensure => "present", owner => "root", gro

Re: [Puppet Users] configuration not applying but getting notice: Finished catalog run in 0.02 seconds

2016-01-27 Thread Hristo Mohamed
*created file in test-sample/manifests/site.pp:* Rename it to sample/manifetsts.site.pp Cheers, Hristo On Wed, Jan 27, 2016 at 11:50 AM, kumar kittu wrote: > Hi, > > I am new to puppet and installed puppet standalone in my linux box. > I generated module with command:"puppet module generate t

Re: [Puppet Users] Error: Could not find class apache

2016-01-27 Thread Frederik Bjerggaard Nielsen
What if you try running: puppet apply C:\Maruti\Puppet\manifests\site.pp --modulepath C:\Maruti\Puppet\modules Den tirsdag den 26. januar 2016 kl. 15.32.07 UTC+1 skrev Maruti Gangumolu: > > Hi Lowe, > > Here are the details > > This is the directory structure for manifests file site.pp and n

[Puppet Users] Getting Yum errors for nginx install

2016-01-27 Thread mike r
running nginx module on centos 6.6 (only getting this error for centos 66, also tried centos 7 and ubuntu 12,14 and no errors,) wondering if anyone has seen this output. *Error: Execution of '/usr/bin/yum -d 0 -e 0 -y install nginx' returned 1: Error: Nothing to do* *Error: /Stage[main]/Nginx::

[Puppet Users] Re: Getting Yum errors for nginx install

2016-01-27 Thread mike r
looks like issues w my repos.d, had to install sudo yum install epel-release On Wednesday, January 27, 2016 at 8:12:16 AM UTC-5, mike r wrote: > > running nginx module on centos 6.6 (only getting this error for centos 66, > also tried centos 7 and ubuntu 12,14 and no errors,) > > wondering i

[Puppet Users] Re: exec without a shell

2016-01-27 Thread jcbollinger
On Tuesday, January 26, 2016 at 7:40:06 PM UTC-6, Stefan Schulte wrote: > > Hello, > > I've got a quick question about the exec type. The exec type does have a > shell provider and a posix provider and the posix provider says > > # > > https://github.com/puppetlabs/puppet/blob/master/lib/

[Puppet Users] Re: configuration not applying but getting notice: Finished catalog run in 0.02 seconds

2016-01-27 Thread jcbollinger
On Wednesday, January 27, 2016 at 4:52:20 AM UTC-6, kumar kittu wrote: > > Hi, > > I am new to puppet and installed puppet standalone in my linux box. > I generated module with command:"puppet module generate test-sample" . > > created file in test-sample/manifests/site.pp: > > class sample::s

Re: [Puppet Users] New Resource Type for bareos

2016-01-27 Thread Björn
Hi Thomas, I got a hiera group of linux boxes. All of these should have the bareos client and should backup a standard fileset for instance /var/log. Okay, the backup client array on the master module would work, but if you forget to add a backup client you got no backup. Now I'm dreaming from

[Puppet Users] Warning: Local environment: "production" doesn't match server specified node environment

2016-01-27 Thread Matt Zagrabelny
Greetings, I've searched a bit and found some hits for the subject, but nothing that helps. I'm using an ENC to drive the environment of my nodes. I don't have "production" defined anywhere in my puppet.conf: # grep production /etc/puppet/puppet.conf || echo "not there" not there and it is not

RE: [Puppet Users] Error: Could not find class apache

2016-01-27 Thread Maruti Gangumolu
The behaviour was same! -Original Message- From: "Frederik Bjerggaard Nielsen" Sent: ‎27-‎01-‎2016 16:56 To: "Puppet Users" Subject: Re: [Puppet Users] Error: Could not find class apache What if you try running: puppet apply C:\Maruti\Puppet\manifests\site.pp --modulepath C:\Maruti\P

[Puppet Users] Problems testing branching using rspec-puppet with hiera

2016-01-27 Thread jwilkicki
Hi all! I've been banging my head against this for the past couple of days and I'm pretty stuck. I've started implementing rspec tests for a class that uses a hiera lookup and then uses the looked up value to control part of its logic. A simplified version: class mytest { $myconditio

Re: [Puppet Users] Warning: Local environment: "production" doesn't match server specified node environment

2016-01-27 Thread Alfredo De Luca
Hi Matt. AFAIK production is the default environment assigned to all the nodes. try puppet config print environment On Thu, Jan 28, 2016 at 3:49 AM, Matt Zagrabelny wrote: > Greetings, > > I've searched a bit and found some hits for the subject, but nothing that > helps. > > I'm using an ENC

[Puppet Users] Announce: Puppet 3.8.5 available

2016-01-27 Thread Eric Sorenson
Puppet 3.8.5 is now available. This is a bugfix release that contains performance improvements to catalog compilation and Mac OS X service management, along with fixes for Windows agents and the Puppet 4 language parser. See the full release notes here: http://docs.puppetlabs.com/puppet/3.8/ref

Re: [Puppet Users] Announce: Puppet 3.8.5 available

2016-01-27 Thread Morgan Rhodes
On Wed, Jan 27, 2016 at 2:58 PM Eric Sorenson wrote: > Puppet 3.8.5 is now available. This is a bugfix release that contains > performance improvements to catalog compilation and Mac OS X service > management, along with fixes for Windows agents and the Puppet 4 language > parser. See the full re

Re: [Puppet Users] Announce: puppet-agent 1.3.4 available

2016-01-27 Thread Morgan Rhodes
On Mon, Jan 25, 2016 at 5:55 PM Eric Sorenson wrote: > Puppet Agent 1.3.4 is now available! This is a bugfix release of the > all-in-one Puppet 4 based installer, which bundles Ruby, Facter, Puppet, > and other components into a single package for all supported operating > systems. > > Notable ch

Re: [Puppet Users] Re: exec without a shell

2016-01-27 Thread 'Stefan Schulte' via Puppet Users
On 27.01.2016 15:28, jcbollinger wrote: > [...] > Puppet implements the "posix" provider by passing the command to > Ruby's Kernel.exec() > . > [...] Thanks for the inside view John. This would explain the current behaviour. IIRC this beh

Re: [Puppet Users] Re: exec without a shell

2016-01-27 Thread 'Stefan Schulte' via Puppet Users
On 28.01.2016 01:46, 'Stefan Schulte' via Puppet Users wrote: > [...] > I guess the sane approach would be to add a feature request to allow > passing an array as a command parameter which in turn would run ruby's > exec with an array as well, bypassing the shell. > [...] > -- Stefan just for re

Re: [Puppet Users] Re: Puppet x64 msi not installing files

2016-01-27 Thread Gary Greene
Yes, UAC is turned on on this machine. Turning it off is not really an option, since compromising system security for the ability for us to manage systems is not an option. On 19 January 2016 at 01:10, Bjoern Meier wrote: > Hi, > > do you have UAC active? I get this with active UAC. > > > Am Fre