author | ymh <ymh.work@gmail.com> |
Fri, 18 Nov 2016 14:48:49 +0100 | |
changeset 428 | 76a47f714766 |
parent 405 | f239c8c5bb94 |
permissions | -rw-r--r-- |
28 | 1 |
class sysconfig::corpus ( |
353
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
2 |
$vhost = hiera('sysconfig::params::vhost', $sysconfig::params::vhost), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
3 |
$corpus_app_key = hiera('sysconfig::params::corpus_app_key', $sysconfig::params::corpus_app_key), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
4 |
$db_name = hiera('sysconfig::params::db_name', $sysconfig::params::db_name), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
5 |
$db_drpl_name = hiera('sysconfig::params::db_drpl_name', $sysconfig::params::db_drpl_name), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
6 |
$db_user = hiera('sysconfig::params::db_user', $sysconfig::params::db_user), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
7 |
$db_pw = hiera('sysconfig::params::db_pw', $sysconfig::params::db_pw), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
8 |
$db_host = hiera('sysconfig::params::db_host', $sysconfig::params::db_host), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
9 |
$db_port = hiera('sysconfig::params::db_port', $sysconfig::params::db_port), |
405
f239c8c5bb94
migrate to rdf4j (2.1.1) from sesame (4.1.1)
ymh <ymh.work@gmail.com>
parents:
380
diff
changeset
|
10 |
$rdf4j_host = hiera('sysconfig::params::rdf4j_host', $sysconfig::params::rdf4j_host), |
f239c8c5bb94
migrate to rdf4j (2.1.1) from sesame (4.1.1)
ymh <ymh.work@gmail.com>
parents:
380
diff
changeset
|
11 |
$rdf4j_port = hiera('sysconfig::params::rdf4j_port', $sysconfig::params::rdf4j_port), |
353
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
12 |
$es_host = hiera('sysconfig::params::es_host', $sysconfig::params::es_host), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
13 |
$es_port = hiera('sysconfig::params::es_port', $sysconfig::params::es_port), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
14 |
$es_instance = hiera('sysconfig::params::es_instance', $sysconfig::params::es_instance), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
15 |
$hdl_host = hiera('sysconfig::params::hdl_host', $sysconfig::params::hdl_host), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
16 |
$hdl_web_port = hiera('sysconfig::params::hdl_web_port', $sysconfig::params::hdl_web_port), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
17 |
$hdl_key_pswd = hiera('sysconfig::params::hdl_key_pswd', $sysconfig::params::hdl_key_pswd), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
18 |
$hdl_prefix = hiera('sysconfig::params::hdl_prefix', $sysconfig::params::hdl_prefix), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
19 |
$hdl_test_prefix = hiera('sysconfig::params::hdl_test_prefix', $sysconfig::params::hdl_test_prefix), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
20 |
$hdl_prefix_admin = hiera('sysconfig::params::hdl_prefix_admin', $sysconfig::params::hdl_prefix_admin), |
bf1bc6b08c46
correct provisioning to install drush and correct config files + module definition for menu access problem
ymh <ymh.work@gmail.com>
parents:
318
diff
changeset
|
21 |
$geonames_username = hiera('sysconfig::params::geonames_username', $sysconfig::params::geonames_username) |
28 | 22 |
) inherits sysconfig::params { |
23 |
||
24 |
file { "/etc/www/corpus_env.conf": |
|
25 |
ensure => file, |
|
26 |
content => template("sysconfig/corpus/corpus_env.conf.erb"), |
|
27 |
require => [Package['httpd'], File['/etc/www']], |
|
28 |
notify => Service['httpd'] |
|
29 |
} |
|
30 |
||
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
31 |
file { "/var/www/corpusdelaparole/corpus-back/.env": |
28 | 32 |
ensure => file, |
33 |
owner => 'apache', |
|
34 |
group => 'apache', |
|
35 |
content => template("sysconfig/corpus/local.env.erb"), |
|
318
5564f5065f81
add a root url for corpus back apis. it is set to the same than root api for the moment
ymh <ymh.work@gmail.com>
parents:
28
diff
changeset
|
36 |
require=>File["/var/www/corpusdelaparole/corpus-back"] |
28 | 37 |
} |
38 |
||
39 |
} |