X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/df45f7b89ca7af7c2cd3cb7342e6e58e916518d9..255a305b676d38d17d0fdab56d922b32319854fa:/cookbooks/prometheus/resources/exporter.rb diff --git a/cookbooks/prometheus/resources/exporter.rb b/cookbooks/prometheus/resources/exporter.rb index a69d940a0..e1f56b09c 100644 --- a/cookbooks/prometheus/resources/exporter.rb +++ b/cookbooks/prometheus/resources/exporter.rb @@ -36,6 +36,8 @@ property :register_target, :kind_of => [TrueClass, FalseClass], :default => true action :create do systemd_service service_name do + after "network-online.target" + wants "network-online.target" description "Prometheus #{new_resource.exporter} exporter" type "simple" user new_resource.user