Alexandros Kosiaris has submitted this change and it was merged.

Change subject: ganglia::web: enable opcache
......................................................................


ganglia::web: enable opcache

That should help save some CPU cycles. Also move from augeas to
file_line for memory_limit

Change-Id: I6574d378deb4910f901e63b0b79401498186171f
---
M modules/ganglia_new/manifests/web.pp
1 file changed, 8 insertions(+), 5 deletions(-)

Approvals:
  Alexandros Kosiaris: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ganglia_new/manifests/web.pp 
b/modules/ganglia_new/manifests/web.pp
index 0f56e0e..8c018f1 100644
--- a/modules/ganglia_new/manifests/web.pp
+++ b/modules/ganglia_new/manifests/web.pp
@@ -40,11 +40,14 @@
     }
 
     # Increase the default memory limit
-    augeas { 'php.ini-memory':
-        context => '/files/etc/php5/apache2/php.ini/PHP',
-        changes => [
-            'set memory_limit 256M',
-        ],
+    file_line { 'php.ini-memory':
+        line    => 'memory_limit = 256M',
+        path    => '/etc/php5/apache2/php.ini',
+        notify  => Class['::apache']
+    }
+    file_line { 'php.ini-opcache':
+        line    => 'opcache.enable=1',
+        path    => '/etc/php5/apache2/php.ini',
         notify  => Class['::apache']
     }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/225120
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6574d378deb4910f901e63b0b79401498186171f
Gerrit-PatchSet: 2
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: Alexandros Kosiaris <akosia...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to