Add OneLab Helm chart, Argo CD Application, and GitOps values for k3s
Made-with: Cursor
This commit is contained in:
27
resources/scripts/centos/install_ansible.sh
Normal file
27
resources/scripts/centos/install_ansible.sh
Normal file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo yum install dnf
|
||||
|
||||
# update the DNF package repository cache
|
||||
sudo dnf makecache
|
||||
|
||||
# To enable EPEL repository, install the epel-release package
|
||||
sudo dnf install epel-release -y
|
||||
|
||||
# update the DNF package repository cache again
|
||||
sudo dnf makecache
|
||||
|
||||
# Install Ansible
|
||||
sudo dnf install ansible -y
|
||||
|
||||
# Create the ansible log file
|
||||
sudo touch /var/log/ansible.log
|
||||
|
||||
# Provide permissions for ansible log file
|
||||
sudo chmod 666 /var/log/ansible.log
|
||||
|
||||
# Update Ansible hosts file for local connection
|
||||
sudo sed -i '$ a localhost ansible_connection=local' /etc/ansible/hosts
|
||||
|
||||
# Update Ansible configuration file with logs path
|
||||
sudo sed -i '13 a log_path = /var/log/ansible.log' /etc/ansible/ansible.cfg
|
||||
17
resources/scripts/centos/install_docker.sh
Normal file
17
resources/scripts/centos/install_docker.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Install the yum-utils package (which provides the yum-config-manager utility) and set up the stable repository
|
||||
|
||||
sudo yum install -y yum-utils
|
||||
sudo yum-config-manager \
|
||||
--add-repo \
|
||||
https://download.docker.com/linux/centos/docker-ce.repo
|
||||
|
||||
# Install Docker Engine
|
||||
sudo yum install docker-ce docker-ce-cli containerd.io -y
|
||||
|
||||
# Start Docker
|
||||
sudo systemctl start docker
|
||||
|
||||
# Enable Docker
|
||||
sudo systemctl enable docker
|
||||
Reference in New Issue
Block a user