Your code there says path is just /usr/bin so you need to add /bin Your os user paths are not relevant
Neil On 15 Aug 2013 15:29, "Rafi" <[email protected]> wrote: > When installing stackdriver on an ubuntu 12.04 machine, I get the > following error: > > change from notrun to 0 failed: /usr/bin/apt-key: 8: /usr/bin/apt-key: > mktemp: not found > > > Based on the instructions here > <http://feedback.stackdriver.com/knowledgebase/articles/206135-ubuntu> on > their website, my resource is as follows: > > > exec { 'add-stackdriver-key': > command => 'curl --silent > https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key add - && > /usr/bin/apt-get update', > path => '/usr/bin', > require => Apt::Source['stackdriver'], > } > > > > The individual commands have zero exit codes, so I expected them to work: > > curl --silent https://www.stackdriver.com/RPM-GPG-KEY-stackdriver | apt-key > add - > > /usr/bin/apt-get update > > > mktemp > <http://packaging-farm.dachary.org/packaging-farm/debian/i386/oneiric/usr/bin/apt-key> > exists under /bin and /bin is in PATH so I don't understand why it throws an > error. > > > Poking around Google, I see someone came across the same problem > <http://ubuntuforums.org/showthread.php?t=1979189> but nobody gave an answer: > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/puppet-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.
