Package installed, but with error

2

CentOS 6.5, Puppet Enterprise 3.1.1.

Given this declaration:
    package { vim:  ensure => present  }

The following error is displayed:
   Error: Could not find package vim
   Error: /Stage[main]//Node[web.localtest.com]/Package[vim]/ensure: change
   from absent to present failed: Could not find package vim

Nevertheless, vim has been installed.

How to fix it?

Note: There is no error when testig with htop.

Wojciech Winogrodzki

Posted 2014-01-21T15:55:17.497

Reputation: 21

Answers

2

In Centos, I believe the package you're looking for is "vim-enhanced" ... not just "vim". It is very likely that the package was already installed before you ran the test.

TheCompWiz

Posted 2014-01-21T15:55:17.497

Reputation: 9 161