diff options
author | Nan Liu <nan@puppetlabs.com> | 2012-07-27 16:01:33 -0700 |
---|---|---|
committer | Nan Liu <nan@puppetlabs.com> | 2012-07-27 16:01:33 -0700 |
commit | 9e55e18c84259bb007fa023c9e06b908e8f042a2 (patch) | |
tree | 747efca041902c7c453af055fa058cfcdc168ae3 | |
parent | c0ea8207bc2bdb4d62c81ac6f547e560549f2fd3 (diff) | |
download | puppet-tftp-9e55e18c84259bb007fa023c9e06b908e8f042a2.tar.gz puppet-tftp-9e55e18c84259bb007fa023c9e06b908e8f042a2.tar.bz2 |
Fix whitespace and readme.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | manifests/init.pp | 21 | ||||
-rw-r--r-- | manifests/params.pp | 1 |
3 files changed, 12 insertions, 12 deletions
@@ -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") } } - } |