Commit cd0145db authored by m.pausch's avatar m.pausch
Browse files

Enable, start and reload systemd-networkd

parent f34dafb3
......@@ -6,4 +6,4 @@ description 'System Software configuration and maintenance'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
source_url 'https://github.com/GSI-HPC/sys-chef-cookbook'
issues_url 'https://github.com/GSI-HPC/sys-chef-cookbook/issues'
version '1.29.0'
version '1.29.1'
......@@ -56,6 +56,7 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
helpers(Sys::Harry)
mode "0644"
variables(:sections => {'Match' => {'MACAddress' => mac}, 'Link' => {'Name' => name}})
notifies :reload, "service[systemd-networkd]"
end
end
......@@ -69,6 +70,7 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
helpers(Sys::Harry)
mode "0644"
variables(:sections => config)
notifies :reload, "service[systemd-networkd]"
end
end
......@@ -82,6 +84,12 @@ if node['platform_version'].to_i >= 9 && !node['sys']['networkd'].empty?
helpers(Sys::Harry)
mode "0644"
variables(:sections => config)
notifies :reload, "service[systemd-networkd]"
end
end
service 'systemd-networkd' do
supports :status => true, :restart => true, :reload => true
action [:enable, :start]
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