Class: Ansible::Ruby::Modules::Gunicorn
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Gunicorn
- Defined in:
- lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb
Overview
Starts gunicorn with the parameters specified. Common settings for gunicorn configuration are supported. For additional configuration use a config file See U(gunicorn-docs.readthedocs.io/en/latest/settings.html) for more options. It’s recommended to always use the chdir option to avoid problems with the location of the app.
Instance Method Summary collapse
-
#app ⇒ String
The app module.
-
#chdir ⇒ String?
Chdir to specified directory before apps loading.
-
#config ⇒ Object?
Path to the gunicorn configuration file.
-
#pid ⇒ String?
A filename to use for the PID file.
-
#user ⇒ String?
Switch worker processes to run as this user.
-
#venv ⇒ String?
Path to the virtualenv directory.
-
#worker ⇒ :sync, ...
The type of workers to use.
Methods inherited from Base
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
#app ⇒ String
Returns The app module. A name refers to a WSGI callable that should be found in the specified module.
12 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 12 attribute :app |
#chdir ⇒ String?
Returns Chdir to specified directory before apps loading.
23 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 23 attribute :chdir |
#config ⇒ Object?
Returns Path to the gunicorn configuration file.
20 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 20 attribute :config |
#pid ⇒ String?
Returns A filename to use for the PID file. If not set and not found on the configuration file a tmp pid file will be created to check a successful run of gunicorn.
27 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 27 attribute :pid |
#user ⇒ String?
Returns Switch worker processes to run as this user.
35 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 35 attribute :user |
#venv ⇒ String?
Returns Path to the virtualenv directory.
16 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 16 attribute :venv |
#worker ⇒ :sync, ...
Returns The type of workers to use. The default class (sync) should handle most “normal” types of workloads.
31 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 31 attribute :worker |