Commit 24c0cbc0 authored by Christopher Huhn's avatar Christopher Huhn
Browse files

Tell chef to look for the templates in this cookbook when executed from elsewhere

parent b0a3574a
Pipeline #2426 failed with stages
in 3 seconds
......@@ -100,13 +100,15 @@ action :create do
end
template "#{nfsroot_config_dir}/fai.conf" do
source "fai.conf.erb"
cookbook 'fai'
source 'fai.conf.erb'
variables(config_src: new_resource.config_source)
mode 0o0644
end
template "#{nfsroot_config_dir}/#{nfsroot_config}" do
source "make-fai-nfsroot.conf.erb"
cookbook 'fai'
source 'make-fai-nfsroot.conf.erb'
variables(
config_src: new_resource.config_source,
codename: codename,
......@@ -122,7 +124,8 @@ action :create do
end
template "#{nfsroot_config_dir}/apt/sources.list" do
source "fai_sources.list.erb"
cookbook 'fai'
source 'fai_sources.list.erb'
variables(
codename: codename,
debmirror_url: new_resource.debmirror_url,
......@@ -132,7 +135,8 @@ action :create do
end
template "#{nfsroot_config_dir}/apt/apt.conf" do
source "fai_apt.conf.erb"
cookbook 'fai'
source 'fai_apt.conf.erb'
variables(
install_recommends: new_resource.install_recommends,
install_suggests: new_resource.install_suggests
......@@ -146,7 +150,8 @@ action :create do
pkgs = new_resource.pkgs + node['fai']['common_extra_pkgs']
template "#{nfsroot_config_dir}/NFSROOT" do
source "NFSROOT.erb"
cookbook 'fai'
source 'NFSROOT.erb'
variables(
extra_pkgs: pkgs,
install_action: nil
......
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