bundles/seafile: initial commit

seafile installation itself is not managed
This commit is contained in:
Franzi 2020-04-13 09:53:10 +02:00
parent ffb962b108
commit 004422c060
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=Seafile
After=network.target mysql.service
[Service]
Type=forking
ExecStart=/opt/seafile/seafile-server-latest/seafile.sh start
ExecStop=/opt/seafile/seafile-server-latest/seafile.sh stop
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target

View file

@ -0,0 +1,13 @@
[Unit]
Description=Seafile hub
After=network.target seafile.service
[Service]
Type=forking
ExecStart=/opt/seafile/seafile-server-latest/seahub.sh start
ExecStop=/opt/seafile/seafile-server-latest/seahub.sh stop
User=seafile
Group=seafile
[Install]
WantedBy=multi-user.target

27
bundles/seafile/items.py Normal file
View file

@ -0,0 +1,27 @@
files = {
'/etc/systemd/system/seafile.service': {
'needed_by': {
'svc_systemd:seafile',
},
'triggers': {
'action:systemd-reload',
},
},
'/etc/systemd/system/seahub.service': {
'needed_by': {
'svc_systemd:seafile',
},
'triggers': {
'action:systemd-reload',
},
},
}
svc_systemd = {
'seafile': {},
'seahub': {
'needs': {
'svc_systemd:seafile',
},
},
}

View file

@ -0,0 +1,18 @@
@metadata_processor
def defaults(metadata):
return {
'apt': {
'packages': {
'mariadb-server': {},
'python3': {},
'python3-setuptools': {},
'python3-pip': {},
},
},
'users': {
'seafile': {
'home': '/opt/seafile',
'deploy_configs': False,
},
},
}, DEFAULTS, DONE