Class: Ansible::Ruby::Modules::Gunicorn

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

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

#appString

Returns The app module. A name refers to a WSGI callable that should be found in the specified module.

Returns:

  • (String)

    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

#chdirString?

Returns Chdir to specified directory before apps loading.

Returns:

  • (String, nil)

    Chdir to specified directory before apps loading.



23
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 23

attribute :chdir

#configObject?

Returns Path to the gunicorn configuration file.

Returns:

  • (Object, nil)

    Path to the gunicorn configuration file.



20
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 20

attribute :config

#pidString?

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.

Returns:

  • (String, nil)

    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

#userString?

Returns Switch worker processes to run as this user.

Returns:

  • (String, nil)

    Switch worker processes to run as this user.



35
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/gunicorn.rb', line 35

attribute :user

#venvString?

Returns Path to the virtualenv directory.

Returns:

  • (String, nil)

    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.

Returns:

  • (:sync, :eventlet, :gevent, :"tornado ", :gthread, :gaiohttp, nil)

    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