Compare commits
19 Commits
38fbfe1f61
...
dist/risot
Author | SHA1 | Date | |
---|---|---|---|
d7af784926 | |||
80bcc8821f | |||
71bbc42786 | |||
a69d0f7386 | |||
93db38dc7f | |||
2ce388eaf9 | |||
138d6d9e06 | |||
68add009e2 | |||
761c112ad4 | |||
a5a5ca875b | |||
73ec33377c | |||
7cc19606c1 | |||
ad7b3dcfd8 | |||
34bd8c648c | |||
dc9454bc75 | |||
20fcc89840 | |||
014dc29e8a | |||
3d17ddf1f8 | |||
e96e4e81c8 |
@ -61,7 +61,7 @@ CREATE TABLE Server (
|
|||||||
CREATE TABLE Source (
|
CREATE TABLE Source (
|
||||||
SourceId SERIAL PRIMARY KEY,
|
SourceId SERIAL PRIMARY KEY,
|
||||||
SourceName VARCHAR(255) NOT NULL UNIQUE,
|
SourceName VARCHAR(255) NOT NULL UNIQUE,
|
||||||
SourceURL TEXT
|
SourceDirectory TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Release
|
-- Release
|
||||||
@ -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
5
debian/changelog
vendored
@ -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
17
debian/control
vendored
@ -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 l’intégration de risotto dans EOLE
|
Description: configuration pour l’inté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
|
||||||
|
@ -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'/>
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
systemctl start postgresql.service
|
||||||
|
|
||||||
psql -Upostgres -c "grant all on all tables in schema public to risotto" risotto
|
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 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 functions in schema public to risotto" risotto
|
||||||
@ -9,4 +11,6 @@ psql -Upostgres -c "grant all on all tables in schema public to tiramisu" tirami
|
|||||||
psql -Upostgres -c "grant all on all sequences 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
|
psql -Upostgres -c "grant all on all functions in schema public to tiramisu" tiramisu
|
||||||
|
|
||||||
|
systemctl stop postgresql.service
|
||||||
|
|
||||||
exit 0
|
exit 0
|
@ -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"
|
||||||
|
@ -4,12 +4,14 @@ dbuser: %%getVar('risotto_db_user')
|
|||||||
dbuser_options:
|
dbuser_options:
|
||||||
- LOGIN
|
- LOGIN
|
||||||
privileges:
|
privileges:
|
||||||
|
%%{dbname}.public.*: 'ALL'
|
||||||
%%{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: %%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='}
|
||||||
|
@ -4,12 +4,14 @@ dbuser: %%getVar('risotto_tiramisu_db_user')
|
|||||||
dbuser_options:
|
dbuser_options:
|
||||||
- LOGIN
|
- LOGIN
|
||||||
privileges:
|
privileges:
|
||||||
|
%%{dbname}.public.*: 'ALL'
|
||||||
%%{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='}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user