From c21bb9557f105430460817e838630e65da82b22e Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Wed, 2 Oct 2024 22:51:58 -0600 Subject: [PATCH] Update Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md --- .../Automation/Puppet/Gitea Implementation.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md b/Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md index deb6677..8c32986 100644 --- a/Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md +++ b/Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md @@ -41,3 +41,25 @@ sudo mkdir -p /var/cache/r10k sudo chown -R puppet:puppet /var/cache/r10k ``` +## Configure Gitea +At this point, we need to set up the branches and folder structure of the Puppet repository on Gitea. +``` sh +# Clone Repository (Provide Credentials and App Token for the Password to the Repository) +sudo yum install -y git +cd /tmp +git clone https://git.bunny-lab.io/GitOps/Puppet.git +cd Puppet +git checkout -b production +git push -u origin production +git checkout -b development +git push -u origin development +nano Puppetfile +``` + +```yaml title="/tmp/Puppet/PuppetFile" +# Puppetfile +forge 'https://forge.puppet.com' + +# Modules from Puppet Forge +mod 'puppetlabs-stdlib', '>= 6.0.0 < 9.0.0' +```