(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

asked 2016-10-25 14:11:42 -0600

mandar_ipc gravatar image

updated 2016-10-25 17:06:53 -0600

ramindk gravatar image

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/ipczonedeployment/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/ipczonedeployment/manifests/zd.pp Wrapped exception: Could not locate command pip3. 2016-10-25 14:56:16 -0400 /Stage[main]/Ipczonedeployment::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/ipczonedeployment/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']
  }
}
edit retag flag offensive close merge delete