From e92ed5e09215d67f2bd7dc21a32425d7ec5aa26f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 23 Nov 2024 15:06:16 +0000 Subject: [PATCH] Use ruby cookbook to install ruby for prometheus --- cookbooks/prometheus/metadata.rb | 1 + cookbooks/prometheus/recipes/default.rb | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/prometheus/metadata.rb b/cookbooks/prometheus/metadata.rb index 6148979b9..30f20802d 100644 --- a/cookbooks/prometheus/metadata.rb +++ b/cookbooks/prometheus/metadata.rb @@ -12,3 +12,4 @@ depends "awscli" depends "git" depends "hardware" depends "networking" +depends "ruby" diff --git a/cookbooks/prometheus/recipes/default.rb b/cookbooks/prometheus/recipes/default.rb index df3ec2ea5..c6b609b06 100644 --- a/cookbooks/prometheus/recipes/default.rb +++ b/cookbooks/prometheus/recipes/default.rb @@ -19,8 +19,7 @@ include_recipe "git" include_recipe "networking" - -package "ruby" +include_recipe "ruby" if node.internal_ipaddress node.default[:prometheus][:mode] = "internal" -- 2.39.5