Forge Home

php

A puppet module to manage PHP

13,959 downloads

10,063 latest version

0.3 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.4.2 (latest)
  • 1.4.1
  • 1.4.0
  • 1.3.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.0
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Jul 12th 2014

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'leonardothibes-php', '1.4.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add leonardothibes-php
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install leonardothibes-php --version 1.4.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

leonardothibes/php — version 1.4.2 Jul 12th 2014

puppet-php

A puppet module to manage PHP.

Sample Usage

Install PHP and use the provided configuration defaults:

node default {
    class {'php':}
}

or

node default {
    include php
}

Install PHP and change default params in php.ini:

node default {
    class {'php':
        display_errors  => 'Off',
        error_reporting => 'E_ALL',
        memory_limit    => '512',
        error_log       => '/var/log/php.log',
        include_path    => ['/path/to/your/library','/usr/share/php'] # "." is not necessary inform
    }
}

Install PHP and some modules:

node default {
    class {'php':
        modules => ['apc','mysql','pgsql']
    }
}

or

node default {
    class {'php':}
    php::module::install{'apc':}
    php::module::install{'mysql':}
    php::module::install{'pgsql':}
}

Purge modules:

node default {
    php::module::purge{'apc':}
    php::module::purge{'xdebug':}
}

or

node default {
    php::module::purge{['apc','xdebug']:}
}

Install PHP and some development tools:

node default {
    class {'php':
        extra => ['code-sniffer','phing','phpdoc','composer','phpunit','s3cmd']
    }
}

Purge development tools:

node default {
    php::extra::purge{'code-sniffer':}
    php::extra::purge{'composer':}
}

or

node default {
    php::extra::purge{['code-sniffer','composer']:}
}

or

node default {
class {'php':}
    php::extra::install {'code-sniffer':}
    php::extra::install {'phing':}
    php::extra::install {'phpdoc':}
    php::extra::install {'phpunit':}
    php::extra::install {'composer':}
    php::extra::install {'s3cmd':}
}

Purge completly PHP:

node default {
    class {'php':
        ensure => absent
    }
}

Contact

Principal developer: Leonardo Thibes => eu@leonardothibes.com

Support

Please log tickets and issues at our Projects site