Method: Puppet::Settings::FileSetting#owner=

Defined in:
lib/puppet/settings/file_setting.rb

#owner=(value) ⇒ Object

Parameters:

  • value (String)

    the owner to use on the created file (can only be “root” or “service”)



81
82
83
84
85
86
87
88
89
90
# File 'lib/puppet/settings/file_setting.rb', line 81

def owner=(value)
  @owner = case value
           when "root"
             Root.new
           when "service"
             Service.new(:user, "root", @settings, :service_user_available?)
           else
             unknown_value(':owner', value)
           end
end