1 class sysconfig::params { |
1 class sysconfig::params { |
2 |
2 |
3 $db_name = 'spel' |
3 $db_name = hiera('sysconfig::params::db_name','spel') |
4 $db_user = 'spel_user' |
4 $db_user = hiera('sysconfig::params::db_user','spel_user') |
5 $db_pw = 'spel' |
5 $db_pw = hiera('sysconfig::params::db_pw','spel') |
6 $db_host = '127.0.0.1' |
6 $db_host = hiera('sysconfig::params::db_host','127.0.0.1') |
7 $db_port = '5432' |
7 $db_port = hiera('sysconfig::params::db_port','5432') |
8 |
8 |
9 $db_host_real = hiera('sysconfig::params::db_host',$db_host) |
9 $db_host_real = $db_host |
10 $db_is_local = ($db_host_real == undef or !$db_host_real or $db_host_real=='127.0.0.1' or $db_host_real=='localhost') |
10 $db_is_local = ($db_host_real == undef or !$db_host_real or $db_host_real=='127.0.0.1' or $db_host_real=='localhost') |
11 |
11 |
12 $testserver_port = 8001 |
12 $testserver_port = hiera('sysconfig::params::testserver_port','8001') |
13 |
13 |
14 $superuser_name = 'admin' |
14 $superuser_name = hiera('sysconfig::params::superuser_name','admin') |
15 $superuser_pw = 'dev@spel' |
15 $superuser_pw = hiera('sysconfig::params::superuser_pw','dev@spel') |
16 $user_edit_name = 'user-edit' |
|
17 $user_edit_pw = 'user-edit@spel' |
|
18 $user_com_name = 'user-com' |
|
19 $user_com_pw = 'user-com@spel' |
|
20 $user_observ_name = 'user-observ' |
|
21 $user_observ_pw = 'user-observ@spel' |
|
22 |
16 |
23 $path_to_virtualenv = hiera('sysconfig::params::path_to_virtualenv', '/home/vagrant/myspelenv') |
17 $path_to_virtualenv = hiera('sysconfig::params::path_to_virtualenv', '/home/vagrant/myspelenv') |
24 |
18 |
25 } |
19 } |