|
1 |
| -# Class: ntp |
2 |
| -# |
3 |
| -# This module manages the ntp service. |
4 |
| -# |
5 |
| - |
6 |
| -# 2011-02-23 |
7 |
| -# |
8 |
| -# Tested platforms: |
9 |
| -# - Debian 6.0 Squeeze |
10 |
| -# - CentOS 5.4 |
11 |
| -# - Amazon Linux 2011.09 |
12 |
| -# - FreeBSD 9.0 |
13 |
| -# - Archlinux |
14 |
| -# |
15 |
| -# Parameters: |
16 |
| -# |
17 |
| -# $servers = [ '0.debian.pool.ntp.org iburst', |
18 |
| -# '1.debian.pool.ntp.org iburst', |
19 |
| -# '2.debian.pool.ntp.org iburst', |
20 |
| -# '3.debian.pool.ntp.org iburst', ] |
21 |
| -# |
22 |
| -# $restrict = true |
23 |
| -# Whether to restrict ntp daemons from allowing others to use as a server. |
24 |
| -# |
25 |
| -# $autoupdate = false |
26 |
| -# Whether to update the ntp package automatically or not. |
27 |
| -# |
28 |
| -# $enable = true |
29 |
| -# Automatically start ntp deamon on boot. |
30 |
| -# |
31 |
| -# $template = '${module_name}/${config_tpl}' |
32 |
| -# Override with your own explicit template. |
33 |
| -# |
34 |
| -# Actions: |
35 |
| -# |
36 |
| -# Installs, configures, and manages the ntp service. |
37 |
| -# |
38 |
| -# Requires: |
39 |
| -# |
40 |
| -# Sample Usage: |
41 |
| -# |
42 |
| -# class { "ntp": |
43 |
| -# servers => [ 'time.apple.com' ], |
44 |
| -# autoupdate => false, |
45 |
| -# } |
46 |
| -# |
47 |
| -# [Remember: No empty lines between comments and class definition] |
48 | 1 | class ntp(
|
49 | 2 | $autoupdate = $ntp::params::autoupdate,
|
50 | 3 | $config = $ntp::params::config,
|
51 | 4 | $config_template = $ntp::params::config_template,
|
52 |
| - $enable_service = $ntp::params::enable_service, |
53 |
| - $ensure_package = $ntp::params::ensure_package, |
54 |
| - $ensure_service = $ntp::params::ensure_service, |
55 |
| - $manage_service = $ntp::params::manage_service, |
| 5 | + $package_ensure = $ntp::params::package_ensure, |
56 | 6 | $package_name = $ntp::params::package_name,
|
57 | 7 | $restrict = $ntp::params::restrict,
|
58 | 8 | $servers = $ntp::params::servers,
|
| 9 | + $service_enable = $ntp::params::service_enable, |
| 10 | + $service_ensure = $ntp::params::service_ensure, |
| 11 | + $service_manage = $ntp::params::service_manage, |
59 | 12 | $service_name = $ntp::params::service_name,
|
60 | 13 | ) inherits ntp::params {
|
61 | 14 |
|
|
0 commit comments