Class: Ansible::Ruby::Modules::Ipa_sudorule

Inherits:
Base show all
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

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#cmdObject?

Returns 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.

Returns:

  • (Object, nil)

    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.



20
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 20

attribute :cmd

#cmdcategory:all?

Returns Command category the rule applies to.

Returns:

  • (:all, nil)

    Command category the rule applies to.



16
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 16

attribute :cmdcategory

#cnObject

Returns Canonical name.,Can not be changed as it is the unique identifier.

Returns:

  • (Object)

    Canonical name.,Can not be changed as it is the unique identifier.



12
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 12

attribute :cn

#descriptionString?

Returns Description of the sudo rule.

Returns:

  • (String, nil)

    Description of the sudo rule.



23
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 23

attribute :description

#hostArray<String>, ...

Returns 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.

Returns:

  • (Array<String>, String, nil)

    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.



27
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 27

attribute :host

#hostcategory:all?

Returns 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’.

Returns:

  • (:all, nil)

    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’.



31
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 31

attribute :hostcategory

#hostgroupArray<String>, ...

Returns 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.

Returns:

  • (Array<String>, String, nil)

    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.



35
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 35

attribute :hostgroup

#runasgroupcategory:all?

Returns RunAs Group category the rule applies to.

Returns:

  • (:all, nil)

    RunAs Group category the rule applies to.



43
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 43

attribute :runasgroupcategory

#runasusercategory:all?

Returns RunAs User category the rule applies to.

Returns:

  • (:all, nil)

    RunAs User category the rule applies to.



39
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 39

attribute :runasusercategory

#state:present, ...

Returns State to ensure.

Returns:

  • (:present, :absent, :enabled, :disabled, nil)

    State to ensure



62
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 62

attribute :state

#sudooptArray<String>, ...

Returns List of options to add to the sudo rule.

Returns:

  • (Array<String>, String, nil)

    List of options to add to the sudo rule.



47
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 47

attribute :sudoopt

#userObject?

Returns 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.

Returns:

  • (Object, nil)

    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.



51
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 51

attribute :user

#usercategory:all?

Returns User category the rule applies to.

Returns:

  • (:all, nil)

    User category the rule applies to.



54
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 54

attribute :usercategory

#usergroupArray<String>, ...

Returns 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.

Returns:

  • (Array<String>, String, nil)

    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.



58
# File 'lib/ansible/ruby/modules/generated/identity/ipa/ipa_sudorule.rb', line 58

attribute :usergroup