Sha256: bcb5611436bbd973654df3068e330c4925f848714c5edfedaab91c13ff6a7b58

Contents?: true

Size: 412 Bytes

Versions: 6

Compression:

Stored size: 412 Bytes

Contents

define postgresql::db (
    $password,
    $owner = $name,
    $encoding = 'UTF8',
    $locale = 'en_US.UTF-8',
) {

    pg_user {$owner:
        ensure      => present,
        password    => $password,
    }

    pg_database {$name:
        ensure      => present,
        owner       => $owner,
        require     => Pg_user[$owner],
        encoding    => $encoding,
        locale      => $locale,
    }
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
safeguard-devise-0.0.7 puppet/modules/postgresql/manifests/db.pp
safeguard-devise-0.0.6 puppet/modules/postgresql/manifests/db.pp
safeguard-devise-0.0.5 puppet/modules/postgresql/manifests/db.pp
safeguard-devise-0.0.4 puppet/modules/postgresql/manifests/db.pp
safeguard-devise-0.0.3 puppet/modules/postgresql/manifests/db.pp
safeguard-devise-0.0.2 puppet/modules/postgresql/manifests/db.pp