Compare commits
9 Commits
932927e53c
...
dist/eole/
Author | SHA1 | Date | |
---|---|---|---|
20fcc89840 | |||
014dc29e8a | |||
3d17ddf1f8 | |||
e96e4e81c8 | |||
38fbfe1f61 | |||
81f0635ef2 | |||
c1bac94c00 | |||
c59d1a38fc | |||
dbcfe4bc66 |
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<creole>
|
||||
<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/systemd/system/risotto.service' mkdir='True' rm='True'/>
|
||||
<file filelist='risotto' name='/etc/eole/eole-db.d/risotto.yml' mkdir='True' rm='True'/>
|
||||
|
12
postservice/01-fix-postgresql-permissions
Normal file
12
postservice/01-fix-postgresql-permissions
Normal 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
|
@ -1,9 +1,16 @@
|
||||
%set %%dbname = %%getVar('risotto_main_dbname')
|
||||
---
|
||||
dbuser: %%getVar('risotto_db_user')
|
||||
dbuser_options:
|
||||
- LOGIN
|
||||
privileges:
|
||||
%%{dbname}.public.*: 'ALL'
|
||||
%%{dbname}.public: 'ALL'
|
||||
%%{dbname}: 'ALL'
|
||||
dbhost: %%getVar('risotto_db_address')
|
||||
dbport: 5432
|
||||
dbtype: postgres
|
||||
dbname: %%getVar('risotto_main_dbname')
|
||||
dbname: %%dbname
|
||||
template: 'postgres'
|
||||
sqlscripts: ['/usr/share/eole/db/eole-risotto/gen/create_tables.sql']
|
||||
pwd_files:
|
||||
|
@ -1,5 +1,12 @@
|
||||
%set %%dbname = %%getVar('risotto_tiramisu_dbname')
|
||||
---
|
||||
dbuser: %%getVar('risotto_tiramisu_db_user')
|
||||
dbuser_options:
|
||||
- LOGIN
|
||||
privileges:
|
||||
%%{dbname}.public.*: 'ALL'
|
||||
%%{dbname}.public: 'ALL'
|
||||
%%{dbname}: 'ALL'
|
||||
dbhost: %%getVar('risotto_db_address')
|
||||
dbport: 5432
|
||||
dbtype: postgres
|
||||
|
Reference in New Issue
Block a user