aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/role/dev/drupal8.pp83
1 files changed, 80 insertions, 3 deletions
diff --git a/manifests/role/dev/drupal8.pp b/manifests/role/dev/drupal8.pp
index f508a09..2086a5d 100644
--- a/manifests/role/dev/drupal8.pp
+++ b/manifests/role/dev/drupal8.pp
@@ -35,14 +35,87 @@ class nodo::role::dev::drupal8(
password => $default_db_password,
}
+ # We could simply using one symlink, but it might incur in
+ # performance penalties by drush recursivelly searching for
+ # plugins in the whole project tree.
+ #file { "${::apache::www_folder}/drupal-8/sites/default":
+ # ensure => $project_folder,
+ # force => true,
+ #}
+
+ #file { "${::apache::www_folder}/drupal-8/sites/${project}":
+ # ensure => $project_folder,
+ # force => true,
+ #}
+
file { "${::apache::www_folder}/drupal-8/sites/default":
- ensure => $project_folder,
+ ensure => directory,
+ owner => root,
+ group => root,
+ mode => '0755',
force => true,
}
file { "${::apache::www_folder}/drupal-8/sites/${project}":
- ensure => $project_folder,
- force => true,
+ ensure => "${::apache::www_folder}/drupal-8/sites/default",
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/settings.php":
+ ensure => "${project_folder}/settings.php",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/services.yml":
+ ensure => "${project_folder}/services.yml",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/files":
+ ensure => "${project_folder}/files",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/config":
+ ensure => "${project_folder}/config",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/themes":
+ ensure => "${project_folder}/themes",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/modules":
+ ensure => "${project_folder}/modules",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
+ }
+
+ file { "${::apache::www_folder}/drupal-8/sites/default/libraries":
+ ensure => "${project_folder}/libraries",
+ owner => root,
+ group => root,
+ force => true,
+ require => File["${::apache::www_folder}/drupal-8/sites/default"],
}
file { "${project_folder}":
@@ -66,6 +139,10 @@ class nodo::role::dev::drupal8(
require => File["${project_folder}/vendor"],
}
+ package { 'make':
+ ensure => present,
+ }
+
apache::site { "localhost":
ensure => present,
docroot => "${::apache::www_folder}/drupal-8",