]> gitweb.fluxo.info Git - puppet-php.git/commitdiff
Adds php::hardened into php
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Jul 2016 19:12:59 +0000 (16:12 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 5 Jul 2016 19:12:59 +0000 (16:12 -0300)
manifests/init.pp

index 90a15b6d93dbbba03706d4d5248dc05263793ea1..6ac5ae01c3ec4c1afdc968eec2eb0ab721fef658 100644 (file)
@@ -16,7 +16,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-class php {
+class php($hardened = true) {
   case $::lsbdistcodename {
     'xenial': {
       include php::packages::xenial
@@ -68,4 +68,8 @@ class php {
 
   include php::resources
   include php::defaults
+
+  if $hardened == true {
+    include php::hardened
+  }
 }