[Puppet Users] Passing a yaml throws errors on only some parameters

2014-01-13 Thread Karolis Pabijanskas
Hi list, I have a define type with parameters like this: define user ( $username=$title, $comment='', $uid='', $gid=$uid, $groups=[ 'users',], $password='', $shell="/bin/false", $su

Re: [Puppet Users] Passing a yaml throws errors on only some parameters

2014-01-13 Thread Karolis Pabijanskas
d='', $shell="/bin/false", $sudo="disable", $sudo_nopasswd="disable", ) and then do check on that and then pass: sudo: enable And it still fails with the same error On Monday, 13 January 2014

[Puppet Users] Custom function errors

2014-05-16 Thread Karolis Pabijanskas
Hi All, I'm having issues with what seems to be incorrect parsing by all the custom functions we have. If I run "ruby -rpuppet" I get something like: [root@puppet modules]# ruby -rpuppet /var/lib/puppet/lib/puppet/parser/functions/foreman.rb /usr/lib/ruby/site_ruby/1.8/puppet/parser/functions.rb

Re: [Puppet Users] Custom function errors

2014-05-19 Thread Karolis Pabijanskas
s, Karolis On 18 May 2014 12:28, David Schmitt wrote: > On 2014-05-16 14:46, Karolis Pabijanskas wrote: > >> Hi All, >> >> I'm having issues with what seems to be incorrect parsing by all the >> custom functions we have. >> >> If I run "rub

[Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Karolis Pabijanskas
Hi All, I am sure this is going to be something completely stupid, but I just can't find the issue :) I have a very simple module that that needs a different filepath depending on the operating system, so I'm trying to call: $global_bashrc_file = hiera("global_bashrc_file") from my module. The

Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Karolis Pabijanskas
De Wit wrote: > > Hi, > > > > always use quotes when using facts etc in hiera : > > > > :hierarchy: > > - "%{operatingsystem}" > > - default > > > > hth > > > > Johan > > > > On 30/07/14 18:21, Karolis P

[Puppet Users] Reloading missing gems in a custom provider during the run

2014-09-17 Thread Karolis Pabijanskas
Hi, I have a custom type and provider that are depending on a rest-client gem. After the pluginsync, when providers get loaded, I do this to avoid it failing: 30 begin 31 require 'rest-client' 32 rescue LoadError => e 33 Puppet.info "You need the `rest-client` gem for this to work." 34