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'