From: Tom Hughes Date: Sat, 23 Nov 2024 15:06:16 +0000 (+0000) Subject: Use ruby cookbook to install ruby for prometheus X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/e92ed5e09215d67f2bd7dc21a32425d7ec5aa26f Use ruby cookbook to install ruby for prometheus --- 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"