[Puppet Users] Looking for speakers for first puppet camp Asia

2012-04-25 Thread Walter Heck
Hi all, we're trying to organise the first puppet camp in Asia (to be held in Kuala Lumpur, Malaysia) for around June 5th. We're currently looking for 2-3 speakers to come and talk about puppet. Is there anyone who would be willing to receive our undying gratitude and come and speak here? If you

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-25 Thread Denmat
Hi, The way that i import my keys is to set the gpg key for the yum repo like so: yumrepo { "jenkins": baseurl => "http://pkg.jenkins-ci.org/redhat";, descr=> "Jenkins", enabled => 1, gpgcheck => 1, gpgkey => "http://pk

Re: [Puppet Users] Host/Agent should not install if there are no changes in file

2012-04-25 Thread Michael Baydoun
The file ensure for the tar file should only download when it changes The untar can have a require on the file resource, and so on Can you post your file resource and untar exec resource? On Wed, Apr 25, 2012 at 5:51 PM, Suresh wrote: > Can you guys please help me address this host configuratio

[Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-25 Thread Michael Harris
I've asked this question over on serverfault, but had no response. I'm trying to install Jenkins with Puppet using the manifests below. # init.pp class jenkins { include je

[Puppet Users] Host/Agent should not install if there are no changes in file

2012-04-25 Thread Suresh
Can you guys please help me address this host configuration? 1) I have 5 different modules that need to be installed to each host/agent 1.1) from one of the modules, a large application tar file is downloaded by agent and performs untar to required folder structure. 1.2) before the "untar", requi

[Puppet Users] Re: ordering or chaining for generate() function

2012-04-25 Thread Krzysztof Wilczynski
Hi, On Wednesday, April 25, 2012 5:49:03 PM UTC+1, psychobyte wrote: > > Essentially, yeah. > [...] > I want to guarantee that the generate function runs before any file > resources. > In such case, look at stages, perhaps it will help. Other than that, if you want to make sure that said conf

Re: [Puppet Users] File Loop, Possible??

