This project is for fun so do not use it on productions directly. The goal is this project is to create almost fully automated imaginary production grade environment in the cloud. Main focus is to create mostly self-hosted high-available clusters. Currently I am using Scaleway services for it but I will use other cloud providers too.
python3 -m pip install --user pipx
python3 -m pipx ensurepath
dnf install dnf-plugins-core -y
dnf config-manager --add-repo https://rpm.releases.hashicorp.com/fedora/hashicorp.repo
dnf install terraform -y
pipx install ansible-lint
ln -s ../../pre-commit.sh .git/hooks/pre-commit
cd prod
terraform init
terraform workspace new scw-testing
terraform apply -var-file="scw-testing.tfvars"
ansible-run -i hosts.ini ../ansible/deploy.yml
[WARN] agent: [core]grpc: addrConn.createTransport failed to connect to {ip-addr:8300 hostname.scw-par2 <nil> 0 <nil>}. Err: connection error: desc = "transport: Error while dialing dial tcp ip-addr:0->ip-addr:8300: operation was canceled". Reconnecting..