From c93107ce17464763e67a0534093e260eeacaddc3 Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 10 Jul 2013 16:07:36 -0400 Subject: Ensure the spacing between class and ( is consistent. --- manifests/config.pp | 2 +- manifests/init.pp | 2 +- manifests/install.pp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/config.pp b/manifests/config.pp index b34ef4f..0a4a710 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -1,4 +1,4 @@ -class ntp::config( +class ntp::config ( $config = $ntp::config, $config_template = $ntp::config_template, $panic = $ntp::panic, diff --git a/manifests/init.pp b/manifests/init.pp index 6d594c3..44e310b 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,4 +1,4 @@ -class ntp( +class ntp ( $autoupdate = $ntp::params::autoupdate, $config = $ntp::params::config, $config_template = $ntp::params::config_template, diff --git a/manifests/install.pp b/manifests/install.pp index 95d225b..94cb080 100644 --- a/manifests/install.pp +++ b/manifests/install.pp @@ -1,4 +1,4 @@ -class ntp::install( +class ntp::install ( $package_ensure = $ntp::package_ensure, $package_name = $ntp::package_name, ) inherits ntp { -- cgit v1.2.3 From 81b8855e9ac9104cba968bd0d749c5b40a2eb29b Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 10 Jul 2013 16:07:49 -0400 Subject: Remove placeholder file. --- files/README.markdown | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 files/README.markdown diff --git a/files/README.markdown b/files/README.markdown deleted file mode 100644 index be52188..0000000 --- a/files/README.markdown +++ /dev/null @@ -1,22 +0,0 @@ -Files -===== - -Puppet comes with both a client and server for copying files around. The file -serving function is provided as part of the central Puppet daemon, -puppetmasterd, and the client function is used through the source attribute of -file objects. Learn more at -http://projects.puppetlabs.com/projects/puppet/wiki/File_Serving_Configuration - -You can use managed files like this: - - class myclass { - package { mypackage: ensure => latest } - service { myservice: ensure => running } - file { "/etc/myfile": - source => "puppet://$servername/modules/mymodule/myfile" - } - } - -The files are searched for in: - - $modulepath/mymodule/files/myfile -- cgit v1.2.3 From d370d13bee49e73afc1d74f6c6019dda2658eeb4 Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 10 Jul 2013 16:08:58 -0400 Subject: Fix examples to use single quotes. --- templates/ntp.conf.debian.erb | 2 +- templates/ntp.conf.el.erb | 2 +- templates/ntp.conf.freebsd.erb | 2 +- templates/ntp.conf.gentoo.erb | 2 +- templates/ntp.conf.suse.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/ntp.conf.debian.erb b/templates/ntp.conf.debian.erb index 324b91c..1ca6b20 100644 --- a/templates/ntp.conf.debian.erb +++ b/templates/ntp.conf.debian.erb @@ -25,7 +25,7 @@ filegen clockstats file clockstats type day enable # pick a different set every time it starts up. Please consider joining the # pool: -# Managed by puppet class { "ntp": servers => [ ... ] } +# Managed by puppet class { 'ntp': servers => [ ... ] } <% [@servers].flatten.each do |server| -%> server <%= server %> <% end -%> diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb index 157b28d..72c6e49 100644 --- a/templates/ntp.conf.el.erb +++ b/templates/ntp.conf.el.erb @@ -23,7 +23,7 @@ restrict -6 ::1 # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). -# Managed by puppet class { "ntp": servers => [ ... ] } +# Managed by puppet class { 'ntp': servers => [ ... ] } <% [@servers].flatten.each do |server| -%> server <%= server %> <% end -%> diff --git a/templates/ntp.conf.freebsd.erb b/templates/ntp.conf.freebsd.erb index 7fcffb8..12be09c 100644 --- a/templates/ntp.conf.freebsd.erb +++ b/templates/ntp.conf.freebsd.erb @@ -17,7 +17,7 @@ # The option `iburst' is used for faster initial synchronisation. # The option `maxpoll 9' is used to prevent PLL/FLL flipping on FreeBSD. # -# Managed by puppet class { "ntp": servers => [ ... ] } +# Managed by puppet class { 'ntp': servers => [ ... ] } <% if @panic == false -%> # Keep ntpd from panicking in the event of a large clock skew # when a VM guest is suspended and resumed. diff --git a/templates/ntp.conf.gentoo.erb b/templates/ntp.conf.gentoo.erb index c22026a..c981c7d 100644 --- a/templates/ntp.conf.gentoo.erb +++ b/templates/ntp.conf.gentoo.erb @@ -12,7 +12,7 @@ tinker panic 0 <% end -%> -# Managed by puppet class { "ntp": servers => [ ... ] } +# Managed by puppet class { 'ntp': servers => [ ... ] } <% [@servers].flatten.each do |server| -%> server <%= server %> <% end -%> diff --git a/templates/ntp.conf.suse.erb b/templates/ntp.conf.suse.erb index 1cbe6a2..1a4361e 100644 --- a/templates/ntp.conf.suse.erb +++ b/templates/ntp.conf.suse.erb @@ -38,7 +38,7 @@ server 127.127.1.0 # local clock (LCL) fudge 127.127.1.0 stratum 10 # LCL is unsynchronized <% end -%> -# Managed by puppet class { "ntp": servers => [ ... ] } +# Managed by puppet class { 'ntp': servers => [ ... ] } <% [@servers].flatten.each do |server| -%> server <%= server %> <% end -%> -- cgit v1.2.3 From 2f14ee5a5ed6d2db9a1260f8317aa8b51f2a8d7e Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 10 Jul 2013 16:13:37 -0400 Subject: Fix extra blank line. --- templates/ntp.conf.el.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb index 72c6e49..62166de 100644 --- a/templates/ntp.conf.el.erb +++ b/templates/ntp.conf.el.erb @@ -40,8 +40,8 @@ server <%= server %> # and when no outside source of synchronized time is available. server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 - <% end -%> + # Drift file. Put this in a directory which the daemon can write to. # No symbolic links allowed, either, since the daemon updates the file # by creating a temporary in the same directory and then rename()'ing -- cgit v1.2.3 From 8b4cea68bcb8fd1eb0d614209cd78a68ec4ebd6b Mon Sep 17 00:00:00 2001 From: Ashley Penney Date: Wed, 10 Jul 2013 16:17:16 -0400 Subject: Use scope.lookupvar for this to look in the right place. --- templates/ntp.conf.el.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/ntp.conf.el.erb b/templates/ntp.conf.el.erb index 62166de..9a5d51b 100644 --- a/templates/ntp.conf.el.erb +++ b/templates/ntp.conf.el.erb @@ -35,7 +35,7 @@ server <%= server %> #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 key 42 # manycast client -<% if @is_virtual == "false" -%> +<% if scope.lookupvar('::is_virtual') == "false" -%> # Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. server 127.127.1.0 # local clock -- cgit v1.2.3