[Puppet Users] how to write a loop to convert all erb files to regular file?

2015-10-20 Thread yi zhao
Hi, so we have a few template setup under my_module/templates/ like create_pre_rac_setup.sh.erb run_this_rac.sh.erb and I write someting in init.pp $db_setup_home = "$dbnamehome/dbs/create_$dbname" file { "$db_setup_home/create_pre_rac_setup_$dbname.sh": ensure => 'file',

[Puppet Users] Re: Beaker and mock services

2015-10-20 Thread Dylan Ratcliffe
I agree with the other comments, start with RSpec, where you can easily mock things, then move on to acceptance testing. The reason you cannot easily mock things with acceptance testing is that currently Beaker is executing Puppet Apply on a piece of code and then using Serverspec to check over

[Puppet Users] Re: Problem installing modules in PE 3.7.2

2015-10-20 Thread Brendan Kelley
I'm having the exact same problem, but whether I install the registry module as myself and sudo or root, it makes no difference. The module still doesn't appear in the web console when I try to add it to a class. It's currently installed as: sudo /usr/local/bin/puppet module install puppetl

Re: [Puppet Users] Announce: PuppetDB 2.3.8 has been released!

2015-10-20 Thread Wyatt Alt
On 10/20/15 1:34 PM, Daniel Urist wrote: Is there any update on when puppetdb will be available for Debian 8 (jessie)? Puppetserver is now available according to the announcement for v.2.1.2. On Wed, Oct 14, 2015 at 4:34 PM, Wyatt Alt > wrote: PuppetDB 2.3.8

Re: [Puppet Users] Beaker and mock services

2015-10-20 Thread Justin Stoller
On Tue, Oct 20, 2015 at 12:49 AM, Alex Harvey wrote: > Hi all, > > I am investigating whether or not I can use Beaker to do acceptance > testing on roles and profiles. > > I've had a look at Liam Bennett's excellent blog posts - > > http://tech.opentable.co.uk/blog/2014/09/01/testing-puppet-with-

Re: [Puppet Users] Announce: PuppetDB 2.3.8 has been released!

2015-10-20 Thread Daniel Urist
Is there any update on when puppetdb will be available for Debian 8 (jessie)? Puppetserver is now available according to the announcement for v.2.1.2. On Wed, Oct 14, 2015 at 4:34 PM, Wyatt Alt wrote: > PuppetDB 2.3.8 October 14, 2015 > > PuppetDB 2.3.8 Downloads > > >

[Puppet Users] Announce: Puppet Server 2.1.2 and 1.1.2 available!

2015-10-20 Thread Justin May
We are pleased to announce the release of Puppet Server 2.1.2 and 1.1.2! These are both security and bug-fix releases, no new features have been added and we recommend that all users upgrade. Debian 8 is a newly supported platform for Puppet Server 2.1.2. *Puppet Server 2.1.2* Released October 1

[Puppet Users] Open Source Puppet 3.8 agent for SUSE Sles

2015-10-20 Thread cmiller76
I am running Puppet Open Source, version 3.8.3. I have inherited a large SUSE Sles 11 environment that I would like to start managing with Puppet. I cannot find a Sles 3.8.3 puppet agent package anywhere, and am inexperienced at building packages for Sles. Can anyone point me to where I can fin

Re: [Puppet Users] Puppet with Foreman for reports but noch ENC

2015-10-20 Thread David Schmitt
Hi Andreas, On 20/10/2015 13:48, Andreas Dvorak wrote: Hello, currently I am running a Puppet Master with Foreman for reports and ENC and I have only one environment. The environment parameter in the file puppet.conf is not used because Foreman is an ENC. Now I want to configure different envir

Re: [Puppet Users] Beaker and mock services

2015-10-20 Thread David Schmitt
Hi, On 20/10/2015 08:49, Alex Harvey wrote: Hi all, I am investigating whether or not I can use Beaker to do acceptance testing on roles and profiles. I've had a look at Liam Bennett's excellent blog posts - http://tech.opentable.co.uk/blog/2014/09/01/testing-puppet-with-beaker-pt-dot-3-tes

Re: [Puppet Users] Puppet PowerShell api connection

2015-10-20 Thread David Schmitt
On 19/10/2015 19:38, Elwin Hidding wrote: I do not see my last post and cannot find it, so 2nd try. I am trying to make a connection from PowerShell to the Puppet API. The CURL example on: http://docs.puppetlabs.com/puppetdb/2.3/api/query/v3/facts.html shows me this: | curl -X GET http://p

Re: [Puppet Users] Re: Compiling catalogs as CD pipeline

2015-10-20 Thread David Schmitt
On 20/10/2015 08:32, Alex Harvey wrote: In case anyone is looking at this in the archives: I ended up concluding that the tool we were using is redundant and superseded by rspec-puppet. I now have rspec-puppet host tests that look something like: require'spec_helper' ['myhost1, 'myhost2'

[Puppet Users] Re: Install Puppet as Docker CLI image

2015-10-20 Thread Corey Osman
I maintain some public docker images geared towards puppet development. They are based off of centos, and use gems to install puppet. I have packed the image just about every gem needed for development. (https://github.com/logicminds/docker-centos-puppetdev/blob/latest/scripts/puppet-bootstra

[Puppet Users] Puppet with Foreman for reports but noch ENC

2015-10-20 Thread Andreas Dvorak
Hello, currently I am running a Puppet Master with Foreman for reports and ENC and I have only one environment. The environment parameter in the file puppet.conf is not used because Foreman is an ENC. Now I want to configure different environments and want to set the environment in the puppet.c

[Puppet Users] Re: Workflow to replicate production environment locally using vagrant with puppetmaster

2015-10-20 Thread Gavin Williams
Jeremy I've done the same for our developers here, and rather than pointing them at the Prod Puppetmaster, they use Vagrant to stand up a local Puppetmaster in the same way the Live master is deployed. They can then stand-up any number of local machines against their local Puppetmaster without

[Puppet Users] Workflow to replicate production environment locally using vagrant with puppetmaster

2015-10-20 Thread JeremyCampbell
We have our production servers fully puppetized and have a team of 12 developers who need to replicate the production environment locally on their workstations. We already have experience using vagrant with shared boxes, however the drift from production over time has become an issue. We use ro

Re: [Puppet Users] Facter 3.1 gem

2015-10-20 Thread Mickaël Canévet
What will happen when puppet (5?) will require facter 3+? Will puppet still be available on rubygems.org or only within AIO packages? This would be very annoying for puppet module development... -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To

[Puppet Users] Beaker and mock services

2015-10-20 Thread Alex Harvey
Hi all, I am investigating whether or not I can use Beaker to do acceptance testing on roles and profiles. I've had a look at Liam Bennett's excellent blog posts - http://tech.opentable.co.uk/blog/2014/09/01/testing-puppet-with-beaker-pt-dot-3-testing-roles/ http://www.slideshare.net/liamjbenne

[Puppet Users] Re: Compiling catalogs as CD pipeline

2015-10-20 Thread Alex Harvey
In case anyone is looking at this in the archives: I ended up concluding that the tool we were using is redundant and superseded by rspec-puppet. I now have rspec-puppet host tests that look something like: require 'spec_helper' ['myhost1, 'myhost2'].each do |fqdn| hostname, node_environm