I installed puppet on a virtualhost to take it for a test drive. I am using the current version from epel, 2.6.18. This test installation will have the server and client running on the same system,for simplicity.
After installation of puppet, I ran puppet master --mkusers
to start the server. All good.
--configtest shows that my module directory is the default /etc/puppet/modules
folder.
I created the folder structure /etc/puppet/modules/ntp/manifests/, and then created a ntp.pp file as below:
class ntp {
package {'ntp':
ensure => present
}
service {'ntp':
ensure => running,
}
}
include ntp
Issuing puppet --parseonly /etc/puppet/modules/ntp/manifests/ntp.pp
returns clean. No errors.
Next, I issue
puppet agent --test --server=`hostname
And get back
info: Caching catalog for localhost.localdomain
info: Applying configuration version '1256130640'
notice: Finished catalog run in 1.23 seconds
I've confirmed that ntp is not already installed by checking with rpm -qa ntp
Issuing puppet --configprint all
confirms the above module path.
What am I doing wrong?