You need to set it in globals. This is what we do:

        class { 'postgresql::globals':
            version      => $postgresql_version,
            datadir      => "${postgres_top}/postgresql/data",
        }

John

On Wed, 18 Dec 2019 at 01:49, Peter Krawetzky <[email protected]> wrote:

> I was looking through the documentation and couldn't find my answer.  I
> want to use both the PuppetDB and Postgresql supported modules to install
> and manage both.  I don't want to use the default database directory
> "/var/lib/postgresql/..." but want to specify my own.  What do I use to
> point the database directory to another physical location?  If a different
> location is specified, does the Postgresql module correctly configure
> systemctl stop/start/restart process?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/e01f26bb-b7cf-4d22-ab95-deb8336189b6%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/e01f26bb-b7cf-4d22-ab95-deb8336189b6%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
John Warburton
Ph: 0417 299 600
Email: [email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAAJLFxUYNkEGrn0SG5pZXTmkun-O2taP-MRXzq2_HLj6nn%3DfHQ%40mail.gmail.com.

Reply via email to