Hello,
I'm trying to automate the installation of an HPOV agent on systems with HP's oainstall.sh script.
When manually running the script with the options -install -agent all works fine
When I try to do the same with an exec resource in puppet I get the weird behaviour that it returns with
INFO: Unsupported option –install
afterwards it the script returns the 'accepted' flags
Usage: oainstall.sh -i|-install -m|-mgmt [-p|-platform <platform>] [-includeupdates]
Notice: /Stage[main]/Hpom/Exec[install_hpom_agent]/returns: oainstall.sh -i|-install -m|-mgmt [-p|-platform <platform>] [-baseonly]
Notice: /Stage[main]/Hpom/Exec[install_hpom_agent]/returns: oainstall.sh -i|-install -m|-mgmt -pn|-patchname <patchname>
Notice: /Stage[main]/Hpom/Exec[install_hpom_agent]/returns: oainstall.sh -i|-install -m|-mgmt [-spiconfig <configuration file with full path>]
Notice: /Stage[main]/Hpom/Exec[install_hpom_agent]/returns: oainstall.sh -i|-install -m|-mgmt [-spiconfig <configuration file with full path>] [-baseonly]
Notice: /Stage[main]/Hpom/Exec[install_hpom_agent]/returns: oainstall.sh -i|-install -a|-agent -precheckonly
I'm running Puppet 3.6.2 on RHEL/CentOS
The exec in the manifest is like this
exec { 'install_hpom_agent':
path => ['/bin','/usr/bin','/sbin','/usr/sbin','/media'],
command => '/media/oainstall.sh –install –agent -verbose',
cwd => '/media',
user => 'root',
creates => '/opt/OV/bin/opcagt',
logoutput => true,
}
I've tried the shell provider instead of the default posix provider, but I haven't been able to get it working.
Does anyone have an idea what could be causing the issue?
Thx,
Jo