Merge pull request 'feat: add puppetboard role' (#34) from neoloc/puppetboard into develop
Reviewed-on: unkinben/puppet-prod#34
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=puppetboard daemon
|
||||
After=network.target
|
||||
[Service]
|
||||
Type=simple
|
||||
User=<%= @user %>
|
||||
Group=<%= @group %>
|
||||
Environment="PUPPETBOARD_SETTINGS=<%= @settings_file %>"
|
||||
ExecStart=<%= @virtualenv_dir %>/bin/start_puppetboard
|
||||
PrivateTmp=true
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
<%= @virtualenv_dir %>/bin/gunicorn \
|
||||
--workers <%= @gunicorn_workers %> \
|
||||
--threads <%= @gunicorn_threads %> \
|
||||
--config <%= @settings_file %> \
|
||||
--bind <%= @gunicorn_bind %> \
|
||||
puppetboard.app:app
|
||||
Reference in New Issue
Block a user