Files
wireguard-lab-overlay/create_all_files.sh
2026-02-21 16:54:18 +01:00

40 lines
857 B
Bash
Executable File

#!/bin/bash
# Script to create all remaining files
BASE_DIR="/home/claude/wireguard-lab-overlay"
# Create all operational playbooks
cat > "$BASE_DIR/ansible/playbooks/site.yml" << 'EOF'
---
- name: Deploy WireGuard Lab Overlay Network
hosts: lab_gateways
become: yes
pre_tasks:
- name: Load Terraform outputs
set_fact:
tf_config: "{{ lookup('file', '../../terraform/outputs.json') | from_json }}"
delegate_to: localhost
run_once: yes
- name: Extract gateway-specific config
set_fact:
gateway_config: "{{ tf_config.gateway_config.value[inventory_hostname] }}"
roles:
- common
- wireguard
- vxlan
- bridge
- dnsmasq
- monitoring
- name: Configure Monitoring Hub
hosts: monitoring_hub
become: yes
roles:
- monitoring_hub
EOF
# Continue with more files...