From d5060f84f4dc2d73cc782342cb02b10fc71084ee Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 8 May 2021 16:43:07 +0900 Subject: [PATCH] Install `nomad` even if the node is not `nomad` server/client. --- cookbooks/nomad/default.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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