Getting below error on 2nd run.. first run is going through fine and file is being created successfully
2016-10-25 14:56:16 -0400 Puppet (err): Could not set 'present' on ensure: Could not locate command pip3. at 10:/etc/puppetlabs/code/environments/mandar/modules/ipc_zonedeployment/manifests/zd.pp
2016-10-25 14:56:16 -0400 Puppet (err): Could not set 'present' on ensure: Could not locate command pip3. at 10:/etc/puppetlabs/code/environments/mandar/modules/ipc_zonedeployment/manifests/zd.pp
Wrapped exception:
Could not locate command pip3.
2016-10-25 14:56:16 -0400 /Stage[main]/Ipc_zonedeployment::Zd/Package[test]/ensure (err): change from absent to present failed: Could not set 'present' on ensure: Could not locate command pip3. at 10:/etc/puppetlabs/code/environments/mandar/modules/ipc_zonedeployment/manifests/zd.pp
code :
class ipc_zonedeployment::zd {
exec { 'deploy':
command => '/opt/ipc/cop/tools/parse_zd.sh',
cwd => '/opt/ipc/cop/tools/',
onlyif => "test ! -f /etc/opt/ipc/deployment/zdd",
path => ['/usr/bin', '/usr/sbin', '/bin',],
}
package { 'test':
ensure => installed,
require => Exec['deploy']
}
}
↧