Skip to content

Commit

Permalink
I think i had switched the base and config classes before.
Browse files Browse the repository at this point in the history
  • Loading branch information
efroese-figma committed May 23, 2012
1 parent a2d3a52 commit 607c3d3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions manifests/base.pp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
class postgres::base {

Class['Postgres::Repos'] -> Class['Postgres::Base']
Class['Postgres::Params'] -> Class['Postgres::Base']

class { 'postgres::params': }

package { 'postgresql91': ensure => installed }

}
8 changes: 2 additions & 6 deletions manifests/client.pp
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
class postgres::base {
class postgres::client {

Class['Postgres::Repos'] -> Class['Postgres::Base']
Class['Postgres::Base'] -> Class['Postgres::Client']

if !defined(Class['Postgres::Base']) {
class { 'postgres::base': }
}

if !defined(Class['Postgres::Params']) {
class { 'postgres::params': }
}

}
2 changes: 2 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
$hba_conf_template = ''
){

Class['Postgres::Base'] -> Class['Postgres']

if !defined(Class['Postgres::Base']) {
class { 'postgres::base': }
}
Expand Down

0 comments on commit 607c3d3

Please sign in to comment.