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.
- Normally I would choose instance types (cpu, memory etc.) according to the workload but I am trying to keep the cost as minimum it could be. Most likely resources (cpu, memory etc.) are not in production grade.
- Some configurations cannot be set without estimating the workload and without having reasonable resource so some performans tweaks will not be considered in this.
- I will add some configurations for easy tweaking. It may seem meaningless to set but it should gain a meaning in highloads or different systems.
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..