]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Adds db_name and db_password params into nodo::role::dev::drupal8
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Nov 2017 10:39:25 +0000 (08:39 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 8 Nov 2017 10:39:25 +0000 (08:39 -0200)
manifests/role/dev/drupal8.pp

index a83365fae75029f67a801b5432432e455a44ebb6..d135c8e2d39de093c4d16fab25b1ee3110f4362f 100644 (file)
@@ -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