Infrastructure and auto platform provisioning, POST /resources
{
// Terraform Resource reference (Can be anything following this format: /^[a-z]+([0-9a-z]+(?:-[0-9a-z]+)?)*$/ )
"ref": "wordpress-resource-infra",
// Domain
"domain": {
"zone": "domain.xyz", // OVH Domain Zone
"subdomain": "wordpress",
"fieldtype": "A", // A, CNAME etc.
"ttl": 3600,
"target": "x.x.x.x" // Target IP
},
"vm": {
"name": "wordpress-resource-vm",
"target_node": "proxmox-node", // Proxmox Node
"clone": "ubuntu-22.04-cloudinit-template", // Proxmox Cloud image template (Must exists)
"vmid": 0,
"memory": 4096,
"network": [
{
"bridge": "vmbr0"
}
]
},
"platform": {
"name": "wordpress"
}
}
-
You must have a Linux environment, preferably
Ubuntu
-
Make sure the following programs are installed on your computer:
-
You must have also Redis installed, Docs*
git remote add origin https://github.com/Icloudeng/platform-installer.git
cd platform-installer/
cp .env.example .env
The following env variables are required
ADMIN_SYSTEM_EMAIL=
# Nginx Proxy Manager Interface
NGINX_PM_URL=
NGINX_PM_EMAIL=
NGINX_PM_PASSWORD=
# Redis
REDIS_URL=
# Proxmox
PROXMOX_API_URL=
PROXMOX_USERNAME=
PROXMOX_PASSWORD=
Check all variables here: .env.example
- Create variables file
touch infrastructure/terraform/variables.tfvars
-
Please check all required variables in
infrastructure/terraform/variables.tf
-
Fill the variables inside
infrastructure/terraform/variables.tfvars
using the following format:
ovh_endpoint = "**"
ovh_application_key = "**"
ovh_application_secret = "**"
ovh_consumer_key = "**"
# Proxmox
proxmox_api_url = "**"
proxmox_api_token_id = "**"
proxmox_api_token_secret = "**"
Check all supported platforms here: infrastructure/provisioner/scripts/platforms
...
...