diff --git a/cookbooks/nomad/default.rb b/cookbooks/nomad/default.rb index 6a73243..64ce176 100644 --- a/cookbooks/nomad/default.rb +++ b/cookbooks/nomad/default.rb @@ -2,6 +2,8 @@ include_recipe './attributes.rb' include_recipe './install.rb' -include_recipe './setup.rb' +if node['nomad']['manager'] || node['nomad']['client'] + include_recipe './setup.rb' -include_recipe './shared_dir.rb' + include_recipe './shared_dir.rb' +end