@@ -8,26 +8,47 @@ This folder provides an **Ansible-based automation framework** to set up a multi
Before running the playbooks, ensure:
1.You have **Ansible** installed on your control machine.
2.You have **SSH access** to all remote nodes (master & workers, if applicable).
3. Both repositories are cloned as siblings in the same parent directory:
1.**Ubuntu OS** (required by the setup script)
2.**Python 3** with `python3-venv` and `python3-pip` packages
3. Both repositories cloned as siblings:
-`etsi-mec-sandbox` (backend)
-`etsi-mec-sandbox-frontend` (frontend)
4.You have a**GitHub OAuth application** configured (Client ID & Secret for MEC Sandbox authentication).
4.A**GitHub OAuth application** configured (Client ID & Secret)
> **Note:** If your playbooks are running on `localhost` (control machine itself), **SSH is not required**. SSH setup is only necessary for remote worker or master nodes.
> **Note:** SSH setup is only required for remote worker nodes, not for localhost deployments.
For remote worker nodes, follow these steps:
---
## Environment Setup (Required)
Before running any playbooks, set up the Ansible environment:
> `-K` prompts for sudo password if required. You can also export `ANSIBLE_BECOME_PASSWORD` or configure passwordless sudo.
## Variables
### Kubernetes & Container Runtime
*`kubernetes_version`: `"v1.35"`
*`pod_network_cidr`: `"92.68.0.0/16"`
*`service_cidr`: `"10.96.0.0/12"`
*`calico_version`: `"v3.30.0"`
### Development Environment
*`install_dev_env`: `true` → set to `false` to disable Node/Go tooling
*`go_version`: `"1.17"`
*`node_version`: `"12.19.0"`
### MEC Sandbox
*`install_mec_sandbox`: `true` → set to `false` to skip MEC Sandbox deployment
*`mec_sandbox_dir`: Path to the etsi-mec-sandbox repository
*`mec_frontend_dir`: Path to the etsi-mec-sandbox-frontend repository
## Tags
You can run just parts of the setup with `--tags` or skip parts with `--skip-tags`. (The roles here are intentionally simple and do not define custom tags; feel free to add them if you want finer control.)