Class: Chef::Provider::User::Solaris
- Inherits:
-
Useradd
- Object
- Chef::Provider
- Chef::Provider::User
- Useradd
- Chef::Provider::User::Solaris
- Defined in:
- lib/chef/provider/user/solaris.rb
Constant Summary collapse
- UNIVERSAL_OPTIONS =
[[:comment, "-c"], [:gid, "-g"], [:shell, "-s"], [:uid, "-u"]]
Constants included from Mixin::ShellOut
Mixin::ShellOut::DEPRECATED_OPTIONS
Instance Attribute Summary collapse
-
#password_file ⇒ Object
writeonly
Sets the attribute password_file.
Attributes inherited from Chef::Provider::User
Attributes inherited from Chef::Provider
#action, #current_resource, #new_resource, #run_context
Instance Method Summary collapse
- #create_user ⇒ Object
-
#initialize(new_resource, run_context) ⇒ Solaris
constructor
A new instance of Solaris.
- #manage_user ⇒ Object
Methods inherited from Useradd
#check_lock, #compile_command, #lock_user, #managing_home_dir?, #remove_user, #universal_options, #unlock_user, #update_options, #updating_home?, #useradd_options
Methods included from Mixin::ShellOut
#run_command_compatible_options, #shell_out, #shell_out!
Methods inherited from Chef::Provider::User
#action_create, #action_lock, #action_manage, #action_modify, #action_remove, #action_unlock, #check_lock, #compare_user, #convert_group_name, #define_resource_requirements, #load_current_resource, #lock_user, #remove_user, #unlock_user, #whyrun_supported?
Methods included from Mixin::Command
#chdir_or_tmpdir, #handle_command_failures, #output_of_command, #run_command, #run_command_and_return_stdout_stderr, #run_command_with_systems_locale
Methods included from Mixin::Command::Windows
Methods included from Mixin::Command::Unix
Methods inherited from Chef::Provider
#action_nothing, #cleanup_after_converge, #converge_by, #cookbook_name, #define_resource_requirements, #events, #load_current_resource, #node, #process_resource_requirements, #requirements, #resource_collection, #resource_updated?, #run_action, #set_updated_status, #whyrun_mode?, #whyrun_supported?
Methods included from DSL::Recipe
Methods included from Mixin::ConvertToClassName
#convert_to_class_name, #convert_to_snake_case, #filename_to_qualified_string, #snake_case_basename
Constructor Details
#initialize(new_resource, run_context) ⇒ Solaris
Returns a new instance of Solaris.
27 28 29 30 |
# File 'lib/chef/provider/user/solaris.rb', line 27 def initialize(new_resource, run_context) @password_file = "/etc/shadow" super end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Chef::DSL::Recipe
Instance Attribute Details
#password_file=(value) ⇒ Object (writeonly)
Sets the attribute password_file
25 26 27 |
# File 'lib/chef/provider/user/solaris.rb', line 25 def password_file=(value) @password_file = value end |