From 8e0a66184cadcb156ede6cc8ea0a8a1ad7d995dd Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 8 Dec 2020 19:59:51 +0100 Subject: [PATCH] Use role for akkounts Lets us search by role --- nodes/akkounts-1.json | 5 ++--- roles/akkounts.rb | 12 ++++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 roles/akkounts.rb diff --git a/nodes/akkounts-1.json b/nodes/akkounts-1.json index 4e69606..b85f6d1 100644 --- a/nodes/akkounts-1.json +++ b/nodes/akkounts-1.json @@ -68,7 +68,6 @@ }, "run_list": [ "recipe[kosmos-base]", - "recipe[kosmos-akkounts::default]", - "recipe[kosmos-akkounts::nginx]" + "role[akkounts]" ] -} \ No newline at end of file +} diff --git a/roles/akkounts.rb b/roles/akkounts.rb new file mode 100644 index 0000000..1dae0bb --- /dev/null +++ b/roles/akkounts.rb @@ -0,0 +1,12 @@ +name "akkounts" + +default_run_list = %w( + kosmos-akkounts::default + kosmos-akkounts::nginx +) + +env_run_lists( + '_default' => default_run_list, + 'development' => default_run_list, + 'production' => default_run_list +)