Permalink
Browse files

Merge pull request #2 from Quintus/master

Add PostgreSQL
  • Loading branch information...
2 parents e4fcbff + 8310505 commit 007121e6e625b4d752a8b41d3ec0ee3f75dad308 @Xylakant Xylakant committed Feb 20, 2013
Showing with 56 additions and 1 deletion.
  1. +9 −0 .gitmodules
  2. +44 −1 manifests/tomcat-server.pp
  3. +1 −0 modules/concat
  4. +1 −0 modules/firewall
  5. +1 −0 modules/postgresql
View
@@ -4,3 +4,12 @@
[submodule "modules/rvm"]
path = modules/rvm
url = git@github.com:blt04/puppet-rvm.git
+[submodule "modules/postgresql"]
+ path = modules/postgresql
+ url = git://github.com/puppetlabs/puppet-postgresql.git
+[submodule "modules/firewall"]
+ path = modules/firewall
+ url = git://github.com/puppetlabs/puppetlabs-firewall.git
+[submodule "modules/concat"]
+ path = modules/concat
+ url = git://github.com/ripienaar/puppet-concat.git
View
@@ -16,6 +16,47 @@
enabled => "1",
gpgcheck => "0"
}
+
+}
+
+class { 'postgresql::params':
+ version => "9.2",
+ manage_package_repo => true
+}
+
+class dbsetup {
+
+ package { "postgresql92-devel":
+ ensure => present
+ }
+
+ package { "postgresql92-contrib":
+ ensure => present
+ }
+
+ postgresql::pg_hba_rule { 'local md5 auth':
+ description => "Allow local users to identify with md5",
+ type => 'local',
+ database => 'all',
+ user => 'all',
+ auth_method => 'md5',
+ order => 0
+ }
+
+ postgresql::db { "production":
+ user => "vagrant",
+ password => "vagrant",
+ }
+
+ postgresql::db { "development":
+ user => "vagrant",
+ password => "vagrant"
+ }
+
+ postgresql::db { "test":
+ user => "vagrant",
+ password => "vagrant"
+ }
}
class requirements {
@@ -90,7 +131,9 @@
include tomcat7
include oracle-xe
include redis::server
-
+ include postgresql::server
+ include dbsetup
+
class { requirements: stage => 'requirementsstage' }
Class['java::jdk'] -> Class['oracle-xe'] -> Class['tomcat7'] -> Class['installrvm'] -> Class['projects']
Submodule concat added at 442bd0
Submodule firewall added at 7b8ddb
Submodule postgresql added at c6532b

0 comments on commit 007121e

Please sign in to comment.