catalinpan / puppet-phar

Install composer and any other phar package using puppet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

phar

Table of Contents

  1. Overview
  2. Setup - The basics of getting started with phar
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.

Overview

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

Setup Requirements

Puppet-phar module requires maestrodev/wget module.

Usage

 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'

Limitations

This module has been tested only on CentOS.

About

Install composer and any other phar package using puppet

License:MIT License


Languages

Language:Puppet 73.3%Language:Ruby 26.7%