Skip to content

Commit

Permalink
Merge pull request SS-archive#11 from benhosmer/master
Browse files Browse the repository at this point in the history
Adding the opengeo suite.
  • Loading branch information
thatch45 committed Sep 20, 2012
2 parents aa2cba1 + c410a57 commit 1671939
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
33 changes: 33 additions & 0 deletions small/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Get it

ruby-1.9.2:
file.managed:
- name: /tmp/ruby-1.9.2.tar.gz
- source: http://ftp.ruby-lang.org/pub/ruby/ruby-1.9.2-p320.tar.gz
- source_hash: md5=5ef5d9c07af207710bd9c2ad1cef4b42

# Extract it

extract-ruby:
cmd:
- cwd: /tmp
- names:
- tar xvf ruby-1.9.2.tar.gz
- run
- require:
- file: ruby-1.9.2

# Configure it

configure-ruby:
cmd:
- cwd: /tmp/ruby-1.9.2-p320
- names:
- ./configure
- make
- make install
- run
- require:
- cmd: extract-ruby


62 changes: 62 additions & 0 deletions small/opengeo/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apache:
pkg:
{% if grains['os_family'] == 'RedHat' %}
- name: httpd
{% endif %}
{% if grains['os'] == 'Ubuntu' %}
- name: apache2
{% endif %}
- installed
service:
{% if grains['os_family'] == 'RedHat' %}
- name: httpd
{% endif %}
{% if grains['os'] == 'Ubuntu' %}
- name: apache2
{% endif %}
- running

php5-pkgs:
pkg:
{% if grains['os'] == 'Ubuntu' %}
- names:
- php5
- php5-pgsql
- php5-curl
- php5-cli
- php5-cgi
- php5-dev
- php-pear
{% endif %}
- installed

postgresql:
pkg:
{% if grains['os'] == 'Ubuntu' %}
- names:
- postgresql-8.3
- postgresql-client-8.3
- postgresql-client-8.3
- postgresql-contrib-8.3
- postgresql-common
{% endif %}
- installed
java-jdk:
pkg:
{% if grains['os'] == 'Ubuntu' %}
- name: openjdk-7-jre
{% endif %}
{% if grains['os_family'] == 'RedHat' %}
- name: java-1.7.0-openjdk
{% endif %}
- installed

opengeo-suite:
pkg:
{% if grains['os'] == 'Ubuntu' %}
- name: opengeo-suite
{% endif %}
- installed



0 comments on commit 1671939

Please sign in to comment.