Compare commits
16 Commits
pkg/dev/ri
...
f13e0b8555
Author | SHA1 | Date | |
---|---|---|---|
f13e0b8555 | |||
940a76698f | |||
1873722043 | |||
2dce20e691 | |||
66f83826e0 | |||
2c9b78ee14 | |||
ccd30b7ab5 | |||
d7af784926 | |||
80bcc8821f | |||
71bbc42786 | |||
a69d0f7386 | |||
93db38dc7f | |||
2ce388eaf9 | |||
138d6d9e06 | |||
68add009e2 | |||
761c112ad4 |
@ -46,8 +46,12 @@ CREATE TABLE Zone (
|
|||||||
SitesName VARCHAR(255) [] NOT NULL
|
SitesName VARCHAR(255) [] NOT NULL
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Infra
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
-- Server
|
-- Server
|
||||||
CREATE TABLE Server (
|
CREATE TABLE InfraServer(
|
||||||
ServerId SERIAL PRIMARY KEY,
|
ServerId SERIAL PRIMARY KEY,
|
||||||
ServerName VARCHAR(255) NOT NULL UNIQUE,
|
ServerName VARCHAR(255) NOT NULL UNIQUE,
|
||||||
ServerDescription VARCHAR(255) NOT NULL,
|
ServerDescription VARCHAR(255) NOT NULL,
|
||||||
@ -61,7 +65,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
|
||||||
@ -75,6 +79,18 @@ CREATE TABLE Release (
|
|||||||
FOREIGN KEY (ReleaseSourceId) REFERENCES Source(SourceId)
|
FOREIGN KEY (ReleaseSourceId) REFERENCES Source(SourceId)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
-------------------------------------
|
||||||
|
-- Setting
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
-- SettingServer
|
||||||
|
CREATE TABLE SettingServer(
|
||||||
|
ServerId SERIAL PRIMARY KEY,
|
||||||
|
ServerName VARCHAR(255) NOT NULL UNIQUE,
|
||||||
|
ServermodelName VARCHAR(255) NOT NULL,
|
||||||
|
ReleaseDistribution VARCHAR(255) NOT NULL
|
||||||
|
);
|
||||||
|
|
||||||
-- Servermodel
|
-- Servermodel
|
||||||
CREATE TABLE Servermodel (
|
CREATE TABLE Servermodel (
|
||||||
ServermodelId SERIAL PRIMARY KEY,
|
ServermodelId SERIAL PRIMARY KEY,
|
||||||
@ -97,9 +113,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,
|
--ApplicationserviceLVIS VARCHAR(255) NOT NULL,
|
||||||
ApplicationserviceLVIP VARCHAR(255) NOT NULL,
|
--ApplicationserviceLVIP VARCHAR(255) NOT NULL,
|
||||||
ApplicationserviceLVMP 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-1) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Création du paquet
|
|
||||||
|
|
||||||
-- Cadoles <contact@cadoles.com> Thu, 02 Apr 2020 10:43:03 +0200
|
|
23
debian/control
vendored
23
debian/control
vendored
@ -11,8 +11,31 @@ 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,
|
||||||
|
risotto-user-sql,
|
||||||
|
risotto-setting-sql,
|
||||||
|
risotto-provider-sql,
|
||||||
|
risotto-infra-sql,
|
||||||
|
risotto-message,
|
||||||
|
risotto
|
||||||
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
|
||||||
site du projet.
|
site du projet.
|
||||||
|
|
||||||
|
Package: eole-risotto-all
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${misc:Depends},
|
||||||
|
eole-risotto,
|
||||||
|
python3-risotto-user,
|
||||||
|
python3-risotto-setting,
|
||||||
|
python3-risotto-provider,
|
||||||
|
python3-risotto-infra,
|
||||||
|
cadoles-risotto-seed,
|
||||||
|
cucchiaiata,
|
||||||
|
eole-risotto
|
||||||
|
Description: configuration pour l’intégration de risotto dans EOLE
|
||||||
|
.
|
||||||
|
Pour toute information complémentaire, veuillez vous rendre sur le
|
||||||
|
site du projet.
|
||||||
|
35
dicos/20_partitioning_risotto.xml
Normal file
35
dicos/20_partitioning_risotto.xml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
|
<creole>
|
||||||
|
<variables>
|
||||||
|
<family name='système'>
|
||||||
|
<!-- We need to recalculate the variables -->
|
||||||
|
<variable name='eole_lv_names' redefine='True' remove_check='True' />
|
||||||
|
<variable name='eole_lv_standard_extends' redefine='True' remove_check='True' />
|
||||||
|
</family>
|
||||||
|
</variables>
|
||||||
|
<constraints>
|
||||||
|
<!-- Default AmonEcole* logical volumes -->
|
||||||
|
<auto name='calc_multi_val' target='eole_lv_names'>
|
||||||
|
<param>root</param>
|
||||||
|
<param>tmp</param>
|
||||||
|
<param>var</param>
|
||||||
|
<param>var+spool</param>
|
||||||
|
<param>var+log</param>
|
||||||
|
<param>home</param>
|
||||||
|
</auto>
|
||||||
|
<!-- Default AmonEcole* logical volumes extension: 100% /home -->
|
||||||
|
<auto name='calc_multi_val' target='eole_lv_standard_extends'>
|
||||||
|
<param type='number'>0</param>
|
||||||
|
<param type='number'>0</param>
|
||||||
|
<param type='number'>0</param>
|
||||||
|
<param type='number'>0</param>
|
||||||
|
<param type='number'>0</param>
|
||||||
|
<param type='number'>100</param>
|
||||||
|
</auto>
|
||||||
|
</constraints>
|
||||||
|
<help/>
|
||||||
|
</creole>
|
||||||
|
<!-- vim: ts=4 sw=4 expandtab
|
||||||
|
-->
|
||||||
|
|
@ -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
|
Reference in New Issue
Block a user