Re: [Puppet Users] mathematical operation

2012-06-24 Thread Ilya Dmitrichenko
On Jun 20, 2012 10:06 AM, "Antidot SAS" wrote: > > HI everyone, > > > > > I am trying to use the ruby modulo function but without any success, here is the template: > -- > $tt=regsubst($::hostname,'.*front(\d+).*','\1') > notice("$tt") > notice(inline_template("<% tt.to_i.modulo(60) %>")) try `"<

Re: [Puppet Users] Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-19 Thread Ilya Dmitrichenko
Hi, Yes, you probably want to do something like this: class virtualmin::install { $version = '1.2.3-foo' exec { 'get installer script': command => 'wget http://software.virtualmin.com/gpl/scripts/install.sh', cwd => '/tmp', creates => '/tmp/install.sh', } file { '/tmp/install.s

[Puppet Users] Setting defaults on a type and in a class before defining a class resource

2013-01-11 Thread Ilya Dmitrichenko
Hi, I'm have this in my nginx module: class nginx::package { package { 'nginx': ensure => latest } ### there is more code here handling different ditro versions ... etc } class nginx::service { service { 'nginx': ensure => running, enable => true, hasrestart => true,

[Puppet Users] Re: Setting defaults on a type and in a class before defining a class resource

2013-01-11 Thread Ilya Dmitrichenko
Ok, I tried this with 2.7.20 and it's the same ... But copying `File { }` into the `define extra` block fixed it for me. That's a bit of an unexpected kind of scoping, isn't it? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this gr