From 015fe2ee315097f25707b99a88c021b78ee0c408 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 3 Nov 2024 10:58:04 +0900 Subject: [PATCH] Modify `nomad` recipes to reflect the step changes. --- cookbooks/nomad/default.rb | 5 ++++- cookbooks/nomad/setup.rb | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/cookbooks/nomad/default.rb b/cookbooks/nomad/default.rb index 2c61871..e3a2ad8 100644 --- a/cookbooks/nomad/default.rb +++ b/cookbooks/nomad/default.rb @@ -4,9 +4,12 @@ include_recipe './install.rb' if node['nomad']['client'] include_recipe '../docker/default.rb' + include_recipe './csi.rb' + + package "consul-cni" + package "dmidecode" end if node['nomad']['manager'] || node['nomad']['client'] include_recipe './setup.rb' - include_recipe './csi.rb' end diff --git a/cookbooks/nomad/setup.rb b/cookbooks/nomad/setup.rb index 0f8ceb0..8d47978 100644 --- a/cookbooks/nomad/setup.rb +++ b/cookbooks/nomad/setup.rb @@ -1,5 +1,6 @@ # Kernel parameters: execute 'modprobe br_netfilter' +execute 'modprobe bridge' remote_file '/etc/sysctl.d/90-nomad.conf' do owner 'root'