Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install a module with puppet 2.7 on Debian 6.0 and I keep getting this error:

returns: change from notrun to 0 failed: Could not find command 'tar'

this is the relevant code:

 file {"zookeeper-tarball":
    path => "${zookeeper_parent_dir}/${tarball}",
    source => "puppet:///modules/zookeeper/${tarball}",
    ensure => file,

  exec { "zookeeper_untar":
    path => "${zookeeper_parent_dir}",
    command => "tar -xzf ${zookeeper_parent_dir}/${tarball}",
    cwd => "${zookeeper_parent_dir}",
    user => "$user",
    require =>  File["zookeeper-tarball"],
    creates => "${zookeeper_parent_dir}/zookeeper-${zookeeper_version}",

in manifests/site.pp I have this:

Exec {
  path => "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",

the user is root. Any idea what could be the problem? It seem like the $PATH is empty...

share|improve this question
up vote 1 down vote accepted

You set path in your zookeeper_untar exec to something bogus. Don't do that and it'll work again :)

share|improve this answer
yep, I've noticed it as I posted the question. thanks. stupid mistake :( – Tombart Mar 1 '13 at 8:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.