Skip to content
This repository has been archived by the owner on Dec 11, 2018. It is now read-only.

Latest commit

 

History

History
57 lines (40 loc) · 1.38 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.38 KB

Elixir Puppet Module for Boxen

Build Status

Requires the following boxen modules:

  • boxen
  • repository
  • homebrew
  • erlang

About

This module supports Elixir version management with exenv. All Elixir versions are installed into /opt/elixirs.

About elixir-build version

Occasional bumps to the default elixir-build version are fine, on this module, but not essential. The elixir-build version is something you should be managing in your own boxen repository, rather than depending on this module to update for you. See examples on how to change the elixir-build version in the Hiera section.

You can find a release list of versions for elixir-build here.

Usage

# Set the global default Elixir (auto-installs it if it can)
class { 'elixir::global':
  version => '1.0.0'
}

# ensure a certain elixir version is used in a dir
elixir::local { '/path/to/some/project':
  version => '1.0.2'
}

# install a elixir version
elixir::version { '1.0.1': }

Hiera configuration

The following variables may be automatically overridden with Hiera:

---

"elixir::user": "deploy"
"elixir::build::ensure": "v20141001"
"elixir::exenv::ensure": "v0.1.0"

You can also use JSON if your Hiera is configured for that.