php

A puppet module to manage PHP

Leonardo Thibes

leonardothibes

11,754 downloads

9,043 latest version

0.3 quality score

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

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