[Puppet Users] Hiera lookup bug?

2014-05-26 Thread Dirk Heinrichs
Hi, I'm facing a strange problem with Hiera, where a trailing 0 (zero) is cut off a value, for example: myclass::version: 1.10 resolves to 1.1 when the class is applied on an agent. The agent runs Puppet 3.4.3 with Hiera 1.3.1 on Windows Server 2008R2. As a workaround I'm now passing the value

[Puppet Users] Re: Patterns for building configs using hashes & arrays

2014-05-26 Thread William Leese
This should help: https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/parser/functions/delete_undef_values.rb -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, se

[Puppet Users] Re: Dynamically assign files to hiera hierarchy

2014-05-26 Thread William Leese
For more dynamic hiera hierarchy behaviors, take a look here and add your vote / any relevant links: https://tickets.puppetlabs.com/browse/HI-257 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving

Re: [Puppet Users] Pattern for Associating Module versions with Nodes

2014-05-26 Thread Nitin Sharma
Hi Abbas, I am wondering if you have found a solution for the requirement yet and if so, could you please share it. On Friday, March 8, 2013 9:43:24 AM UTC+11, Mohamed Abbas wrote: > > On 3/7/13 1:51 PM, Nan Liu wrote: > > On Thu, Mar 7, 2013 at 12:42 PM, Mohamed Abbas > > > wrote: > >>

Re: [Puppet Users] Re: Puppet Dashboard installation on Debian Wheezy

2014-05-26 Thread Felix Frank
On 05/25/2014 12:44 PM, Ghaith wrote: > Hi , > > After installing the script and while starting the service i obtain the > error message bellow > > /etc/init.d/puppet-dashboard start > [] Starting Puppet Dashboard:/usr/bin/ruby: No such file or > directory -- /usr/share/puppet-dashboard/scrip

[Puppet Users] template and scope

2014-05-26 Thread Fabrice Bacchella
I wrote the following manifest : === define mysubtype($filepath = $title, $source) { file {"$filepath": content => template("$source") } } define mytype($param2) { mysubtype{"/tmp/parsed1": source => "/tmp/parsed.erb" } file{"/tmp/par

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, This is a quite a good idea (to escape using ' rather than "). I will try it. Thanks a lot. Sincerely, Ghassen Cheinour. On Mon, May 26, 2014 at 3:30 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > > Am 26.05.2014 15:18, schrieb cheniour ghassen: > > i tried

Re: [Puppet Users] First time using template... Is this correct?

2014-05-26 Thread Felix Frank
Hi, humm, so one of the elements in your classes array is a hash? I'm not sure how this is going to be used. How is the erb template being employed by your manifest? Felix On 05/21/2014 05:29 PM, Keith Shannon wrote: > classes: > - ffn_logrotate::chat_server > - ffn_cron::cron_clean_chat_tm

[Puppet Users] Re: Patterns for building configs using hashes & arrays

2014-05-26 Thread Jesse Cotton
I like this approach too :) I am just wondering how you build the hash or array up since variables are immutable and cannot be reassigned. For example, I want to do the below however I can't. define duplicity::job( $directories= [], $gpg_key_id = undef, $print_stats

Re: [Puppet Users] puppet resource (ral) calls validate on custom (network_device) type

2014-05-26 Thread Felix Frank
Have you tried just puppet apply -e 'f5_node { "/TestPartition2000/TestNode2000": ensure => present, ipaddress => "1.1.1.97" }' Note that just because the resource can be prefetched with a correctly defined IP address, your validate hook tells puppet to reject any resource declaration that fails

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-26 Thread daddy dp
I think, you need to use master less configuration, it is more robust solution and more suitable for autoscaling env. Just keep puppet and puppet modules on ami or check out on first boot. On Saturday, May 24, 2014 8:54:04 AM UTC+3, Bad Tux wrote: > > > Wha? > > > Uhm, okay. So I need to solve t

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:24, schrieb Dirk Heinrichs: > Am 26.05.2014 15:18, schrieb cheniour ghassen: > >> i tried to escape but this doesn't work . > > Hmm, try awk \'...\', like shown here > . There's another solution h

Re: [Puppet Users] Hiera hierarchy question

2014-05-26 Thread Felix Frank
Hi, I don't really understand the problem. What file did you need to create before you could use what other file? Thanks, Felix On 05/10/2014 07:26 PM, twm...@gmail.com wrote: > However in order to get files of the name "users/%{usertype}" I needed > to create files in the base hiera directory

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:18, schrieb cheniour ghassen: > i tried to escape but this doesn't work . Hmm, try awk \'...\', like shown here . Bye... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Sol

Re: [Puppet Users] puppetlabs-mysql - question about automated backup script mysqlbackup.sh

2014-05-26 Thread Felix Frank
Hi, this request looks valid to me. If it poses an issue for you, you may wish to file a ticket via https://tickets.puppetlabs.com/browse/MODULES Thanks, Felix On 05/09/2014 06:19 PM, Laurent CREPET wrote: > So, > - mysqldump will use the credentials given to ::mysql::server::backup > - mysql w

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi Dirk, i tried to escape but this doesn't work . thanks On Mon, May 26, 2014 at 3:15 PM, Dirk Heinrichs wrote: > Am 26.05.2014 15:09, schrieb cheniour ghassen: > > but puppet seems to not understand $2. > > > Because it's an awk variable. You need to escape it somehow (\$2, maybe). > > HTH..

Re: [Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread Dirk Heinrichs
Am 26.05.2014 15:09, schrieb cheniour ghassen: > but puppet seems to not understand $2. Because it's an awk variable. You need to escape it somehow (\$2, maybe). HTH... Dirk -- *Dirk Heinrichs*, Senior Systems Engineer, Engineering Solutions *Recommind GmbH*, Von-Liebig-Straße 1, 53359 Rh

[Puppet Users] pass a command output as another command's parameter

2014-05-26 Thread cheniour ghassen
Hi everyone, In some place of my puppet script i need to direct the output of a command as an argument to another one. the commands are > exec { 'create-endpoint': > > command => "id = $( /usr/bin/keystone --os-token=admin > --os-endpoint=http://master:35357/v2.0 service-list | /bin/grep glan