Skip to content

Commit 5cf4aba

Browse files
committed
plat: install kernel modules explicitly
Ensure the modules to be loaded before systemd-sysctl.service
1 parent 506fc4a commit 5cf4aba

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

itamae/roles/plat/default.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@
6262
notifies :reload, 'service[bird]'
6363
end
6464

65+
template '/etc/modules-load.d/nf-conntrack.conf' do
66+
owner 'root'
67+
group 'root'
68+
mode '0644'
69+
notifies :restart, 'service[systemd-modules-load]'
70+
end
71+
6572
template '/etc/sysctl.d/90-nf-conntrack.conf' do
6673
owner 'root'
6774
group 'root'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nf_conntrack
2+
nf_conntrack_netlink

itamae/site.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
action :enable
1313
end
1414

15+
service "systemd-modules-load" do
16+
action :enable
17+
end
18+
1519
node[:basedir] = File.expand_path('..', __FILE__)
1620

1721
MItamae::RecipeContext.class_eval do

0 commit comments

Comments
 (0)