Class: Ansible::Ruby::Modules::Ipa_sudorule
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ipa_sudorule
- Defined in:
- lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb
Overview
Add, modify or delete sudo rule within IPA server using IPA API.
Instance Method Summary collapse
-
#cmd ⇒ Object?
List of commands assigned to the rule.,If an empty list is passed all commands will be removed from the rule.,If option is omitted commands will not be checked or changed.
-
#cmdcategory ⇒ :all?
Command category the rule applies to.
-
#cn ⇒ Object
Canonical name.,Can not be changed as it is the unique identifier.
-
#description ⇒ String?
Description of the sudo rule.
-
#host ⇒ Array<String>, ...
List of hosts assigned to the rule.,If an empty list is passed all hosts will be removed from the rule.,If option is omitted hosts will not be checked or changed.,Option C(hostcategory) must be omitted to assign hosts.
-
#hostcategory ⇒ :all?
Host category the rule applies to.,If ‘all’ is passed one must omit C(host) and C(hostgroup).,Option C(host) and C(hostgroup) must be omitted to assign ‘all’.
-
#hostgroup ⇒ Array<String>, ...
List of host groups assigned to the rule.,If an empty list is passed all host groups will be removed from the rule.,If option is omitted host groups will not be checked or changed.,Option C(hostcategory) must be omitted to assign host groups.
-
#runasgroupcategory ⇒ :all?
RunAs Group category the rule applies to.
-
#runasusercategory ⇒ :all?
RunAs User category the rule applies to.
-
#state ⇒ :present, ...
State to ensure.
-
#sudoopt ⇒ Array<String>, ...
List of options to add to the sudo rule.
-
#user ⇒ Object?
List of users assigned to the rule.,If an empty list is passed all users will be removed from the rule.,If option is omitted users will not be checked or changed.
-
#usercategory ⇒ :all?
User category the rule applies to.
-
#usergroup ⇒ Array<String>, ...
List of user groups assigned to the rule.,If an empty list is passed all user groups will be removed from the rule.,If option is omitted user groups will not be checked or changed.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#cmd ⇒ Object?
20 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 20 attribute :cmd |
#cmdcategory ⇒ :all?
16 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 16 attribute :cmdcategory |
#cn ⇒ Object
12 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 12 attribute :cn |
#description ⇒ String?
23 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 23 attribute :description |
#host ⇒ Array<String>, ...
27 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 27 attribute :host |
#hostcategory ⇒ :all?
31 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 31 attribute :hostcategory |
#hostgroup ⇒ Array<String>, ...
35 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 35 attribute :hostgroup |
#runasgroupcategory ⇒ :all?
43 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 43 attribute :runasgroupcategory |
#runasusercategory ⇒ :all?
39 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 39 attribute :runasusercategory |
#state ⇒ :present, ...
62 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 62 attribute :state |
#sudoopt ⇒ Array<String>, ...
47 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 47 attribute :sudoopt |
#user ⇒ Object?
51 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 51 attribute :user |
#usercategory ⇒ :all?
54 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 54 attribute :usercategory |
#usergroup ⇒ Array<String>, ...
58 |
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 58 attribute :usergroup |