Commit 30605a3a authored by Christopher Huhn's avatar Christopher Huhn
Browse files

Small fixes

parent 0fd40aeb
Pipeline #2424 failed with stages
in 8 minutes and 46 seconds
......@@ -22,15 +22,18 @@
# limitations under the License.
#
property :config_source. String,
default: (node['fai']['config_source'] || "nfs://#{node['ipaddress']}:#{node['fai']['configdir']}")
property :config_source, String,
default: (node['fai']['config_source'] ||
"nfs://#{node['ipaddress']}:#{node['fai']['configdir']}")
property :additional_sources, Array
property :arch. String
property :arch, String
property :codename, String
property :debmirror_url, String, default: node['fai']['debmirror_url']
property :install_recommends, [TrueClass, FalseClass], default: node['fai']['install_recommends']
property :install_suggests, [TrueClass, FalseClass], default: node['fai']['install_suggests']
property :install_recommends, [TrueClass, FalseClass],
default: node['fai']['install_recommends']
property :install_suggests, [TrueClass, FalseClass],
default: node['fai']['install_suggests']
property :pkgs, Array
property :tftpdir, String
......@@ -72,7 +75,7 @@ action :create do
template "#{configdir}/fai.conf" do
source "fai.conf.erb"
variables(config_src: new_resource.fai_config_source)
mode 0644
mode 0o0644
end
template "#{configdir}/#{nfsroot_config}" do
......@@ -87,7 +90,7 @@ action :create do
arch: "--arch #{arch}",
hookdir: new_resource.hookdir || "/etc/fai/flavors/#{new_resource.name}/nfsroot-hooks/"
)
mode 0644
mode 0o0644
end
template "#{configdir}/apt/sources.list" do
......@@ -97,7 +100,7 @@ action :create do
debmirror_url: new_resource.debmirror_url,
additional_sources: new_resource.additional_sources
)
mode 0644
mode 0o0644
end
template "#{configdir}/apt/apt.conf" do
......@@ -120,6 +123,6 @@ action :create do
extra_pkgs: pkgs,
install_action: nil
)
mode 0644
mode 0o0644
end
end
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