Update Servers & Workflows/Linux/Automation/Puppet/Gitea Implementation.md

This commit is contained in:
2024-10-02 22:51:58 -06:00
parent b80f7f3673
commit c21bb9557f

View File

@ -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'
```