X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/21f63bf93d90219a836166bbf0883755e4248989..5f6c31a1fa2ffa34a8d2ce071d8e539f74282817:/cookbooks/prometheus/resources/exporter.rb?ds=inline diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index ac970426b..3087f9c93 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -27,6 +27,7 @@ property :port, :kind_of => Integer, :required => [:create] property :listen_switch, :kind_of => String, :default => "web.listen-address" property :listen_type, :kind_of => String, :default => "address" property :user, :kind_of => String +property :group, :kind_of => String property :command, :kind_of => String property :options, :kind_of => [String, Array] property :environment, :kind_of => Hash, :default => {} @@ -50,6 +51,7 @@ action :create do type "simple" user new_resource.user dynamic_user new_resource.user.nil? + group new_resource.group environment new_resource.environment exec_start "#{executable_path} #{new_resource.command} #{executable_options}" sandbox :enable_network => true