{"id":20728810,"url":"https://github.com/npwalker/pe_external_postgresql","last_synced_at":"2025-04-23T19:44:08.203Z","repository":{"id":23720014,"uuid":"27092918","full_name":"npwalker/pe_external_postgresql","owner":"npwalker","description":"A Puppet Module for Configuring an External Postgresql Node for Puppet Enterprise","archived":false,"fork":false,"pushed_at":"2017-09-27T02:11:09.000Z","size":27,"stargazers_count":4,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T06:39:12.306Z","etag":null,"topics":["pe-postgresql","puppet","puppet-enterprise","puppetdb"],"latest_commit_sha":null,"homepage":null,"language":"Pascal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/npwalker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-24T20:07:30.000Z","updated_at":"2018-08-23T20:26:40.000Z","dependencies_parsed_at":"2022-08-22T04:31:04.299Z","dependency_job_id":null,"html_url":"https://github.com/npwalker/pe_external_postgresql","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npwalker%2Fpe_external_postgresql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npwalker%2Fpe_external_postgresql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npwalker%2Fpe_external_postgresql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/npwalker%2Fpe_external_postgresql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/npwalker","download_url":"https://codeload.github.com/npwalker/pe_external_postgresql/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250501578,"owners_count":21441046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pe-postgresql","puppet","puppet-enterprise","puppetdb"],"created_at":"2024-11-17T04:40:04.845Z","updated_at":"2025-04-23T19:44:08.184Z","avatar_url":"https://github.com/npwalker.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"This Module is Deprecated\n-------------------------\n\nYou can install a PostgreSQL node with the PE installer starting in PE 2016.2.  As far as I see it there are not many reasons to install an OSS PostgreSQL server any longer when PE will take care of it for you.  \n\nHere's a link to the docs on how to do that: https://docs.puppet.com/pe/latest/install_separate_pe_postgres.html\n\nOverview\n--------\n\nThis puppet module will configure an external PostgreSQL node for your Puppet Enterprise infrastructure.\n\nModule Description\n------------------\n\nIt will do the following things:\n - Install postgresql 9.6\n - Install postgresql-contrib package\n - Create databases and users that are required by PE\n - Install the citext module on the rbac databse which is required by PE\n   - https://docs.puppetlabs.com/pe/latest/install_upgrading_notes.html#a-note-about-rbac-node-classifier-and-external-postgresql\n - Install the pgcrypto extension on the pe-puppetdb database and the pe-rbac\n\nExample Usage\n------------\n\nIn order to effectively use this module you will need to do the following in the context of installing PE.\n\n1. Install the PE agent on the node you want to make your external postgresql node\n - If you are installing a split installation you can install the puppet master node before installing this agent\n - If you are installing an all-in-one master you will need to install this agent and continue when it says it can't connect to the master\n2. Save something like the following to a file (maybe `/tmp/postgresql_setup.pp`) on your agent node but specify your own passwords\n -\n\n\t\t\tclass { 'pe_external_postgresql' :\n\t\t\t  postgres_root_password   =\u003e 'pass1',\n\t\t\t  puppetdb_db_password     =\u003e 'pass2',\n\t\t\t  classifier_db_password   =\u003e 'pass3',\n\t\t\t  rbac_db_password         =\u003e 'pass4',\n\t\t\t  activity_db_password     =\u003e 'pass5',\n\t\t\t  orchestrator_db_password =\u003e 'pass6',\n\t\t\t}\n\n\n3. `puppet module install npwalker-pe_external_postgresql`\n4. Run `puppet apply /tmp/postgresql_setup.pp` on the agent node to install postgresql and setup the databases.\n\n### Class: pe_external_postgresql\n\n#### `postgres_root_password`\nSets the password for the postgres user.\n\n#### `puppetdb_db_password`\nSets the password for the puppetdb user to connect to the puppetdb database\n\n#### `console_db_password`\nSets the password for the console user to connect to the console database\n\n#### `classifier_db_password`\nSets the password for the pe-classifier user to connect to the pe-classifier database\n\n#### `rbac_db_password`\nSets the password for the pe-rbac user to connect to the pe-rbac database\n\n#### `activity_db_password`\nSets the password for the pe-activity user to connect to the pe-activity database\n\n#### `orchestrator_db_password`\nSets the password for the pe-orchestrator user to connect to the pe-orchestrator database\n\n#### `postgresql_version`\nThe version of postgresql to install.  Defaults to 9.4.\n\n#### `use_pe_packages`\nIf set to `true`, PostgreSQL will be installed using the Puppet Enterprise\npackages and paths. Note that for this option to work, you must have the\npe-postgresql and pe-postgresql-contrib packages available in the configured\nmachine's package repositories. Typically agent machines will have access to\nthese packages through the `pe_repo` class. Defaults to `false`.\n\n### `console`\nWhether or not to manage the PE console databases. If set to `false`, the\n`pe-activity`, `pe-classifier`, and `pe-rbac` databases will\nnot be managed. This is useful when installing the Console and PuppetDB\ndatabases on separate servers. Defaults to `true`.\n\n### `puppetdb`\nWhether or not to manage the PE PuppetDB database. If set to `false`, the\n`pe-puppetdb` database will not be managed. This is useful when installing the\nConsole and PuppetDB databases on separate servers. Defaults to `true`.\n\n### `orchestrator`\nWhether or not to manage the PE Orchestrator database. If set to `false`, the\n`pe-orchestrator` database will not be managed. I would expect users to place\nthis database with the console database but want to leave the option to put it\nsomewhere else.  Defaults to `true`.\n\nPE3.x\n------\n\nIf you are using PE3.x please use version 1.1.1 of the module which is compatible\nwith older versions of PE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpwalker%2Fpe_external_postgresql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnpwalker%2Fpe_external_postgresql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnpwalker%2Fpe_external_postgresql/lists"}