From 8bb15cf831d2a78c5b0df2b43c766dc940061cb9 Mon Sep 17 00:00:00 2001 From: Davide Cavalca Date: Mon, 27 Mar 2023 00:07:51 -0700 Subject: [PATCH] scale_apache,scale_mailman: enable modules on c8s (#246) --- cookbooks/scale_apache/recipes/default.rb | 7 +++++++ cookbooks/scale_mailman/recipes/default.rb | 13 +++++++++++++ 2 files changed, 20 insertions(+) diff --git a/cookbooks/scale_apache/recipes/default.rb b/cookbooks/scale_apache/recipes/default.rb index fd448c8..4558390 100644 --- a/cookbooks/scale_apache/recipes/default.rb +++ b/cookbooks/scale_apache/recipes/default.rb @@ -238,6 +238,13 @@ python2-boto } +if node.centos8? + node.default['fb_dnf']['modules']['httpd'] = { + 'enable' => true, + 'stream' => '2.4', + } +end + package pkgs do action :upgrade notifies :restart, 'service[apache]' diff --git a/cookbooks/scale_mailman/recipes/default.rb b/cookbooks/scale_mailman/recipes/default.rb index 3ed7e4a..ac41bea 100644 --- a/cookbooks/scale_mailman/recipes/default.rb +++ b/cookbooks/scale_mailman/recipes/default.rb @@ -70,6 +70,19 @@ python3 python3-boto3 } + + node.default['fb_dnf']['modules']['python27'] = { + 'enable' => true, + 'stream' => '2.7', + } + node.default['fb_dnf']['modules']['python36'] = { + 'enable' => true, + 'stream' => '3.6', + } + node.default['fb_dnf']['modules']['mailman'] = { + 'enable' => true, + 'stream' => '2.1', + } else fail "scale_mailman: platform not supported" end