Compare commits

..

18 Commits

Author SHA1 Message Date
138d6d9e06 Delete changelog 2020-08-05 09:20:36 +02:00
68add009e2 Fixes syntax error in debian/control 2020-08-05 09:08:17 +02:00
761c112ad4 Temporary dependencies 2020-08-05 08:57:23 +02:00
a5a5ca875b package number in changelog 2020-07-22 16:48:04 +02:00
73ec33377c Merge branch 'master' into dist/eole/2.7.1/master 2020-07-03 09:22:18 +02:00
7cc19606c1 Use postgresql template0 as database template 2020-06-30 10:39:48 +02:00
ad7b3dcfd8 Upgrade specification of applicationservice 2020-04-09 16:06:55 +02:00
34bd8c648c Merge branch 'master' into dist/eole/2.7.1/master 2020-04-09 10:13:27 +02:00
dc9454bc75 add pythonpath to use good tiramisu's version 2020-04-09 09:09:26 +02:00
20fcc89840 Merge branch 'master' into dist/eole/2.7.1/master 2020-04-07 15:11:30 +02:00
014dc29e8a Manage service 2020-04-07 15:11:09 +02:00
3d17ddf1f8 Merge branch 'master' into dist/eole/2.7.1/master 2020-04-07 14:34:48 +02:00
e96e4e81c8 Explicit privileges for databases 2020-04-07 14:34:37 +02:00
38fbfe1f61 Merge branch 'master' into dist/eole/2.7.1/master 2020-04-06 17:21:54 +02:00
81f0635ef2 Fixes privilegies declaration in eoledb template 2020-04-06 17:21:40 +02:00
c1bac94c00 Rename script to use with run_parts 2020-04-06 17:16:30 +02:00
c59d1a38fc Merge branch 'master' into dist/eole/2.7.1/master 2020-04-06 16:52:17 +02:00
dbcfe4bc66 Workaround postgresql insufficient permissions 2020-04-06 16:52:11 +02:00
8 changed files with 50 additions and 10 deletions

View File

@ -97,6 +97,9 @@ CREATE TABLE Applicationservice (
ApplicationserviceName VARCHAR(255) NOT NULL, ApplicationserviceName VARCHAR(255) NOT NULL,
ApplicationserviceDescription VARCHAR(255) NOT NULL, ApplicationserviceDescription VARCHAR(255) NOT NULL,
ApplicationserviceReleaseId INTEGER NOT NULL, ApplicationserviceReleaseId INTEGER NOT NULL,
ApplicationserviceLVIS VARCHAR(255) NOT NULL,
ApplicationserviceLVIP VARCHAR(255) NOT NULL,
ApplicationserviceLVMP VARCHAR(255) NOT NULL,
OS JSON, OS JSON,
UNIQUE (ApplicationserviceName, ApplicationserviceReleaseId) UNIQUE (ApplicationserviceName, ApplicationserviceReleaseId)
); );

5
debian/changelog vendored
View File

@ -1,5 +0,0 @@
eole-risotto (0.1) unstable; urgency=medium
* Création du paquet
-- Cadoles <contact@cadoles.com> Thu, 02 Apr 2020 10:43:03 +0200

17
debian/control vendored
View File

@ -10,7 +10,22 @@ Vcs-Browser: https://forge.cadoles.com/Infra/risotto
Package: eole-risotto Package: eole-risotto
Architecture: any Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
eole-db,
eole-postgresql,
python3-aiohttp,
risotto-user,
risotto-setting,
risotto-provider,
risotto-message,
risotto-infra,
cadoles-risotto-seed,
risotto,
tiramisu,
tiramisu-api,
rougail,
cucchiaiata,
tiramisu-cmdline-parser
Description: configuration pour lintégration de risotto dans EOLE Description: configuration pour lintégration de risotto dans EOLE
. .
Pour toute information complémentaire, veuillez vous rendre sur le Pour toute information complémentaire, veuillez vous rendre sur le

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<creole> <creole>
<files> <files>
<!-- Je suis un commentaire --> <service>risotto</service>
<file filelist='risotto' name='/etc/risotto/risotto.conf' mkdir='True' rm='True'/> <file filelist='risotto' name='/etc/risotto/risotto.conf' mkdir='True' rm='True'/>
<file filelist='risotto' name='/etc/systemd/system/risotto.service' mkdir='True' rm='True'/> <file filelist='risotto' name='/etc/systemd/system/risotto.service' mkdir='True' rm='True'/>
<file filelist='risotto' name='/etc/eole/eole-db.d/risotto.yml' mkdir='True' rm='True'/> <file filelist='risotto' name='/etc/eole/eole-db.d/risotto.yml' mkdir='True' rm='True'/>

View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
psql -Upostgres -c "grant all on all tables in schema public to risotto" risotto
psql -Upostgres -c "grant all on all sequences in schema public to risotto" risotto
psql -Upostgres -c "grant all on all functions in schema public to risotto" risotto
psql -Upostgres -c "grant all on all tables in schema public to tiramisu" tiramisu
psql -Upostgres -c "grant all on all sequences in schema public to tiramisu" tiramisu
psql -Upostgres -c "grant all on all functions in schema public to tiramisu" tiramisu
exit 0

View File

@ -12,3 +12,4 @@ DB_ADDRESS=%%getVar('risotto_db_address')
MESSAGE_PATH=%%getVar('risotto_messages_dir') MESSAGE_PATH=%%getVar('risotto_messages_dir')
CACHE_ROOT_PATH=%%getVar('risotto_cache_dir') CACHE_ROOT_PATH=%%getVar('risotto_cache_dir')
SRV_SEED_PATH=%%getVar('risotto_seed_dir') SRV_SEED_PATH=%%getVar('risotto_seed_dir')
PYTHONPATH="/usr/lib/python3.6/dist-packages:$PYTHONPATH"

View File

@ -1,10 +1,17 @@
%set %%dbname = %%getVar('risotto_main_dbname')
--- ---
dbuser: %%getVar('risotto_db_user') dbuser: %%getVar('risotto_db_user')
dbuser_options:
- LOGIN
privileges:
%%{dbname}.public.*: 'ALL'
%%{dbname}.public: 'ALL'
%%{dbname}: 'ALL'
dbhost: %%getVar('risotto_db_address') dbhost: %%getVar('risotto_db_address')
dbport: 5432 dbport: 5432
dbtype: postgres dbtype: postgres
dbname: %%getVar('risotto_main_dbname') dbname: %%dbname
template: 'postgres' template: 'template0'
sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql'] sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql']
pwd_files: pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='} - {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}

View File

@ -1,10 +1,17 @@
%set %%dbname = %%getVar('risotto_tiramisu_dbname')
--- ---
dbuser: %%getVar('risotto_tiramisu_db_user') dbuser: %%getVar('risotto_tiramisu_db_user')
dbuser_options:
- LOGIN
privileges:
%%{dbname}.public.*: 'ALL'
%%{dbname}.public: 'ALL'
%%{dbname}: 'ALL'
dbhost: %%getVar('risotto_db_address') dbhost: %%getVar('risotto_db_address')
dbport: 5432 dbport: 5432
dbtype: postgres dbtype: postgres
dbname: %%getVar('risotto_tiramisu_dbname') dbname: %%getVar('risotto_tiramisu_dbname')
template: 'postgres' template: 'template0'
pwd_files: pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'TIRAMISU_DB_PASSWORD='} - {'file': '/etc/risotto/risotto.conf', 'pattern': 'TIRAMISU_DB_PASSWORD='}