2012-04-25 Thread Dan Bode
you could do something like this: define loopydir() { file { "$module::params::base_dir/${name}": ensure => "directory" owner => "root", group => "root", } } include module::params file { "$module::params::base_dir" : ensure => "directory" owner => "root" group => "ro

Re: [Puppet Users] Re: Parametrized classes, definitions and structure

2012-04-25 Thread Ramin K
On 4/24/2012 10:31 AM, Andy Taylor wrote: Thank you very much for your detailed reply John. I hadn't looked at Hiera before, it looks very interesting. On the point of it's not good to include node/site data in manifests, it's kind of essential in my eyes to the setup I am trying to implement. A

[Puppet Users] File Loop, Possible??

2012-04-25 Thread Brian Carpio
Is there a way to define a single file resource or even exec resource like this: file { "$module::params::base_dir" : ensure => "directory" owner => "root" group => "root", } file { "$module::params::base_dir/$module::params::name": ensure => "directory" owner => "root", g

[Puppet Users] Re: exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Shantanu
On Apr 25, 11:46 am, Craig Dunn wrote: > On 25/04/2012 17:01, Shantanu wrote: > > > > > I would like to 'exec' an installation script 'onlyif' an installation > > directory is empty. I tried using following bash one-liner however it > > didn't work: > > > >    exec{$one_install_script: > >      

[Puppet Users] Re: exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Shantanu
On Apr 25, 11:03 am, Florian Koch wrote: > Hi, > > you need to add provider => shell to your exec to get the subshell working > > regards Florian > Thanks Florian. The provider parameter took care of shell built-ins and path as well. -- Shantanu -- You received this message because you are s

Re: [Puppet Users] What is the "false" directory?

2012-04-25 Thread Peter Bukowinski
Reported. http://projects.puppetlabs.com/issues/14173 -- Peter On Apr 24, 2012, at 5:04 PM, Krzysztof Wilczynski wrote: > Hi, > > On Tuesday, April 24, 2012 6:38:27 PM UTC+1, Nigel Kersten wrote: > This should get reported as a bug though. > > We should probably only accept absolute paths for

[Puppet Users] Re: ordering or chaining for generate() function

2012-04-25 Thread psychobyte
yes. I'm running a server side script that creates some data used to update a client-side config file. On Wednesday, April 25, 2012 6:50:52 AM UTC-7, matti wrote: > > Hi, > > Am I right in thinking that something like that has place. On the Master: > > generate() -> template() and/or "static fil

[Puppet Users] Re: ordering or chaining for generate() function

2012-04-25 Thread psychobyte
Essentially, yeah. we have a data file that needs updating on the server. This is done through a custom script. i want to use generate() to run that script server side before we re-create the config files via puppet. I want to guarantee that the generate function runs before any file resourc

Re: [Puppet Users] exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Craig Dunn
On 25/04/2012 17:01, Shantanu wrote: I would like to 'exec' an installation script 'onlyif' an installation directory is empty. I tried using following bash one-liner however it didn't work: exec{$one_install_script: require => File[$one_install_script], onlyif => "[ \"$(/bin/ls

Re: [Puppet Users] exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Florian Koch
Hi, you need to add provider => shell to your exec to get the subshell working regards Florian On Wed, Apr 25, 2012 at 6:01 PM, Shantanu wrote: > > I would like to 'exec' an installation script 'onlyif' an installation > directory is empty. I tried using following bash one-liner however it > d

[Puppet Users] exec's onlyif parameter fails for a bash one-liner

2012-04-25 Thread Shantanu
I would like to 'exec' an installation script 'onlyif' an installation directory is empty. I tried using following bash one-liner however it didn't work: exec{$one_install_script: require => File[$one_install_script], onlyif => "[ \"$(/bin/ls -A $one_location)\" ] && exit 1 || exit 0"

Re: [Puppet Users] hiera rpm

2012-04-25 Thread Craig Dunn
Just wondered if there are any plans to put a heira RPM in the puppetlabs yum repositories (for EL6)? http://yum.puppetlabs.com/el/6/products/i386/ So far there doesn't seem to be one. Yep, we are working on that, should have one available in the next week or two. Nick

Re: [Puppet Users] hiera rpm

2012-04-25 Thread Kelsey Hightower
On Wed, Apr 25, 2012 at 10:22 AM, Nick wrote: > Hi, > > Just wondered if there are any plans to put a heira RPM in the puppetlabs > yum > repositories (for EL6)? > > http://yum.puppetlabs.com/el/6/products/i386/ > > So far there doesn't seem to be one. Yep, we are working on that, should have

[Puppet Users] Re: Undiserable kernel upgrade in Ubuntu

2012-04-25 Thread jcbollinger
On Apr 25, 4:59 am, Juan José Presa Rodal wrote: > Ok, but then this response is unconsistent: > > # puppet resource package linux-headers-server > > package { 'linux-headers-server': >   ensure => '2.6.32.41.48', > > } > > I thought that if ensure property wasn't "absent", package provider make

[Puppet Users] hiera rpm

2012-04-25 Thread Nick
Hi, Just wondered if there are any plans to put a heira RPM in the puppetlabs yum repositories (for EL6)? http://yum.puppetlabs.com/el/6/products/i386/ So far there doesn't seem to be one. N -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. T

Re: [Puppet Users] Re: Exec and snmpd restart question

2012-04-25 Thread Peter Horvath
I didnt know this way of declaration :) thank you works like a charm On 25 April 2012 15:07, jcbollinger wrote: > > > On Apr 25, 6:57 am, Peter Horvath wrote: >> If anybody interested the simple solution was to add refreshonly => >> true to the exec. >> the snmp restart instead of a proper servi

[Puppet Users] Re: Exec and snmpd restart question

2012-04-25 Thread jcbollinger
On Apr 25, 6:57 am, Peter Horvath wrote: > If anybody interested the simple solution was to add refreshonly => > true to the exec. > the snmp restart instead of a proper service resource type has been > replaced with an Exec > '/usr/sbin/service snmpd restart': >                         subscrib

[Puppet Users] Re: autosign

2012-04-25 Thread jcbollinger
On Apr 24, 11:45 am, Bill Weiss wrote: > Autosign works, but not as you're expecting: it will sign new > certificates, but not overwrite existing ones.  At least, that's my > experience here :) And that's as it should be, else the name of the feature would be "disable-authentication". Some pe

[Puppet Users] Re: Parametrized classes, definitions and structure

2012-04-25 Thread jcbollinger
On Apr 24, 12:31 pm, Andy Taylor wrote: > Thank you very much for your detailed reply John. I hadn't looked at > Hiera before, it looks very interesting. On the point of it's not good > to include node/site data in manifests, it's kind of essential in my > eyes to the setup I am trying to implem

[Puppet Users] Re: ordering or chaining for generate() function

2012-04-25 Thread Krzysztof Wilczynski
Hi, Am I right in thinking that something like that has place. On the Master: generate() -> template() and/or "static file" -> /config/file/on/the/client Then, if /config/file/on/the/client exists, you do not use generate(), yet when on the contrary, then you have to fire generate() first to ge

[Puppet Users] Re: ordering or chaining for generate() function

