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.sh':
mode => 0755,
# checksum => 'the_checksum_of_that_script_if_you_feed_paranoid'
}
exec { 'install it now':
command => '/tmp/install.sh',
unless => 'test -x /usr/local/virtualmin/bin/foo &&
/usr/local/virtualmin/bin/foo --version | grep $version',
require => File['/tmp/install.sh'],
}
}
hope this kind of makes sense and please excuse any errors this pseudocode
might give you :)
Cheers,
--
Ilya
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.