forked from stove/dataset
add risotto target
This commit is contained in:
parent
543ba30f8c
commit
42879ad5a1
21 changed files with 52 additions and 24 deletions
|
@ -1,12 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
|
||||
from os.path import join
|
||||
from filecmp import dircmp
|
||||
from difflib import unified_diff
|
||||
from sys import stdout, argv
|
||||
from os import walk
|
||||
from os.path import join
|
||||
from os.path import join, islink
|
||||
from datetime import datetime, timezone
|
||||
|
||||
|
||||
|
@ -87,6 +86,9 @@ for filename in old - new:
|
|||
|
||||
|
||||
for filename in new - old:
|
||||
if islink(join(NEW_DIR, filename)):
|
||||
print(f'\n- lien {filename} ajouté\n')
|
||||
else:
|
||||
print(f'\n- fichier {filename} ajouté :\n')
|
||||
with open(join(NEW_DIR, filename), 'r') as fh:
|
||||
if WEBSITE:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
[Unit]
|
||||
After=network.target
|
||||
After=risotto.target
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ORIGIN https://raw.githubusercontent.com/go-gitea/gitea/main/contrib/systemd/gitea.service
|
||||
[Unit]
|
||||
Description=Gitea (Git with a cup of tea)
|
||||
After=network.target postgresqlclient.service
|
||||
After=risotto.target
|
||||
|
||||
[Service]
|
||||
# Modify these two values and uncomment them if you have
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<rougail version="0.10">
|
||||
<services>
|
||||
<service name="ldap_client" manage="False">
|
||||
<service name="ldap-client" target="risotto" engine="creole">
|
||||
<file source="ldap.conf" file_type="variable">ldap_client_file</file>
|
||||
<file source="ca_LDAP.crt" file_type="variable">ldap_ca_file</file>
|
||||
<file source="ldap_client.crt" file_type="variable">ldap_cert_file</file>
|
||||
|
|
8
seed/ldap-client/templates/ldap-client.service
Normal file
8
seed/ldap-client/templates/ldap-client.service
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
After=network-online.target
|
||||
Before=risotto.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/timeout 90 bash -c 'while ! 3<> /dev/tcp/%%ldap_server_address/%%ldap_port; do sleep 1; done'
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
[Unit]
|
||||
After=nginx.service
|
||||
After=risotto.target nginx.service
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/usr/bin/timeout 90 bash -c 'while ! 3<> /dev/tcp/%%ldap_server_address/%%ldap_port; do sleep 1; done'
|
||||
ExecStartPost=-/usr/bin/timeout 10 bash -c 'while ! /usr/local/lib/sbin/interne_well_known.pl > /var/www/html/.well-known/openid-configuration/int; do sleep 1; done'
|
||||
ExecStartPost=-/bin/bash -c '/usr/local/lib/sbin/interne_well_known.pl no > /var/www/html/.well-known/openid-configuration/ext'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Postorius WSGI Service
|
||||
After=postgresqlclient.service
|
||||
After=risotto.target
|
||||
|
||||
[Service]
|
||||
%for %%domain in %%mailman_domains
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Postorius WSGI Service
|
||||
After=network.target postgresqlclient.service
|
||||
After=risotto.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<services>
|
||||
<service name="mariadbclient" target="multi-user" engine="creole"/>
|
||||
<service name="mariadbclient" target="risotto" engine="creole"/>
|
||||
</services>
|
||||
<variables>
|
||||
<family name="mariadb" description="MariaDB">
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[Unit]
|
||||
Description=Waiting for mariadb server
|
||||
Before=network.target
|
||||
After=network-online.target
|
||||
Before=risotto.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Nextcloud management
|
||||
After=postgresqlclient.service
|
||||
After=risotto.target
|
||||
Before=apache.service php-fpm.service
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
[Unit]
|
||||
After=network.target
|
||||
After=risotto.target
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<services>
|
||||
<service name="oauth2-client" target="risotto" engine="creole"/>
|
||||
</services>
|
||||
<variables>
|
||||
<family name="oauth2_client" description="OAuth2 client">
|
||||
<variable name="oauth2_client_server_domainname" type="domainname" description="OAuth2 server domain name" mandatory='True' supplier="OAuth2"/>
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
PKG="$PKG curl"
|
7
seed/oauth2-client/templates/oauth2-client.service
Normal file
7
seed/oauth2-client/templates/oauth2-client.service
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
After=network-online.target
|
||||
Before=risotto.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/timeout 90 bash -c 'while ! [ "$(/usr/bin/curl --write-out '%{http_code}' --silent --output /dev/null https://%%oauth2_client_server_domainname/.well-known/openid-configuration)" = 200 ]; do sleep 1; done;'
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Piwigo management
|
||||
After=mariadbclient.service
|
||||
After=risotto.target
|
||||
Before=nginx.service php-fpm.service
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<rougail version="0.10">
|
||||
<services>
|
||||
<service name="postgresqlclient" target="multi-user" engine="creole">
|
||||
<service name="postgresqlclient" target="risotto" engine="creole">
|
||||
<file mode="400">/secrets/postgresql.pass</file>
|
||||
<file>/etc/pki/ca-trust/source/anchors/ca_PostgreSQL.crt</file>
|
||||
<file>/etc/pki/tls/certs/postgresql.crt</file>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
[Unit]
|
||||
Description=Waiting for postgresql server
|
||||
Before=network.target
|
||||
After=network-online.target
|
||||
Before=risotto.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=Roundcube database init
|
||||
After=postgresqlclient.service
|
||||
After=risotto.target
|
||||
Before=nginx.service php-fpm.service
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<file>/secrets/root.pwd</file>
|
||||
<file engine="none">/tmpfiles.d/risotto-volatile.conf</file>
|
||||
</service>
|
||||
<service name="risotto" target="multi-user" type="target" engine="none"/>
|
||||
</services>
|
||||
<variables>
|
||||
<variable name='root_password' type="password" description="Mot de passe de l'administrateur système root" auto_save='False' mandatory="True"/>
|
||||
|
|
5
seed/systemd/templates/risotto.target
Normal file
5
seed/systemd/templates/risotto.target
Normal file
|
@ -0,0 +1,5 @@
|
|||
[Unit]
|
||||
Description=Waiting for all dependencies
|
||||
Before=multi-user.target
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
Loading…
Reference in a new issue