Commit d1a1b921 authored by Christopher Huhn's avatar Christopher Huhn
Browse files

Add possibility to override tftpdir to avoid clashes between similar flavors

parent 77f22829
......@@ -4,5 +4,5 @@ maintainer_email "hpc@gsi.de"
license "All rights reserved"
description "Installs/Configures fai"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "0.8.1"
version "0.8.2"
depends "nfs"
......@@ -50,8 +50,12 @@ node.fai.flavors.each do |f, config|
mode 0644
end
tftpdir = "/srv/tftp/#{codename}/#{arch}" +
"/fai#{node[:debian][:packages]['fai-server'][:version]}/"
if config['tftpdir']
tftpdir = config['tftpdir']
else
tftpdir = "/srv/tftp/#{codename}/#{arch}" +
"/fai#{node[:debian][:packages]['fai-server'][:version]}/"
end
directory tftpdir do
recursive true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment