aboutsummaryrefslogtreecommitdiff
path: root/manifests/role
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-01-16 18:36:31 -0200
committerSilvio Rhatto <rhatto@riseup.net>2019-01-16 18:36:31 -0200
commit0c50ee40106ef67231e48d7a8b343d1fd58710c1 (patch)
treee61802df543ef3e8933c41751ef6d75452725f8c /manifests/role
parent441bf667585af309e926a8894240d35fed253db6 (diff)
downloadpuppet-nodo-0c50ee40106ef67231e48d7a8b343d1fd58710c1.tar.gz
puppet-nodo-0c50ee40106ef67231e48d7a8b343d1fd58710c1.tar.bz2
Enhance nodo::role::dev::drupal8
Diffstat (limited to 'manifests/role')
-rw-r--r--manifests/role/dev/drupal8.pp29
1 files changed, 28 insertions, 1 deletions
diff --git a/manifests/role/dev/drupal8.pp b/manifests/role/dev/drupal8.pp
index 6196f5c..9d678e2 100644
--- a/manifests/role/dev/drupal8.pp
+++ b/manifests/role/dev/drupal8.pp
@@ -18,6 +18,8 @@ class nodo::role::dev::drupal8(
manage_mod_php => '7',
}
+ $php_version = $::php::params::version7
+
include database
include drupal
@@ -36,7 +38,7 @@ class nodo::role::dev::drupal8(
#file { '/etc/php5/apache2/conf.d/20-xdebug-levels.ini':
#file { '/etc/php/5.6/apache2/conf.d/20-xdebug-levels.ini':
#file { '/etc/php/7.0/apache2/conf.d/20-xdebug-levels.ini':
- file { '/etc/php/7.2/mods-available/20-xdebug-levels.ini':
+ file { "/etc/php/${php_version}/apache2/conf.d/20-xdebug-levels.ini":
ensure => present,
owner => 'root',
group => 'root',
@@ -46,6 +48,31 @@ class nodo::role::dev::drupal8(
notify => Service['apache2'],
}
+ # Fix previous typo error
+ file { [ '/etc/php/7.2/mods-available/20-xdebug-levels.ini' ]:
+ ensure => absent,
+ }
+
+ #file { "/etc/php/${php_version}/apache2/conf.d/20-max-execution-time.ini":
+ # ensure => present,
+ # owner => 'root',
+ # group => 'root',
+ # mode => '0644',
+ # content => "max_execution_time=120\n",
+ # require => Package['php'],
+ # notify => Service['apache2'],
+ #}
+
+ #file { "/etc/php/${php_version}/apache2/conf.d/20-memory-limit.ini":
+ # ensure => present,
+ # owner => 'root',
+ # group => 'root',
+ # mode => '0644',
+ # content => "memory_limit=512M\n",
+ # require => Package['php'],
+ # notify => Service['apache2'],
+ #}
+
# Do not use this password on production machines
database::instance { $db_name:
password => $db_password,