Hi

I'm seeing a strange thing here.  I only have this on one machine!  3
others that are 'identical' don't have that issue...

err: /Stage[main]/Vim/Exec[update-alternatives --set editor /usr/bin/
vim.basic]: Could not evaluate: 'test' is not executable

class vim{

  $vim_package= "vim"

  package {
    $vim_package:
      ensure => installed,
      provider => $operatingsystem ? {
        "Solaris" => 'pkgutil',
        default => undef
      }
  }

  case $operatingsystem{
    "Debian": {
      exec { "update-alternatives --set editor /usr/bin/vim.basic":
        path => "/bin:/sbin:/usr/bin:/usr/sbin",
        unless => "test /etc/alternatives/editor -ef /usr/bin/
vim.basic"
      }
    }
  }

}

Manual output:

r...@cyrprd1:~# puppet agent --test
info: Retrieving plugin
info: Loading facts in ugentinfo
info: Loading facts in configured_ntp_servers
info: Loading facts in ugentinfo
info: Loading facts in configured_ntp_servers
info: Caching catalog for cyrprd1.ugent.be
info: Applying configuration version '1291285388'
notice: /Stage[main]/Debian_os/Exec[apt-get-update]/returns: executed
successfully
notice: /Stage[main]/Mailstore/Package[cyrus-ugent]/ensure: ensure
changed '0.1-33' to '0.1-34'
err: /Stage[main]/Vim/Exec[update-alternatives --set editor /usr/bin/
vim.basic]: Could not evaluate: 'test' is not executable
notice: Finished catalog run in 7.66 seconds



r...@cyrprd1:~# test /etc/alternatives/editor -ef /usr/bin/vim.basic
r...@cyrprd1:~# which test
/usr/bin/test
r...@cyrprd1:~# ls -l /usr/bin/test
-rwxr-xr-x 1 root root 30136 Apr 28  2010 /usr/bin/test
r...@cyrprd1:~#


-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to