ElaoInfra.composer

Ansible Role: composer

This role will assume the setup of composer

It's part of the ELAO Ansible stack but can be used as a stand alone component.

Requirements

  • Ansible 1.7.2+

Dependencies

This role requires php-cli >=5.3.2. You can use elao.php role.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install elao.composer,2.0

Using ansible galaxy requirements file:

- src:     elao.composer
  version: 2.0

Ansible 1 (no longer maintained)

Using ansible galaxy cli:

ansible-galaxy install elao.composer,1.0

Using ansible galaxy requirements file:

- src:     elao.composer
  version: 1.0

Role Handlers

None.

Role Variables

Configuration paths

Name Default Type Description
elao_composer_bin /usr/local/bin/composer String Composer bin path.
elao_composer_home ~/.composer String Composer home path.
elao_composer_config_auth { } Array Composer auth config.

Configuration definitions

Name Default Type Description
elao_composer_config.auth Emptycollection Collection Definition of composer authentication.

Configuration example

Composer configuration with github token

elao_composer_config:
  auth:
    github-oauth:
      github.com: <your-github-token>

Composer configuration with global packages

elao_composer_home: /home/vagrant/.composer
elao_composer_packages:
  - name:     phpunit/phpunit
    version:  '@stable'
    bin_dir:  /usr/local/bin
  - name:     squizlabs/php_codesniffer
    version:  '@stable'
    bin_dir:  /usr/local/bin

Example playbook

- hosts: servers
  roles:
    - { role: elao.composer }

Licence

MIT

Author information

ELAO (http://www.elao.com/)

About

A composer role for elao symfony standard vagrant box

Install
ansible-galaxy install ElaoInfra.composer
GitHub repository
License
Unknown
Downloads
93
Owner
All of those roles aren't maintained anymore and we strongly encourage you to switch to our new (maintained and tested) Ansible stack: https://github.com/manala