Class: Ansible::Ruby::Modules::Firewalld

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/firewalld.rb,
lib/ansible/ruby/modules/custom/system/firewalld.rb

Overview

This module allows for addition or deletion of services and ports either tcp or udp in either running or permanent firewalld rules.

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

#immediate:yes, ...

Returns Should this configuration be applied immediately, if set as permanent.

Returns:

  • (:yes, :no, nil)

    Should this configuration be applied immediately, if set as permanent



40
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 40

attribute :immediate

#interfaceString?

Returns The interface you would like to add/remove to/from a zone in firewalld.

Returns:

  • (String, nil)

    The interface you would like to add/remove to/from a zone in firewalld



28
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 28

attribute :interface

#masqueradeBoolean?

Returns The masquerade setting you would like to enable/disable to/from zones within firewalld.

Returns:

  • (Boolean, nil)

    The masquerade setting you would like to enable/disable to/from zones within firewalld



52
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 52

attribute :masquerade

#permanentSymbol?

Returns Should this configuration be in the running firewalld configuration or persist across reboots. As of Ansible version 2.3, permanent operations can operate on firewalld configs when it’s not running (requires firewalld >= 3.0.9). (NOTE: If this is false, immediate is assumed true.)rn.

Returns:

  • (Symbol, nil)

    Should this configuration be in the running firewalld configuration or persist across reboots. As of Ansible version 2.3, permanent operations can operate on firewalld configs when it’s not running (requires firewalld >= 3.0.9). (NOTE: If this is false, immediate is assumed true.)rn



36
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 36

attribute :permanent

#portString?

Returns Name of a port or port range to add/remove to/from firewalld. Must be in the form PORT/PROTOCOL or PORT-PORT/PROTOCOL for port ranges.

Returns:

  • (String, nil)

    Name of a port or port range to add/remove to/from firewalld. Must be in the form PORT/PROTOCOL or PORT-PORT/PROTOCOL for port ranges.



16
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 16

attribute :port

#rich_ruleString?

Returns Rich rule to add/remove to/from firewalld.

Returns:

  • (String, nil)

    Rich rule to add/remove to/from firewalld.



20
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 20

attribute :rich_rule

#serviceString?

Returns Name of a service to add/remove to/from firewalld - service must be listed in output of firewall-cmd –get-services.

Returns:

  • (String, nil)

    Name of a service to add/remove to/from firewalld - service must be listed in output of firewall-cmd –get-services.



12
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 12

attribute :service

#sourceString?

Returns The source/network you would like to add/remove to/from firewalld.

Returns:

  • (String, nil)

    The source/network you would like to add/remove to/from firewalld



24
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 24

attribute :source

#state:enabled, ...

Returns Enable or disable a setting. For ports: Should this port accept(enabled) or reject(disabled) connections. The states “present” and “absent” can only be used in zone level operations (i.e. when no other parameters but zone and state are set).rn.

Returns:

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

    Enable or disable a setting. For ports: Should this port accept(enabled) or reject(disabled) connections. The states “present” and “absent” can only be used in zone level operations (i.e. when no other parameters but zone and state are set).rn



44
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 44

attribute :state

#timeoutInteger?

Returns The amount of time the rule should be in effect for when non-permanent.

Returns:

  • (Integer, nil)

    The amount of time the rule should be in effect for when non-permanent.



48
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 48

attribute :timeout

#zone:work, ...

Returns The firewalld zone to add/remove to/from (NOTE: default zone can be configured per system but “public” is default from upstream. Available choices can be extended based on per-system configs, listed here are “out of the box” defaults).rn.

Returns:

  • (:work, :drop, :internal, :external, :trusted, :home, :dmz, :public, :block, nil)

    The firewalld zone to add/remove to/from (NOTE: default zone can be configured per system but “public” is default from upstream. Available choices can be extended based on per-system configs, listed here are “out of the box” defaults).rn



32
# File 'lib/ansible/ruby/modules/generated/system/firewalld.rb', line 32

attribute :zone