summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNan Liu <nan.liu@gmail.com>2013-07-11 13:37:41 -0700
committerNan Liu <nan.liu@gmail.com>2013-07-11 13:37:41 -0700
commitbc4fa6c5c295fa2bdb4254a389675ca95b2b5930 (patch)
tree6ad87402da4cd18d0997ee8876baaa67a348ea53
parent1b357eb5e2cf3f84b85a881433a8d9a44414eb23 (diff)
Clean up README to use puppet highlight.
-rw-r--r--README.markdown59
-rw-r--r--manifests/params.pp2
2 files changed, 36 insertions, 25 deletions
diff --git a/README.markdown b/README.markdown
index c7b71e5..65dde32 100644
--- a/README.markdown
+++ b/README.markdown
@@ -37,9 +37,11 @@ files.
include '::ntp' is enough to get you up and running. If you wish to pass in
parameters like which servers to use then you can use:
- class { '::ntp':
- servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
- }
+```puppet
+class { '::ntp':
+ servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
+}
+```
##Usage
@@ -49,38 +51,47 @@ full functionality.
###I just want NTP, what's the minimum I need?
- include '::ntp'
+```puppet
+include '::ntp'
+```
###I just want to tweak the servers, nothing else.
- class { '::ntp':
- servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
- }
-
+```puppet
+class { '::ntp':
+ servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
+}
+```
###I'd like to make sure I restrict who can connect as well.
- class { '::ntp':
- servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
- restrict => 'restrict 127.0.0.1',
- }
+```puppet
+class { '::ntp':
+ servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
+ restrict => 'restrict 127.0.0.1',
+}
+```
###I'd like to opt out of having the service controlled, we use another tool for that.
- class { '::ntp':
- servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
- restrict => 'restrict 127.0.0.1',
- manage_service => false,
- }
+```puppet
+class { '::ntp':
+ servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
+ restrict => 'restrict 127.0.0.1',
+ manage_service => false,
+}
+```
###Looks great! But I'd like a different template, we need to do something unique here.
- class { '::ntp':
- servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
- restrict => 'restrict 127.0.0.1',
- manage_service => false,
- config_template => 'different/module/custom.template.erb',
- }
+```puppet
+class { '::ntp':
+ servers => [ 'ntp1.corp.com', 'ntp2.corp.com' ],
+ restrict => 'restrict 127.0.0.1',
+ manage_service => false,
+ config_template => 'different/module/custom.template.erb',
+}
+```
##Reference
@@ -157,7 +168,7 @@ The module has been tested on:
* RedHat Enterprise Linux 5/6
* Debian 6/7
-* CentOS 5/6.
+* CentOS 5/6
* Ubuntu 12.04
* Gentoo
* Arch Linux
diff --git a/manifests/params.pp b/manifests/params.pp
index 3486f6f..f370f8d 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -1,4 +1,4 @@
-class ntp::params() {
+class ntp::params {
$autoupdate = false
$package_ensure = 'present'