aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-28 09:45:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-10-28 09:45:42 -0200
commitb5b6afadda59ead9c5d19a50a99d97dcf550a19c (patch)
treee90f69642c3102d9420995acbe793a5f94034acf
parentb807806c87d84197c98214b6e0659f71c097f77e (diff)
downloadpuppet-nodo-b5b6afadda59ead9c5d19a50a99d97dcf550a19c.tar.gz
puppet-nodo-b5b6afadda59ead9c5d19a50a99d97dcf550a19c.tar.bz2
Manage each needed file/dir at nodo::role::dev::drupal8
-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",