Compare commits

...

22 Commits

Author SHA1 Message Date
f13e0b8555 partitioning 2020-09-16 08:04:25 +02:00
940a76698f add dependence to sql file and create eole-risotto-all package 2020-09-06 09:51:57 +02:00
1873722043 add infraserver table 2020-08-19 11:36:54 +02:00
2dce20e691 update dependencies 2020-08-12 14:08:20 +02:00
66f83826e0 update dependencies 2020-08-12 14:00:22 +02:00
2c9b78ee14 risotto-* => python3-risotto-* 2020-08-12 11:23:33 +02:00
ccd30b7ab5 Add dependencies previously installed from pypi 2020-08-12 09:00:36 +02:00
d7af784926 Merge branch 'develop' into dist/risotto/risotto-2.7.1/develop 2020-08-12 08:32:11 +02:00
80bcc8821f refactor import of seed files 2020-08-12 08:30:58 +02:00
71bbc42786 Merge branch 'develop' into dist/risotto/risotto-2.7.1/develop 2020-08-07 17:09:40 +02:00
a69d0f7386 fixer les permissions avant le démarrage de risotto 2020-08-07 17:09:22 +02:00
93db38dc7f Merge branch 'develop' into dist/risotto/risotto-2.7.1/develop 2020-08-05 17:11:47 +02:00
2ce388eaf9 comment unuse column in applicationservice table 2020-08-05 17:11:30 +02:00
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
8 changed files with 87 additions and 10 deletions

View File

@ -46,8 +46,12 @@ CREATE TABLE Zone (
SitesName VARCHAR(255) [] NOT NULL
);
-------------------------------------
-- Infra
-------------------------------------
-- Server
CREATE TABLE Server (
CREATE TABLE InfraServer(
ServerId SERIAL PRIMARY KEY,
ServerName VARCHAR(255) NOT NULL UNIQUE,
ServerDescription VARCHAR(255) NOT NULL,
@ -61,7 +65,7 @@ CREATE TABLE Server (
CREATE TABLE Source (
SourceId SERIAL PRIMARY KEY,
SourceName VARCHAR(255) NOT NULL UNIQUE,
SourceURL TEXT
SourceDirectory TEXT
);
-- Release
@ -75,6 +79,18 @@ CREATE TABLE Release (
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
CREATE TABLE Servermodel (
ServermodelId SERIAL PRIMARY KEY,
@ -97,6 +113,9 @@ CREATE TABLE Applicationservice (
ApplicationserviceName VARCHAR(255) NOT NULL,
ApplicationserviceDescription VARCHAR(255) NOT NULL,
ApplicationserviceReleaseId INTEGER NOT NULL,
--ApplicationserviceLVIS VARCHAR(255) NOT NULL,
--ApplicationserviceLVIP VARCHAR(255) NOT NULL,
--ApplicationserviceLVMP VARCHAR(255) NOT NULL,
OS JSON,
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

25
debian/control vendored
View File

@ -10,9 +10,32 @@ Vcs-Browser: https://forge.cadoles.com/Infra/risotto
Package: eole-risotto
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 lintégration de risotto dans EOLE
.
Pour toute information complémentaire, veuillez vous rendre sur le
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 lintégration de risotto dans EOLE
.
Pour toute information complémentaire, veuillez vous rendre sur le
site du projet.

View 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
-->

View File

@ -2,6 +2,8 @@
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 sequences 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 functions in schema public to tiramisu" tiramisu
systemctl stop postgresql.service
exit 0

View File

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

View File

@ -11,7 +11,7 @@ dbhost: %%getVar('risotto_db_address')
dbport: 5432
dbtype: postgres
dbname: %%dbname
template: 'postgres'
template: 'template0'
sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql']
pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'RISOTTO_DB_PASSWORD='}

View File

@ -11,7 +11,7 @@ dbhost: %%getVar('risotto_db_address')
dbport: 5432
dbtype: postgres
dbname: %%getVar('risotto_tiramisu_dbname')
template: 'postgres'
template: 'template0'
pwd_files:
- {'file': '/etc/risotto/risotto.conf', 'pattern': 'TIRAMISU_DB_PASSWORD='}