From 745976b62b30bed1aafc5bd0e9aff93a276c9e4c Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 8 Nov 2017 08:39:25 -0200 Subject: Adds db_name and db_password params into nodo::role::dev::drupal8 --- manifests/role/dev/drupal8.pp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'manifests/role') diff --git a/manifests/role/dev/drupal8.pp b/manifests/role/dev/drupal8.pp index a83365f..d135c8e 100644 --- a/manifests/role/dev/drupal8.pp +++ b/manifests/role/dev/drupal8.pp @@ -5,6 +5,8 @@ class nodo::role::dev::drupal8( $project = 'drupal', $project_folder = '/srv/kvmx', # '/vagrant' $project_user = 'user', # 'vagrant' + $db_name = 'drupal', + $db_password = 'hackme', ) { include nodo::role::dev::virtual include apache @@ -38,12 +40,9 @@ class nodo::role::dev::drupal8( notify => Service['apache2'], } - $default_db = hiera('websites::default_db', 'drupal') - $default_db_password = hiera('websites::default_db::password', 'hackme') - # Do not use this password on production machines - database::instance { $default_db: - password => $default_db_password, + database::instance { $db_name: + password => $db_password, } # We could simply using one symlink, but it might incur in -- cgit v1.2.3