aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNan Liu <nan@puppetlabs.com>2012-07-27 16:01:33 -0700
committerNan Liu <nan@puppetlabs.com>2012-07-27 16:01:33 -0700
commit9e55e18c84259bb007fa023c9e06b908e8f042a2 (patch)
tree747efca041902c7c453af055fa058cfcdc168ae3
parentc0ea8207bc2bdb4d62c81ac6f547e560549f2fd3 (diff)
downloadpuppet-tftp-9e55e18c84259bb007fa023c9e06b908e8f042a2.tar.gz
puppet-tftp-9e55e18c84259bb007fa023c9e06b908e8f042a2.tar.bz2
Fix whitespace and readme.
-rw-r--r--README.md2
-rw-r--r--manifests/init.pp21
-rw-r--r--manifests/params.pp1
3 files changed, 12 insertions, 12 deletions
diff --git a/README.md b/README.md
index ae99176..57097de 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Parameters:
* address: bind address, default 0.0.0.0.
* port: bind port, default 69.
* options: service option, default --secure.
-* inetd: run service via xinetd - default true
+* inetd: run service via xinetd - default false.
Example:
diff --git a/manifests/init.pp b/manifests/init.pp
index 8becd7d..4fe22be 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -39,20 +39,20 @@ class tftp (
ensure => present,
name => $package,
}
+
if $defaults {
- file { '/etc/default/tftpd-hpa':
- ensure => file,
- owner => 'root',
- group => 'root',
- mode => '0644',
- content => template('tftp/tftpd-hpa.erb'),
- require => Package['tftpd-hpa'],
+ file { '/etc/default/tftpd-hpa':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ content => template('tftp/tftpd-hpa.erb'),
+ require => Package['tftpd-hpa'],
notify => Service['tftpd-hpa'],
- }
+ }
}
if $inetd {
-
include 'xinetd'
xinetd::service { 'tftp':
@@ -67,7 +67,8 @@ class tftp (
flags => 'IPv4',
per_source => '11',
wait => 'yes',
- }
+ }
+
$svc_ensure = stopped
$svc_enable = false
} else {
diff --git a/manifests/params.pp b/manifests/params.pp
index 93344b7..bbe86cc 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -43,5 +43,4 @@ class tftp::params {
warning("tftp:: $::operatingsystem may not be supported")
}
}
-
}