Merge branch 'master' of git+ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa...
authorMartin Zobel-Helas <zobel@debian.org>
Sun, 19 Mar 2017 11:32:15 +0000 (12:32 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sun, 19 Mar 2017 11:32:15 +0000 (12:32 +0100)
* 'master' of git+ssh://puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet:
  Fix ensure value for postgres
  Update postgres fact
  Use absolute includes, not relative ones

modules/debian_org/lib/facter/software.rb
modules/postgres/manifests/init.pp
modules/roles/manifests/init.pp

index 5c07912..47fa46a 100644 (file)
@@ -46,12 +46,9 @@ Facter.add("postfix") do
 end
 Facter.add("postgres") do
        setcode do
-               pg = (FileTest.exist?("/usr/lib/postgresql/8.1/bin/postgres") or
-               FileTest.exist?("/usr/lib/postgresql/8.3/bin/postgres") or
-               FileTest.exist?("/usr/lib/postgresql/8.4/bin/postgres") or
-               FileTest.exist?("/usr/lib/postgresql/9.0/bin/postgres") or
-               FileTest.exist?("/usr/lib/postgresql/9.1/bin/postgres") or
-               FileTest.exist?("/usr/lib/postgresql/9.2/bin/postgres"))
+               pg = (FileTest.exist?("/usr/lib/postgresql/9.1/bin/postgres") or
+               FileTest.exist?("/usr/lib/postgresql/9.4/bin/postgres") or
+               FileTest.exist?("/usr/lib/postgresql/9.6/bin/postgres"))
                if pg
                        true
                else
index af2f206..534e21f 100644 (file)
@@ -1,6 +1,6 @@
 class postgres {
        $ensure = ($::postgres) ? {
-               true    => 'ensure',
+               true    => 'present',
                default => 'absent'
        }
 
index 88397c0..7a733e6 100644 (file)
@@ -257,21 +257,21 @@ class roles {
        }
 
        if has_role('search_backend') {
-               include search_backend
+               include roles::search_backend
        }
        if has_role('search_frontend') {
-               include search_frontend
+               include roles::search_frontend
        }
 
        if has_role('dgit_browse') {
-               include dgit_browse
+               include roles::dgit_browse
        }
        if has_role('dgit_git') {
-               include dgit_git
+               include roles::dgit_git
        }
 
        if $::hostname in [lw01, lw02, lw03, lw04] {
-               include snapshot
+               include roles::snapshot
        }
 
        if has_role('veyepar.debian.org') {