forked from SS-archive/salt-states
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request SS-archive#11 from benhosmer/master
Adding the opengeo suite.
- Loading branch information
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
||
|