Class: Ansible::Ruby::Modules::Runit

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

Overview

Controls runit services on remote hosts using the sv utility.

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

#enabledSymbol?

Returns Whether the service is enabled or not, if disabled it also implies stopped.

Returns:

  • (Symbol, nil)

    Whether the service is enabled or not, if disabled it also implies stopped.



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

attribute :enabled

#nameString

Returns Name of the service to manage.

Returns:

  • (String)

    Name of the service to manage.



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

attribute :name

#service_dirString?

Returns directory runsv watches for services.

Returns:

  • (String, nil)

    directory runsv watches for services



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

attribute :service_dir

#service_srcString?

Returns directory where services are defined, the source of symlinks to service_dir.

Returns:

  • (String, nil)

    directory where services are defined, the source of symlinks to service_dir.



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

attribute :service_src

#state:killed, ...

Returns C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service (sv restart) and C(killed) will always bounce the service (sv force-stop). C(reloaded) will send a HUP (sv reload). C(once) will run a normally downed sv once (sv once), not really an idempotent operation.

Returns:

  • (:killed, :once, :reloaded, :restarted, :started, :stopped, nil)

    C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service (sv restart) and C(killed) will always bounce the service (sv force-stop). C(reloaded) will send a HUP (sv reload). C(once) will run a normally downed sv once (sv once), not really an idempotent operation.



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

attribute :state