Skip to content

Commit 643f2d9

Browse files
committed
Merge pull request #12 from Chaordix/master
Make tyrant mode configurable.
2 parents 9181001 + 736260e commit 643f2d9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

manifests/init.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
# [*app_directory*]
5757
# Vassal directory for application config files
5858
#
59+
# [*tyrant*]
60+
# Whether to run the emperor in tyrant mode
61+
# Default: true
62+
#
5963
# [*install_pip*]
6064
# Install pip if it's not already installed?
6165
# Default: true
@@ -94,6 +98,7 @@
9498
$config_file = $uwsgi::params::config_file,
9599
$log_file = $uwsgi::params::log_file,
96100
$app_directory = $uwsgi::params::app_directory,
101+
$tyrant = $uwsgi::params::tyrant,
97102
$install_pip = $uwsgi::params::install_pip,
98103
$install_python_dev = $uwsgi::params::install_python_dev,
99104
$python_pip = $uwsgi::params::python_pip,

manifests/params.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
$service_provider = 'upstart'
1616
$manage_service_file = true
1717
$config_file = '/etc/uwsgi.ini'
18+
$tyrant = true
1819
$install_pip = true
1920
$install_python_dev = true
2021
$log_file = '/var/log/uwsgi/uwsgi-emperor.log'

templates/uwsgi.ini.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
socket = <%= @socket %>
88
pidfile = <%= @pidfile %>
99
emperor = <%= @app_directory %>
10-
emperor-tyrant = true
10+
emperor-tyrant = <%= @tyrant %>
1111
master = true
1212
autoload = true
1313
log-date = true

0 commit comments

Comments
 (0)