Documentation by YARD 0.9.36
+Alphabetic Index
+ +Puppet Class Listing A-Z
+ + +
+
+
+
|
+
File Listing
+-
+
+
+
- README + + +
diff --git a/doc/_index.html b/doc/_index.html new file mode 100644 index 0000000..6e2bbf7 --- /dev/null +++ b/doc/_index.html @@ -0,0 +1,148 @@ + + +
+ + +
+
+
+
|
+
| t |
+ + + +6 +7 +8+ |
+
+ # File 'manifests/init.pp', line 6
+
+class confdroid_ntp {
+ include confdroid_ntp::params
+}
+ |
+
confdroid_ntp::main::config.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14+ |
+
+ # File 'manifests/main/config.pp', line 6
+
+class confdroid_ntp::main::config (
+
+) inherits confdroid_ntp::params {
+ include confdroid_ntp::main::service
+
+# if $ay_manage_nagios == true {
+# include confdroid_ntp::monitoring::target
+# }
+}
+ |
+
confdroid_ntp::main::dirs.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58+ |
+
+ # File 'manifests/main/dirs.pp', line 6
+
+class confdroid_ntp::main::dirs (
+
+) inherits confdroid_ntp::params {
+ require confdroid_ntp::main::install
+
+ # /var/log/chrony
+ file { '/var/log/chrony':
+ ensure => directory,
+ owner => 'chrony',
+ group => 'chrony',
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => chronyd_var_log_t,
+ seluser => system_u,
+ }
+
+ # /var/lib/chrony
+ file { '/var/lib/chrony':
+ ensure => directory,
+ owner => 'chrony',
+ group => 'chrony',
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => chronyd_var_lib_t,
+ seluser => system_u,
+ }
+
+ # /run/chrony
+ file { '/run/chrony':
+ ensure => directory,
+ owner => 'chrony',
+ group => 'chrony',
+ mode => '0750',
+ selrange => s0,
+ selrole => object_r,
+ seltype => chronyd_var_run_t,
+ seluser => system_u,
+ }
+
+ # /run/chrony-dhcp
+ file { '/run/chrony-dhcp':
+ ensure => directory,
+ owner => 'chrony',
+ group => 'chrony',
+ mode => '0755',
+ selrange => s0,
+ selrole => object_r,
+ seltype => chronyd_var_run_t,
+ seluser => system_u,
+ }
+}
+ |
+
confdroid_ntp::main::files.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28+ |
+
+ # File 'manifests/main/files.pp', line 6
+
+class confdroid_ntp::main::files (
+
+) inherits confdroid_ntp::params {
+ require confdroid_ntp::main::dirs
+
+ # main configuration file
+ file { $cy_conf_file:
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ selrange => s0,
+ selrole => object_r,
+ seltype => etc_t,
+ seluser => system_u,
+ content => template($cy_conf_erb),
+ notify => Service[$cy_service],
+ }
+
+ # drift file /var/lib/chrony/drift
+
+ # log rotation
+}
+ |
+
confdroid_ntp::main::install.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12+ |
+
+ # File 'manifests/main/install.pp', line 6
+
+class confdroid_ntp::main::install (
+
+) inherits confdroid_ntp::params {
+ package { $cy_reqpackages:
+ ensure => $cy_pkg_ensure,
+ }
+}
+ |
+
confdroid_ntp::main::service.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17+ |
+
+ # File 'manifests/main/service.pp', line 6
+
+class confdroid_ntp::main::service (
+
+) inherits confdroid_ntp::params {
+ require confdroid_ntp::main::files
+
+ service { $cy_service:
+ ensure => running,
+ hasstatus => true,
+ hasrestart => true,
+ enable => true,
+ }
+}
+ |
+
confdroid_ntp::monitoring::target.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +6 +7 +8 +9+ |
+
+ # File 'manifests/monitoring/target.pp', line 6
+
+class confdroid_ntp::monitoring::target (
+
+) inherits confdroid_ntp::params {
+}
+ |
+
confdroid_ntp::params.pp Module name: confdroid_ntp Author: 12ww1160 (12ww1160@confdroid.com)
+ +
+ + + +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56+ |
+
+ # File 'manifests/params.pp', line 22
+
+class confdroid_ntp::params (
+
+# installation
+ Array $cy_reqpackages = ['chrony'],
+ String $cy_pkg_ensure = 'present',
+
+# configuration
+ Boolean $cy_use_lan_server = false,
+ String $cy_server_fqdn = 'ntp.example.local',
+ Array $cy_conf_servers = ['0.pool.ntp.org', '1.pool.ntp.org', '2.pool.ntp.org', '3.pool.ntp.org'],
+ String $cy_min_sources = '3',
+ String $cy_client_allow = '192.168.1.0/24',
+ String $cy_leapsec_mode = 'slew',
+ String $cy_leapsectz = 'right/UTC',
+ String $cy_loginfo = 'measurements statistics tracking',
+
+) {
+# facts
+ $fqdn = $facts['networking']['fqdn']
+ $domain = $facts['networking']['domain']
+ $os_name = $facts['os']['name']
+ $os_release = $facts['os']['release']['major']
+
+# dirs
+
+# files
+ $cy_conf_file = '/etc/chrony.conf'
+ $cy_conf_erb = 'confdroid_ntp/chrony.conf.erb'
+
+# service
+ $cy_service = 'chronyd'
+
+# includes must be last
+ include confdroid_ntp::main::config
+}
+ |
+