Permalink
Browse files

[cm] Adds database management for scm

  • Loading branch information...
1 parent 2997ea3 commit 395d05c0de0855d51376671cf201d5231db44393 @ashrithr ashrithr committed Mar 19, 2014
Showing with 16 additions and 0 deletions.
  1. +16 −0 cm/manifests/database.pp
View
@@ -0,0 +1,16 @@
+# Creates scm database in postgres
+class cm::database {
+ postgres::server::db { $cm::params::scm_database_name:
+ user => $scm_username,
+ password => $scm_password
+ }
+
+ postgres::server::pg_hba_rule { 'allow scm user':
+ description => 'Open up postgresql for access to scm database',
+ type => 'host',
+ database => $cm::params::scm_database_name,
+ user => $cm::params::scm_username,
+ address => '127.0.0.1/32',
+ auth_method => 'trust'
+ }
+}

0 comments on commit 395d05c

Please sign in to comment.