From dd20f2f4a3a5f0bb7869d8381884450c13ef7cc2 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 3 Oct 2024 21:15:31 -0600 Subject: [PATCH] Add Servers & Workflows/Linux/Automation/Puppet/PuppetDB Deployment (Manual).md --- .../Puppet/PuppetDB Deployment (Manual).md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Servers & Workflows/Linux/Automation/Puppet/PuppetDB Deployment (Manual).md diff --git a/Servers & Workflows/Linux/Automation/Puppet/PuppetDB Deployment (Manual).md b/Servers & Workflows/Linux/Automation/Puppet/PuppetDB Deployment (Manual).md new file mode 100644 index 0000000..ce07ebb --- /dev/null +++ b/Servers & Workflows/Linux/Automation/Puppet/PuppetDB Deployment (Manual).md @@ -0,0 +1,27 @@ +### Install PuppetDB (Manual) +At this point, we will install PuppetDB, which will add extra reporting and management functionality for Puppet to the Puppet server. +``` sh +# Install PuppetDB +yum install -y puppetdb + +# Install PuppetDB Module +puppet module install puppetlabs-puppetdb +``` + +Now we need to configure a manifest file on the Puppet Server running PuppetDB, in this case, the same exact server that runs the Puppet Server itself. Create the following file if it does not already exist: +```json title="/etc/puppetlabs/code/environments/production/manifests/site.pp" +node 'lab-puppet-01.bunny-lab.io' { + # Include the puppetdb class with custom parameters + class { 'puppetdb': + listen_address => '0.0.0.0', # Allows access from all network interfaces + } + + # Configure the Puppet Server to use PuppetDB + include puppetdb::master::config +} +``` + +Finally, we want to apply the configuration changes we made: +``` sh +sudo puppet agent -t +``` \ No newline at end of file