2012-04-25 Thread jcbollinger
On Apr 24, 3:53 pm, psychobyte wrote: >  I need to run a the generate() function (server side) in order to populate > a data file for one of my modules.  Is there a way to ensure that the > generate function is > run before a config file is created (the contents of the file doesn't come > direct

[Puppet Users] Re: Exec and snmpd restart question

2012-04-25 Thread Peter Horvath
If anybody interested the simple solution was to add refreshonly => true to the exec. the snmp restart instead of a proper service resource type has been replaced with an Exec '/usr/sbin/service snmpd restart': subscribe => [ File['/etc/default/ snmpd'], File['/etc/snm

[Puppet Users] Re: Unable to import a manifest file from a different directory to the one where site.pp is located using environments

2012-04-25 Thread Peter
Hi Luke, Thanks for the reply. That makes sense now ... my issue was thinking it had the same behavour as the modulepath setting. I might have to re-think how I was going to manage multiple environments and multiple users using the same or different environments. For some background on what I w

[Puppet Users] Exec and snmpd restart question

2012-04-25 Thread Peter Horvath
Hello Pros and users of Puppet. I have two problems with the following modul setup: My first problem that i tried every combination of require,notify,subscribe for the mail sending exec but it runs every single time when i run the module no matter if the files changed or not. Second problem that

Re: [Puppet Users] Undiserable kernel upgrade in Ubuntu

2012-04-25 Thread Juan José Presa Rodal
Ok, but then this response is unconsistent: # puppet resource package linux-headers-server package { 'linux-headers-server': ensure => '2.6.32.41.48', } I thought that if ensure property wasn't "absent", package provider make nothing... Would not be that way more consistent behaviour? El m

Re: [Puppet Users] puppet + mysql = central users administration for yours servers

2012-04-25 Thread Martin Willemsma
To read in English use Google translate: http://translate.google.com/translate?sl=ru&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fhabrahabr.ru%2Fcompany%2Fbadoo%2Fblog%2F142708%2F Martin 2012/4/25 banuchka : > Hi all, > > article in Russian only, but it looks nice. > > http:/

Re: [Puppet Users] Undiserable kernel upgrade in Ubuntu

2012-04-25 Thread Sharuzzaman Ahmat Raslan
Hi, linux-headers-server are metapackage. They always point to the latest real package, eg linux-headers-2.6.32-41-server That will cause puppet to always update the package to the latest version. To prevent that, always refer to specific package name, eg. linux-headers-2.6.32-41-server , not me

[Puppet Users] puppet + mysql = central users administration for yours servers

2012-04-25 Thread banuchka
Hi all, article in Russian only, but it looks nice. http://habrahabr.ru/company/badoo/blog/142708/ -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this

Re: [Puppet Users] Migrate installation to different directory

2012-04-25 Thread Ramin K
On 4/24/2012 11:18 AM, JA wrote: Stefan; Thanks for the suggestion. However, we are running puppet via Passenger. So, I assume I need to update the config.ru file. Do you have any suggestions about that? Greatly appreciate your help and advice! in your config.ru add an additional ARGV line

[Puppet Users] Undiserable kernel upgrade in Ubuntu

2012-04-25 Thread Juan José Presa Rodal
Hi, I've defined this module: package {['build-essential', "linux-headers-${kernelrelease}", 'dkms', 'linux-headers-server']: ensure => installed, } and when the package linux-headers-server it's upgraded in the repositories puppet tries to upgrade in client too. And as that package has

Re: [Puppet Users] Unable to import a manifest file from a different directory to the one where site.pp is located using environments

2012-04-25 Thread Luke Bigum
I don't think $manifestdir will take a directory list, only a single directory. From the 2.7.12 docs: [root@puppet ~]# puppet --genconf | grep -B2 -A1 manifestdir # The entry-point manifest for puppet master. # The default value is '$manifestdir/site.pp'. manifest = /etc/puppet/mani

Re: [Puppet Users] ordering or chaining for generate() function

2012-04-25 Thread Luke Bigum
You might be able to do something like this (untested): $blackhole_variable = generate('/usr/bin/myscript') file { "conffile": ... } On 24/04/12 21:53, psychobyte wrote: Hi, I need to run a the generate() function (server side) in order to populate a data file for one of my modules. Is

[Puppet Users] Re: Can you check a setting set in puppet.conf from within a module

2012-04-25 Thread Peter
Hi Gary, Thank you very much! I thought it may have been a scoping issue! Peter. On Apr 25, 8:56 am, Gary Larizza wrote: > Hey Peter, > > You should be able to do $settings::storeconfigs to get that value. > > > > > > > > > > On Tue, Apr 24, 2012 at 2:14 PM, Peter Foley wrote: > > Hi List, >

[Puppet Users] Unable to import a manifest file from a different directory to the one where site.pp is located using environments

2012-04-25 Thread Peter Foley
Hi List, Puppet Version: v2.7.13 Question - If I correctly setup multiple manifestdir's in the puppet.conf file how can I import a node pp file located in a different directory tree to site.pp? My configuration information is below. In my puppet.conf file I have setup an environment called "sta

[Puppet Users] Re: Puppet and SCAP

2012-04-25 Thread Kiki
Hi I had a look at secstate, but from what I understood you can only audit and remediate local systems and for now just on Fedora. I tried to ask them a few questions, but they are not as responsive as puppet :). Is secstate working in cooperation with puppet or are they independent from you? I.e.