Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

create the tftp directory, per COOK-787

  • Loading branch information...
commit 9a8f847e2196493b80dc6b78219930e84ef854c0 1 parent dbc523a
@mattray mattray authored
Showing with 10 additions and 2 deletions.
  1. +1 −1  tftp/README.md
  2. +1 −1  tftp/metadata.rb
  3. +8 −0 tftp/recipes/server.rb
View
2  tftp/README.md
@@ -12,7 +12,7 @@ The default recipe passes through to the server recipe.
server
------
The node will install and use the `tftpd` application to provide files via tftp. Typically those nodes will be requesting images via PXE and configured from their BIOS as clients, so there is not a client recipe yet.
-
+
Usage
=====
Nodes using the `tftp::server` recipe will provide tftp access to whatever files are in their `[:tftp][:directory]`.
View
2  tftp/metadata.rb
@@ -3,7 +3,7 @@
license "Apache 2.0"
description "Installs/Configures tftpd"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
-version "0.1.0"
+version "0.2.0"
%w{ debian ubuntu }.each do |os|
supports os
View
8 tftp/recipes/server.rb
@@ -25,6 +25,14 @@
action [ :enable ]
end
+directory node['tftp']['directory'] do
+ owner "root"
+ group "root"
+ mode 0744
+ recursive true
+ action :create
+end
+
template "/etc/default/tftpd-hpa" do
owner "root"
group "root"
Please sign in to comment.
Something went wrong with that request. Please try again.