From 91b39c8d0c0f4e89a34462d90f11c06588a1cd90 Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Thu, 14 Nov 2024 04:14:38 -0700 Subject: [PATCH] Update Servers & Workflows/Linux/Automation/Puppet/Puppet Bolt.md --- .../Linux/Automation/Puppet/Puppet Bolt.md | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Servers & Workflows/Linux/Automation/Puppet/Puppet Bolt.md b/Servers & Workflows/Linux/Automation/Puppet/Puppet Bolt.md index 4b0e6a4..56616af 100644 --- a/Servers & Workflows/Linux/Automation/Puppet/Puppet Bolt.md +++ b/Servers & Workflows/Linux/Automation/Puppet/Puppet Bolt.md @@ -3,4 +3,26 @@ !!! note "Assumptions" This deployment assumes you are deploying Puppet bolt onto the same server as Puppet. If you have not already, follow the [Puppet Deployment](https://docs.bunny-lab.io/Servers%20%26%20Workflows/Linux/Automation/Puppet/Puppet/) documentation to do so before continuing with the Puppet Bolt deployment. - \ No newline at end of file +## Initial Preparation +``` sh +# Install Bolt Repository +sudo rpm -Uvh https://yum.puppet.com/puppet-tools-release-el-9.noarch.rpm +sudo yum install -y puppet-bolt + +# Verify Installation +bolt --version + +# Clone Puppet Bolt Repository into Bolt Directory +sudo git clone https://git.bunny-lab.io/GitOps/Puppet-Bolt.git /etc/puppetlabs/bolt +sudo chown -R $(whoami):$(whoami) /etc/puppetlabs/bolt + +# Initialize Bolt Project +cd /etc/puppetlabs/bolt +bolt project init puppet_bolt +``` + +## Validate Bolt Project is Initialized +If the command below is successful, you will see the custom `bolt::enroll_agent` plan listed. +``` sh +bolt plan show --project /etc/puppetlabs/bolt +```