Puppetdb and postgresql module: How to manage Postgresql but NOT manage Postgresql REPO using Hiera?

33 views
Skip to first unread message

Devminded

unread,
Jun 12, 2020, 11:40:30 AM6/12/20
to Puppet Users
Hi.

I am trying to disable the managing of the Postgresql repo using Hiera when using the puppetlabs/postgresql module. I have tried every Hiera combination I can think of (from reading the docs/code) but nothing works.
  • puppetdb::database::postgresql::manage_package_repo: false
  • puppetdb::globals::manage_package_repo: false
  • postgresql::globals::manage_package_repo: false
It still adds the /etc/apt/sources.list.d/apt.postgresql.org.list which won't work since we are using our own Aptly mirror and servers cannot directly communicate with the internet, and so the apt update fails and the entire puppet agent run fails with it.

How do I disable the management of /etc/apt/sources.list.d/apt.postgresql.org.list using Hiera?

System:
  • OS: Ubuntu 16.04 and 20.04
  • puppetserver version: 6.12.0
  • puppet-version: 6.16.0
  • mod 'puppetlabs/postgresql', '6.5.0'
  • mod 'puppetlabs/puppetdb', '7.4.0'
  • mod 'puppetlabs/stdlib', '6.3.0'


Martin Alfke

unread,
Jun 13, 2020, 10:43:50 AM6/13/20
to Puppet Users

postgresql::globals::manage_package_repo: false
postgresql::globals::version: '9.6',
> --
> 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 puppet-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/4d58c1ea-0652-474f-bc50-c0c150c0eb00o%40googlegroups.com.

Devminded

unread,
Jul 3, 2020, 4:06:58 PM7/3/20
to Puppet Users
Hi Martin.

I ended up with wrapping everything in my own profile classes and controlling it from there since I need to setup certs, auth, etc. anyway.

Thanks.

Den lördag 13 juni 2020 kl. 16:43:50 UTC+2 skrev Martin Alfke:

postgresql::globals::manage_package_repo: false
postgresql::globals::version: '9.6',

> On 12. Jun 2020, at 17:40, Devminded <d.d.s...@gmail.com> wrote:
>
> Hi.
>
> I am trying to disable the managing of the Postgresql repo using Hiera when using the puppetlabs/postgresql module. I have tried every Hiera combination I can think of (from reading the docs/code) but nothing works.
>         • puppetdb::database::postgresql::manage_package_repo: false
>         • puppetdb::globals::manage_package_repo: false
>         • postgresql::globals::manage_package_repo: false
> It still adds the /etc/apt/sources.list.d/apt.postgresql.org.list which won't work since we are using our own Aptly mirror and servers cannot directly communicate with the internet, and so the apt update fails and the entire puppet agent run fails with it.
>
> How do I disable the management of /etc/apt/sources.list.d/apt.postgresql.org.list using Hiera?
>
> System:
>         • OS: Ubuntu 16.04 and 20.04
>         • puppetserver version: 6.12.0
>         • puppet-version: 6.16.0
>         • mod 'puppetlabs/postgresql', '6.5.0'
>         • mod 'puppetlabs/puppetdb', '7.4.0'
>         • mod 'puppetlabs/stdlib', '6.3.0'
>
>
>
> --
> 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 puppet...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages