Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update parameter for puppetdb_database_host #35

Merged
merged 2 commits into from Jan 2, 2020

Conversation

npwalker
Copy link
Contributor

Previously, we laid down a parameter from a lower level class instead of the top level parameter from puppet_enterprise. The PE installer does not recognize the lower level class parameter but does recognize the puppet_enterprise parameter.

@npwalker
Copy link
Contributor Author

This line in the puppetdb database host pe.conf should also be updated although I'm not clear if the installer will fully understand that.

https://github.com/puppetlabs/puppetlabs-peadm/blob/master/installer/puppetdb-database/pe.conf#L19

The pe.conf between the master and the puppetdb database host should be the same and if they can't be then I would consider it a bug in PE.

@npwalker npwalker changed the title Update parameter for puppetdb_databse_host Update parameter for puppetdb_database_host Dec 16, 2019
@reidmv
Copy link
Contributor

reidmv commented Dec 27, 2019

The pe.conf between the master and the puppetdb database host should be the same and if they can't be then I would consider it a bug in PE.

I believe the problem here is that the bit that tells the installer to set up PostgreSQL is only puppet_enterprise::database_host. At present we're running the installer script on the host that'll serve the PuppetDB postgreSQL database.

We should probably just convert to staged bootstrapping for simplicity. 1) Set up a standard master, 2) use agent-installer and classification to set up a node to act as a postgresql host for PuppetDB, 3) reconfigure the master to use the new PuppetDB postgresql node, 4) clean up the PuppetDB database that was briefly used on the master to avoid future confusion.

@npwalker
Copy link
Contributor Author

npwalker commented Jan 2, 2020

The installer will install postgresql on any of the puppet_enterprise::*_database_host parameters since 2018.1.

see https://github.com/puppetlabs/puppet-enterprise-modules/blob/irving/modules/pe_install/manifests/init.pp#L60-L63

I don't think there's any purpose to removing any databases from postgresql as the puppet code will add them back in.

npwalker and others added 2 commits January 2, 2020 14:10
Previously, we laid down a parameter from a lower level class instead of the top level parameter from puppet_enterprise.  The PE installer does not recognize the lower level class parameter but does recognize the puppet_enterprise parameter.
And clean up old, unused content.
@reidmv
Copy link
Contributor

reidmv commented Jan 2, 2020

Oh, cool! Okay. I'll merge this for now. Can revert later if it causes problems.

@reidmv reidmv merged commit fcd04d0 into puppetlabs:master Jan 2, 2020
@reidmv
Copy link
Contributor

reidmv commented Jan 7, 2020

Needed to partially revert. See #36.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants