Forgot to make database.php a template :)
This commit is contained in:
parent
96794822b1
commit
799ac29b13
2 changed files with 17 additions and 0 deletions
|
@ -137,6 +137,12 @@ class rhizomatica_base_system {
|
|||
require => Vcsrepo['/var/rhizomatica'],
|
||||
}
|
||||
|
||||
file { '/var/rhizomatica/rai/include/database.php':
|
||||
ensure => present,
|
||||
content => template('rhizomatica_base_system/database.php.erb'),
|
||||
require => Vcsrepo['/var/rhizomatica'],
|
||||
}
|
||||
|
||||
exec { 'install_rccn':
|
||||
command => '/usr/bin/python /var/rhizomatica/rccn/install.py',
|
||||
require => File['/var/rhizomatica/rccn/config_values.py'],
|
||||
|
|
11
modules/rhizomatica_base_system/templates/database.php.erb
Normal file
11
modules/rhizomatica_base_system/templates/database.php.erb
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
/* Database connection information */
|
||||
|
||||
$DB_USER = "<%= @pgsql_user %>";
|
||||
$DB_PASSWORD = "<%= @pgsql_pwd %>";
|
||||
$DB_DATABASE = "<%= @pgsql_db %>";
|
||||
$DB_HOST = "<%= @pgsql_host %>";
|
||||
|
||||
?>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue