fuel-library/deployment/puppet/ntp
Dmitry Ilyin 9b76d1ae6d Add package providers and version lookup
This commits adds modified version of the
Puppet Package type. It includes code that
looks for package version in /etc/versions.yaml
file if the package is going to be installed instead
of just installing the first available version.

This lookup will be initiated only is you
pass :installed or :present to the package's
ensure property. Passing :latest, :absent
or explicit version string will cause
the default behaviour.

Lookups will be performed only for apt and
yum providers.

Yum and Apt providers in this patch are
hacked to support transactional rollbacks.
When the provider is updating the package from
one version to another it saves the diff of
packages to a file and if it’s ever asked to
install the previous version again the provider
takes the diff file and installs the previous
package versions and their dependencies.

Change-Id: I84e4b7540f9e72ceb2e1dee0762184d3e2b4356c
Implements: blueprint patch-openstack
2014-04-14 18:54:09 +04:00
..
files Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
manifests Add package providers and version lookup 2014-04-14 18:54:09 +04:00
spec Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
templates Add puppet-3.4 support 2014-03-06 11:46:33 +02:00
tests Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
.fixtures.yml Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
.gitignore Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
.project Add project files 2013-04-01 14:15:04 +04:00
.travis.yml Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
CHANGELOG Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
CONTRIBUTING.md Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
Gemfile Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
LICENSE Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
Modulefile Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
Rakefile Rewrite clock synchronization 2013-03-11 19:58:14 +04:00
README.markdown Rewrite clock synchronization 2013-03-11 19:58:14 +04:00

ntp

Build Status

Overview

The NTP module installs, configures, and manages the network time service.

Module Description

The NTP module allows Puppet to install, configure, and then manage your Network Time Protocol service. The module allows you to setup and manage time settings across many servers from one place.

Setup

What NTP affects:

  • package/service/configuration files for NTP
  • server settings

Beginning with NTP

To setup NTP on a server

class { "ntp":
  servers    => [ 'time.apple.com' ],
  autoupdate => false,
}

Usage

When making changes to your configuration of NTP, you may need to stop and restart the ntp service. To keep the ntp service stopped, pass ensure => stopped to the class:

class { ntp:
  ensure     => running,
  servers    => [ 'time.apple.com iburst',
                  'pool.ntp.org iburst' , ]
  autoupdate => true,
}

The ntp class has several parameters to assist configuration of the ntp service.

Parameters within ntp

####servers

NTP will use your operating system's default server if this parameter is left unspecified. This parameter accepts an array of servers,

class { 'ntp':
  servers => [ '0.debian.pool.ntp.org iburst',
               '1.debian.pool.ntp.org iburst',
               '2.debian.pool.ntp.org iburst',
               '3.debian.pool.ntp.org iburst', ]
}

####restrict

This parameter specifies whether to restrict ntp daemons from allowing others to use as a server.

####autoupdate

This parameter is used to determine whether the ntp package will be updated automatically or not.

####enable

This parameter allows you to choose whether to automatically start ntp daemon on boot.

####template

This parameter allows you to explicitly override the template used.

Limitations

This module has been built and tested using Puppet 2.6.x, 2.7, and 3.x.

The module has been tested on:

  • Enterprise Linux 5
  • Debian 6.0
  • CentOS 5.4.
  • Ubuntu 12.04

Testing on other platforms has been light and cannot be guaranteed.

Development

Puppet Labs modules on the Puppet Forge are open projects, and community contributions are essential for keeping them great. We cant access the huge number of platforms and myriad of hardware, software, and deployment configurations that Puppet is intended to serve.

We want to keep it as easy as possible to contribute changes so that our modules work in your environment. There are a few guidelines that we need contributors to follow so that we can have a chance of keeping on top of things.

You can read the complete module contribution guide on the Puppet Labs wiki.

Release Notes

0.2.0

0.2.0 is a backwards compatible feature and bug-fix release. Since 0.1.0, support for Amazon Linux was added, fixes for style were implemented, and support was added for tinker_panic. tinker_panic will default to on when the fact is_virtual is true.