bundles/seafile: initial commit
seafile installation itself is not managed
This commit is contained in:
parent
ffb962b108
commit
004422c060
4 changed files with 71 additions and 0 deletions
13
bundles/seafile/files/seafile.service
Normal file
13
bundles/seafile/files/seafile.service
Normal 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
|
13
bundles/seafile/files/seahub.service
Normal file
13
bundles/seafile/files/seahub.service
Normal 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
27
bundles/seafile/items.py
Normal 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',
|
||||
},
|
||||
},
|
||||
}
|
18
bundles/seafile/metadata.py
Normal file
18
bundles/seafile/metadata.py
Normal 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
|
Loading…
Reference in a new issue