Commit b598bb10 authored by Julie gauthier's avatar Julie gauthier
Browse files

Merge branch '16-replace-hard-values-with-their-variables' into 'master'

Resolve "Replace hard values with their variables"

Closes #16

See merge request demarches-simplifiees/vagrant-demarches-simplifiees!4
parents 6a0d99b5 753634ec
......@@ -109,21 +109,21 @@ file { "$_ds_project_directory/.env":
file_line { 'DB_DATABASE':
ensure => present,
path => "$_ds_project_directory/.env",
line => 'DB_DATABASE="ds"',
line => "DB_DATABASE=\"$db_name\"",
match => '^DB_DATABASE="tps_development"',
require => File["$_ds_project_directory/.env"],
}
file_line { 'DB_USERNAME':
ensure => present,
path => "$_ds_project_directory/.env",
line => 'DB_USERNAME="ds"',
line => "DB_USERNAME=\"$db_user_name\"",
match => '^DB_USERNAME="tps_development"',
require => File["$_ds_project_directory/.env"],
}
file_line { 'DB_PASSWORD':
ensure => present,
path => "$_ds_project_directory/.env",
line => 'DB_PASSWORD="kiki34"',
line => "DB_PASSWORD=\"$db_user_password\"",
match => '^DB_PASSWORD="tps_development"',
require => File["$_ds_project_directory/.env"],
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment