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

2015-10-21 Thread yi zhao
end up I just use a simple array to solve the issue: Examples Declaring Resources Since the focus of the Puppet langu

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

2015-10-21 Thread David Schmitt
On 21/10/2015 21:32, yi zhao wrote: Hi,David, thank you for the quick reply, I am new to resource type define so may need your help to troubleshoot: mycode: $db_setup_home = "${dbnamehome}/dbs/create_${dbname}" define rac_script($home, $source) { file { "${home}/${name}.txt":

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

2015-10-21 Thread yi zhao
Hi,David, thank you for the quick reply, I am new to resource type define so may need your help to troubleshoot: mycode: $db_setup_home = "${dbnamehome}/dbs/create_${dbname}" define rac_script($home, $source) { file { "${home}/${name}.txt": content => template("${module_n

Re: [Puppet Users] Custom facts in facter

2015-10-21 Thread Peter Bukowinski
> On Oct 21, 2015, at 12:56 PM, Hugo Deprez wrote: > > Hello, > > I created a custom fact with the following procedure : > > mkdir -p /etc/puppet/modules/facts/lib/facter > touch apache.rb > > Content of apache.rb file : > Facter.add('apache') do > setcode do > apache_package = Facter:

[Puppet Users] Custom facts in facter

2015-10-21 Thread Hugo Deprez
Hello, I created a custom fact with the following procedure : mkdir -p /etc/puppet/modules/facts/lib/facter touch apache.rb Content of apache.rb file : Facter.add('apache') do setcode do apache_package = Facter::Core::Execution.exec('which apache2') # if 'which apache2' exits with an

[Puppet Users] Daemonized puppet on Windows and splay

2015-10-21 Thread Chris Spence
We are running puppet (3.7.x) on Windows daemonized. We recently turned on splay because reasons. After having done so the interval between daemonised runs, counter to expectation, has become randomised (though we get an averageish run interval of 30 minutes (30.5 recurring)). The linuxes her

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

2015-10-21 Thread Brendan Kelley
I'm running the following versions of Puppet: ==Puppetmaster server== -bash-4.1$ /usr/local/bin/puppet --version 4.2.2 ==Windows 7 client== ruby 1.9.3p551 (2014-11-13) [i386-mingw32] C:\Windows\system32>puppet --version 3.8.3 On Wednesday, October 21, 2015 at 1:12:03 AM UTC-7, Johan De Wit wro

Re: [Puppet Users] Beaker and mock services

2015-10-21 Thread Gareth Rushgrove
On 20 October 2015 at 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-p

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

2015-10-21 Thread Andreas Dvorak
Hi, thank you I will remove the two lines external_nodes = /etc/puppet/node.rb node_terminus = exec from the puppet.conf file. Andreas Am Dienstag, 20. Oktober 2015 18:41:54 UTC+2 schrieb David Schmitt: > > Hi Andreas, > > On 20/10/2015 13:48, Andreas Dvorak wrote: > > Hello, > > > >

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

2015-10-21 Thread David Schmitt
Hi, On 20/10/2015 23:06, yi zhao wrote: 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

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

2015-10-21 Thread Johan De Wit
hi, Could it be mixing multiple puppet versions ? Are you using the correct puppet ?? > /usr/local/bin/puppet --version Looking at the module path suspect puppet version 4. (/etc/puppetlabs/code/...) PE puppet is /opt/puppet/bin/puppet grts On Tue, 2015-10-20 at 14:01 -0700, Brendan Kelley wrote