Skip to content

Instantly share code, notes, and snippets.

@dgonzo
Created December 19, 2013 21:25
Show Gist options
  • Save dgonzo/8046505 to your computer and use it in GitHub Desktop.
Save dgonzo/8046505 to your computer and use it in GitHub Desktop.
titan
{% set home = '/root' %}
{% set titan_dir = home + "titan-server-0.4.1-ND" %}
java7_ppa:
cmd.run:
- name: add-apt-repository ppa:webupd8team/java --yes && apt-get update
- user: root
accept-license:
cmd.run:
- name: echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
- unless: debconf-get-selections | grep -q shared/accepted-oracle-license-v1-1
- user: root
jdk7:
pkg.installed:
- name: oracle-java7-installer
- pkgrepo: apt-get
- requires:
- cmd: accept-license
#titan-server:
# git.latest:
# - name: [email protected]:davidbgonzalez/titan_deploy.git
# - target: /root
# - rev: master
# cmd.wait:
# - name: {{ home }}/titan-server-0.4.1-ND/bin/titan.sh -c cassandra-es start
# - cwd: /
# - watch:
# - cmd: titan-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment