Sha256: dd98dc4031b020d153e32412915a0fde4a3958651ce5d4b13bab4f36c750b600

Contents?: true

Size: 1.3 KB

Versions: 3

Compression:

Stored size: 1.3 KB

Contents

include:
  - scm

jenv_deps:
  pkg.installed:
    - names:
      - build-essential
      - openssl
      - curl
      - zlib1g
      - zlib1g-dev
      - libssl-dev
      - libyaml-dev
      - libsqlite3-0
      - libsqlite3-dev
      - sqlite3
      - libxml2-dev
      - libxslt1-dev
      - autoconf
      - libc6-dev
      - libncurses5-dev
      - automake
      - libtool
      - bison

# 
# jenv and java-build installation
# 

#{{ pillar['homedir'] }}/.jenv:
#  file.directory:
#    - user: {{ pillar['username'] }}
#    - group: {{ pillar['username'] }}
#    - makedirs: True

jenv:
  git.latest:
    - name: git://github.com/gcuisinier/jenv
    - runas: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - rev: master
    - target: {{ pillar['homedir'] }}/.jenv
    - force: True
    - require:
      - pkg: jenv_deps
  file.append:
    - name: {{ pillar['homedir'] }}/.profile
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - text:
      - export PATH="$HOME/.jenv/bin:$PATH"
      - eval "$(jenv init -)"
    - require:
      - git: jenv

jenv-rehash:
  cmd.run:
    - name: {{ pillar['homedir'] }}/.jenv/bin/jenv rehash
    - user: {{ pillar['username'] }}
    - group: {{ pillar['username'] }}
    - require:
      - file: jenv

# Install java manually at this point!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
salted-rails-0.0.9 salt/lang/jenv.sls
salted-rails-0.0.8 salt/lang/jenv.sls
salted-rails-0.0.7 salt/lang/jenv.sls