- Overview
- Setup - The basics of getting started with phar
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
The module can fully manage .phar installation packages including composer (with auto update option), phpunit, phpdox, phploc, phpcpd and any other .phar package.
The module supports also hiera
Puppet-phar module requires maestrodev/wget module.
include phar
phar::package {'phpunit':
phar_location => 'https://phar.phpunit.de',
version => '4.8.9',
}
phar::package {'phpdox':
phar_location => 'http://phpdox.de',
}
phar::package {'composer':
phar_location => 'https://getcomposer.org',
auto_update => true,
}
Hiera Usage
phar_package:
'phpunit':
phar_location: 'https://phar.phpunit.de'
version: '4.8.9'
'composer':
phar_location: 'https://getcomposer.org'
auto_update: true
'phpdox':
phar_location: 'https://phar.phpunit.de'
target_dir: '/usr/local/bin'
This module has been tested only on CentOS.