bundlewrap/bundles/infobeamer-cms/items.py

87 lines
2.2 KiB
Python
Raw Normal View History

2021-12-23 18:36:50 +00:00
actions = {
'infobeamer-cms_set_directory_permissions': {
'triggered': True,
'command': 'chown -R infobeamer-cms:infobeamer-cms /opt/infobeamer-cms/static/'
},
}
2021-12-23 12:48:44 +00:00
git_deploy = {
'/opt/infobeamer-cms': {
2021-12-23 18:36:50 +00:00
'rev': 'master',
2021-12-23 12:48:44 +00:00
'repo': 'https://github.com/sophieschi/36c3-cms.git',
'needs': {
'directory:/opt/infobeamer-cms',
},
'triggers': {
'svc_systemd:infobeamer-cms:restart',
2021-12-23 18:36:50 +00:00
'action:infobeamer-cms_set_directory_permissions',
2021-12-23 12:48:44 +00:00
},
},
}
directories = {
'/opt/infobeamer-cms': {},
}
files = {
'/opt/infobeamer-cms/settings.cfg': {
'content_type': 'mako',
'context': node.metadata.get('infobeamer-cms/config'),
'needs': {
'git_deploy:/opt/infobeamer-cms',
},
'triggers': {
'svc_systemd:infobeamer-cms:restart',
},
},
'/etc/systemd/system/infobeamer-cms.service': {
2021-12-23 18:36:50 +00:00
'content_type': 'mako',
'context': node.metadata.get('infobeamer-cms/config'),
2021-12-23 12:48:44 +00:00
'triggers': {
'action:systemd-reload',
'svc_systemd:infobeamer-cms:restart',
},
2021-12-23 18:36:50 +00:00
},
'/etc/systemd/system/infobeamer-cms-runperiodic.timer': {
'triggers': {
'action:systemd-reload',
'svc_systemd:infobeamer-cms-runperiodic.timer:restart',
},
},
'/etc/systemd/system/infobeamer-cms-runperiodic.service': {
'triggers': {
'action:systemd-reload',
},
},
2021-12-23 12:48:44 +00:00
}
pkg_pip = {
'github-flask': {
'needed_by': {
'git_deploy:/opt/infobeamer-cms',
},
},
}
svc_systemd = {
'infobeamer-cms': {
'needs': {
'file:/opt/infobeamer-cms/settings.cfg',
2021-12-23 18:36:50 +00:00
'file:/etc/systemd/system/infobeamer-cms.service',
'git_deploy:/opt/infobeamer-cms',
},
},
'infobeamer-cms-runperiodic.timer': {
'needs': {
'file:/etc/systemd/system/infobeamer-cms-runperiodic.timer',
'file:/etc/systemd/system/infobeamer-cms-runperiodic.service',
2021-12-23 12:48:44 +00:00
},
},
}
users = {
'infobeamer-cms': {
'home': '/opt/infobeamer-cms',
},
}