X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/d5911b021a544693d2a6a34a6f2acc7023b6de77..9b4b2aab7e2feeb21beeff9bce1e466d9c38dba5:/cookbooks/systemd/resources/service.rb diff --git a/cookbooks/systemd/resources/service.rb b/cookbooks/systemd/resources/service.rb index 313c80c11..1194d4fd6 100644 --- a/cookbooks/systemd/resources/service.rb +++ b/cookbooks/systemd/resources/service.rb @@ -29,6 +29,7 @@ property :condition_path_exists_glob, [String, Array] property :after, [String, Array] property :conflicts, [String, Array] property :wants, [String, Array] +property :joins_namespace_of, [String, Array] property :type, String, :is => %w[simple forking oneshot dbus notify idle] property :limit_nofile, Integer property :limit_as, [Integer, String] @@ -40,10 +41,11 @@ property :environment, Hash, :default => {} property :environment_file, [String, Hash] property :user, String property :group, String +property :dynamic_user, [true, false] property :working_directory, String -property :exec_start_pre, String -property :exec_start, String -property :exec_start_post, String +property :exec_start_pre, [String, Array] +property :exec_start, [String, Array] +property :exec_start_post, [String, Array] property :exec_stop, String property :exec_reload, String property :runtime_directory, String @@ -127,7 +129,7 @@ action :create do service_variables[:protect_kernel_modules] = true unless property_is_set?(:protect_kernel_modules) service_variables[:protect_kernel_logs] = true unless property_is_set?(:protect_kernel_logs) service_variables[:protect_control_groups] = true unless property_is_set?(:protect_control_groups) - service_variables[:restrict_address_families] = "none" unless property_is_set?(:restrict_address_families) + service_variables[:restrict_address_families] = [] unless property_is_set?(:restrict_address_families) service_variables[:restrict_namespaces] = true unless property_is_set?(:restrict_namespaces) service_variables[:lock_personality] = true unless property_is_set?(:lock_personality) service_variables[:memory_deny_write_execute] = true unless property_is_set?(:memory_deny_write_execute)