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 `"<
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
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,
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