Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you know the names of all the rpms to be installed, and that's all the install.sh script does, then you _can_ use the package resource:

package { 'MFfoobar':
    provider => 'rpm' ,
    ensure => 'installed' ,
    source => '/.../.../MFfoobar-version-release.arch.rpm'
}

If you know the names of all the rpms to be installed, and that's all the install.sh script does, then you _can_ use the package resource:

package { 'MFfoobar':
    provider => 'rpm' ,
    ensure => 'installed' ,
    source => '/.../.../MFfoobar-version-release.arch.rpm'
}

If the install script does other things, then you can use the unless parameter to exec:

exec {'install_sw':
    cwd     => 'mcafee/puppet/test/downloaded',
    command => "./install.sh -i ",
    unless => "rpm -q MFfoobar-version-release"
}