- Copy this module and its dependencies to
targethost:/etc/puppet/modules/
Ensure that the directory names match the class names for each module. - Ensure that
/etc/puppet/hiera.yamlexists, and:datadir:points to/var/lib/hiera/(or its value is blank, which defaults to this same path). - Using the sample in
samples/hieradata/defaults.yamlas a reference, ensure/var/lib/hiera/defaults.yamlexists and contains the proper hiera data. - Run puppet apply:
sudo puppet apply -v -e "include ntp"
This module installs and configures ntp.
=== REQUIRED Parameters
$version:: Target version of ntp to install. Ensure this version
is hosted on your target machine's yum repository
$servers:: List of ntp servers
See params.pp for complete list of optional parameters.
- CentOS6.x
- ntp package in repo
- Puppet Modules
- stdlib
link /etc/hiera.yaml to /etc/puppet/modules/site/ext/hiera.yaml hiera data dir set to /etc/puppet/modules/site/data/defaults.yaml
# One way to declare the class
class {"::ntp": }
# The first two colons indicate top-scope, meaning ntp should be a
# module that lives in /etc/puppet/modules/
Testing GIT operations.