]> gitweb.fluxo.info Git - puppet-tftp.git/commitdiff
Require the package on the tftp xinetd service.
authorBen Burkert <ben@benburkert.com>
Thu, 30 Aug 2012 15:13:01 +0000 (08:13 -0700)
committerBen Burkert <ben@benburkert.com>
Thu, 30 Aug 2012 15:13:01 +0000 (08:13 -0700)
The xinetd::service type drops an xinetd config. That config is invalid
before the tftp package is installed and during that window xinetd may
be started. xinetd will start with tftp ignored, and will need to be
manually restarted to enable tftp. This change eliminates that window.

manifests/init.pp

index 300824dec7f8591cfbbee70f9d3b1c107abaff0f..c342c3420c5b0bc15d79652f68e32556ed89846b 100644 (file)
@@ -66,6 +66,7 @@ class tftp (
       flags       => 'IPv4',
       per_source  => '11',
       wait        => 'yes',
+      require     => Package[$package],
     }
 
     $svc_ensure = stopped