Browse Source

Ajout gestion eole-db

Benjamin Gaudé 11 months ago
parent
commit
b823ea98fd
3 changed files with 21 additions and 0 deletions
  1. 3
    0
      postservice/61-pve
  2. 2
    0
      sql/gen/pve-create-1.sql
  3. 16
    0
      tmpl/pve-db.yml

+ 3
- 0
postservice/61-pve View File

@@ -0,0 +1,3 @@
1
+#!/bin/bash
2
+
3
+CreoleRun "/var/www/html/pve/scripts/scribe-post-install.sh" web

+ 2
- 0
sql/gen/pve-create-1.sql View File

@@ -0,0 +1,2 @@
1
+-- création de la base de donnée
2
+CREATE DATABASE pve CHARACTER SET utf8;

+ 16
- 0
tmpl/pve-db.yml View File

@@ -0,0 +1,16 @@
1
+dbtype: mysql
2
+dbname: pve
3
+dbuser: pve
4
+dbroot: mse
5
+dbpass: 123456
6
+dbport: 3306
7
+client_hosts: ["127.0.0.1", "localhost", "%%adresse_ip_eth0" ]
8
+dbhost: %%pvebundle_ipbdd
9
+createscript: /usr/share/eole/mysql/eole-mse/gen/pve-create-1.sql
10
+dbrootpwd: /root/.msedbpass.txt
11
+pwd_files:
12
+  - file: '/var/www/html/mse/app/config/parameters.yml'
13
+    pattern: '    database_password: "'
14
+    end_pattern: ''
15
+    owner: 'www-data:www-data'
16
+    mod: '600'