Class: Ansible::Ruby::Modules::Runit
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Runit
- 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
-
#enabled ⇒ Symbol?
Whether the service is enabled or not, if disabled it also implies stopped.
-
#name ⇒ String
Name of the service to manage.
-
#service_dir ⇒ String?
Directory runsv watches for services.
-
#service_src ⇒ String?
Directory where services are defined, the source of symlinks to service_dir.
-
#state ⇒ :killed, ...
C(started)/C(stopped) are idempotent actions that will not run commands unless necessary.
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
#enabled ⇒ Symbol?
Returns 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 |
#name ⇒ String
Returns Name of the service to manage.
12 |
# File 'lib/ansible/ruby/modules/generated/system/runit.rb', line 12 attribute :name |
#service_dir ⇒ String?
Returns directory runsv watches for services.
24 |
# File 'lib/ansible/ruby/modules/generated/system/runit.rb', line 24 attribute :service_dir |
#service_src ⇒ String?
Returns 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.
16 |
# File 'lib/ansible/ruby/modules/generated/system/runit.rb', line 16 attribute :state |