-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup-edge-add-ons.yaml
52 lines (46 loc) · 1.42 KB
/
setup-edge-add-ons.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Author: Serena Yeoh
#
# Disclaimer:
# This playbook was written based on my self-learning and may not follow certain
# best practices or work properly in your environment. Use it at your own risk.
#
# Configure Edge Servers
- name: Create Edge Servers
hosts: edge_servers
become_user: "{{ kube.user }}"
gather_facts: yes
vars:
fact_active_hosts: ["{{ inventory_hostname }}"]
roles:
- role: kubernetes/add-on
add_ons:
- name: cert-manager
- name: ingress
- name: dashboard
- name: monitoring # Nice to have
- name: devops/argocd
- name: rabbitmq
vars:
rabbitmq:
replicas: 1 # Edge only runs 1 instance
install:
topology: no
- name: metallb # required for MSSQL Server
vars:
metallb:
addresses: [ 192.168.0.240-192.168.0.250 ]
- name: database/mssql
vars:
mssql:
version: 2022-latest
edition: Developer
sa_password: p@ssw0rd
service_type: LoadBalancer
storage_size: 8Gi
# Create checkpoints for safety reasons. You can delete the checkpoints later.
post_tasks:
- name: Checkpoint VM
ansible.builtin.import_tasks: ./tasks/task-checkpoint-vm.yaml
vars:
checkpoint_name: "Add-ons installed."
when: vm_checkpoint|bool