bundles/travelynx: prepare for bookworm
This commit is contained in:
parent
3826ccf4ec
commit
c121110f00
4 changed files with 17 additions and 7 deletions
|
@ -40,6 +40,9 @@
|
|||
|
||||
secrets => [
|
||||
'${cookie_secret}',
|
||||
% for i in sorted(additional_cookie_secrets):
|
||||
'${i}',
|
||||
% endfor
|
||||
],
|
||||
|
||||
version => '${version}',
|
||||
|
|
|
@ -8,9 +8,9 @@ Type=simple
|
|||
RemainAfterExit=yes
|
||||
PIDFile=/var/cache/travelynx/travelynx.pid
|
||||
|
||||
ExecStart=/usr/local/bin/hypnotoad -f index.pl
|
||||
ExecStop=/usr/local/bin/hypnotoad -s index.pl
|
||||
ExecReload=/usr/local/bin/hypnotoad index.pl
|
||||
ExecStart=/usr/bin/hypnotoad -f index.pl
|
||||
ExecStop=/usr/bin/hypnotoad -s index.pl
|
||||
ExecReload=/usr/bin/hypnotoad index.pl
|
||||
|
||||
User=travelynx
|
||||
WorkingDirectory=/opt/travelynx
|
||||
|
|
|
@ -20,14 +20,14 @@ directories = {
|
|||
}
|
||||
|
||||
files = {
|
||||
'/etc/systemd/system/travelynx.service': {
|
||||
'/usr/local/lib/systemd/system/travelynx.service': {
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
'svc_systemd:travelynx:restart',
|
||||
'svc_systemd:travelynx-worker:restart',
|
||||
},
|
||||
},
|
||||
'/etc/systemd/system/travelynx-worker.service': {
|
||||
'/usr/local/lib/systemd/system/travelynx-worker.service': {
|
||||
'triggers': {
|
||||
'action:systemd-reload',
|
||||
'svc_systemd:travelynx:restart',
|
||||
|
@ -102,14 +102,15 @@ actions = {
|
|||
svc_systemd = {
|
||||
'travelynx': {
|
||||
'needs': {
|
||||
'file:/etc/systemd/system/travelynx.service',
|
||||
'file:/usr/local/lib/systemd/system/travelynx.service',
|
||||
'action:travelynx_database_migrate',
|
||||
'directory:/var/cache/travelynx',
|
||||
'pkg_apt:libmojolicious-perl',
|
||||
},
|
||||
},
|
||||
'travelynx-worker': {
|
||||
'needs': {
|
||||
'file:/etc/systemd/system/travelynx-worker.service',
|
||||
'file:/usr/local/lib/systemd/system/travelynx-worker.service',
|
||||
'svc_systemd:travelynx',
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
defaults = {
|
||||
'apt': {
|
||||
'packages': {
|
||||
'libmojolicious-perl': {},
|
||||
},
|
||||
},
|
||||
'travelynx': {
|
||||
'database': {
|
||||
'username': 'travelynx',
|
||||
|
@ -9,6 +14,7 @@ defaults = {
|
|||
'spare_workers': 2,
|
||||
'mail_from': 'travelynx@{}'.format(node.hostname),
|
||||
'cookie_secret': repo.vault.password_for('{} travelynx cookie_secret'.format(node.name)),
|
||||
'additional_cookie_secrets': set(),
|
||||
},
|
||||
'postgresql': {
|
||||
'roles': {
|
||||
|
|
Loading…
Reference in a new issue