example42 / puppet-php

A puppet module for php. According to Example42 NextGen spec.
Other
45 stars 62 forks source link

php::pear::module {...} prepends 'php-' to the module name #49

Closed mikebronner closed 10 years ago

mikebronner commented 10 years ago

Not sure if I'm misunderstanding this, but whenever I try

php::pear::module
{
    'PHPUnit':
        repository  => 'pear.phpunit.de',
        alldeps => 'true',
}

or similar with another module, it fails because php- gets prepended to the module name. How do I prevent this?

err: /Stage[main]//Php::Pear::Module[PHPUnit]/Package[pear-PHPUnit]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php-PHPUnit' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-PHPUnit
mikebronner commented 10 years ago

Figured it out: it needs the use_package => 'no':

php::pear::module
{
    'PHPUnit':
        repository  => 'pear.phpunit.de',
        alldeps => 'true',
        use_package => "no",
}