This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
single_node_network_edge.yml
150 lines (129 loc) · 5.29 KB
/
single_node_network_edge.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) 2020 Intel Corporation
---
# Playbook for single node Network Edge cluster deployment
- hosts: edgenode_group
pre_tasks:
- name: set node name
set_fact: node_name={{ ansible_nodename | lower }}
- name: create helper variable
set_fact:
single_node_deployment: true
- name: check deployment settings
include_tasks: ./tasks/settings_check_ne.yml
- name: check deployment settings for single node deployment
include_tasks: ./tasks/settings_check_ne_single_node.yml
- name: print deployment settings
include_tasks: ./tasks/print_vars.yml
roles:
- role: infrastructure/os_setup
- role: infrastructure/time_setup_ntp
when: ntp_enable | default(False)
- role: infrastructure/custom_kernel
when: not (kernel_skip | default(False))
- role: infrastructure/grub
- role: infrastructure/configure_tuned
when: not (tuned_skip | default(False))
- role: infrastructure/conditional_reboot
- role: infrastructure/e810_driver_update
when: e810_driver_enable | default(False)
- role: infrastructure/git_repo
- role: infrastructure/golang
- role: infrastructure/docker
- role: kubernetes/opae_fpga/node
when: ne_opae_fpga_enable | default(False)
- role: telemetry/collectd/node
when: "telemetry_collectd_enable | default(True)"
- hosts: controller_group
pre_tasks:
- name: set node name
set_fact: node_name={{ ansible_nodename | lower }}
- name: create helper variable
set_fact:
single_node_deployment: true
- name: update controller repo path
set_fact:
_git_repo_dest: "{{ openness_dir }}/edgeservices/edgecontroller"
roles:
- role: infrastructure/os_setup
- role: kubernetes/controlplane
- role: kubernetes/helm
- role: kubernetes/harbor_registry/controlplane
- role: kubernetes/cni
- role: kubernetes/device_plugins
when: k8s_device_plugins_enable | default(False)
- role: kubernetes/dashboard
when: kubernetes_dashboard_enable | default(False)
- role: applications/kafka
when: eaa_enable | default(True)
- role: applications/openness/controlplane
when: openness_enable | default(True)
- role: applications/emco/controlplane
when: emco_enable | default(False)
- role: kubernetes/qat_dev_plugin/controller
when: qat_device_plugin_enable | default(False)
- role: telemetry/certs
when: >
telemetry_prometheus_enable | default(True) or
telemetry_opentelemetry_enable | default(True) or
telemetry_collectd_enable | default(True) or
telemetry_tas_enable | default(True) or
telemetry_cadvisor_enable | default(True) or
telemetry_grafana_enable | default(True) or
telemetry_pcm_enable | default(False)
- role: telemetry/prometheus
when: "telemetry_prometheus_enable | default(True)"
- role: telemetry/opentelemetry/controlplane
when: "telemetry_opentelemetry_enable | default(True)"
- role: telemetry/collectd/controlplane
when: "telemetry_collectd_enable | default(True)"
- role: telemetry/tas
when: "telemetry_tas_enable | default(True)"
# # cAdvisor might cause platform instabilities when used with single node deployment, use at your own risk
# - role: telemetry/cadvisor/controlplane
# when: "telemetry_cadvisor_enable | default(True)"
- role: telemetry/grafana
when: "telemetry_grafana_enable | default(True)"
- role: telemetry/pcm/controlplane
when: "telemetry_pcm_enable | default(False)"
- role: kubernetes/bb_config
when: fpga_sriov_userspace_enable | default(False) or acc100_sriov_userspace_enable | default(False)
- role: kubernetes/kubevirt/controlplane
when: kubevirt_enable | default(True)
- role: kubernetes/opae_fpga/controlplane
when: ne_opae_fpga_enable | default(False)
- role: kubernetes/nfd
when: ne_nfd_enable | default(True)
- role: kubernetes/biosfw/controlplane
when: ne_biosfw_enable | default(False)
- role: kubernetes/cmk/controlplane
when: ne_cmk_enable | default(False)
- role: kubernetes/hddl/network_edge/controlplane
when: ne_hddl_enable | default(False)
- role: kubernetes/istio
when: ne_istio_enable | default(False)
- role: kubernetes/rmd/controlplane
when: rmd_operator_enable | default(False)
- hosts: edgenode_group
pre_tasks:
- name: update edgenode repo path
set_fact:
_git_repo_dest: "{{ openness_dir }}/edgeservices"
roles:
# cAdvisor might cause platform instabilities when used with single node deployment, use at your own risk
# - role: telemetry/cadvisor/node
- role: applications/openness/node
- role: kubernetes/kubevirt/node
when: kubevirt_enable | default(True)
- role: kubernetes/biosfw/node
when: ne_biosfw_enable | default(False)
- role: kubernetes/cmk/node
when: ne_cmk_enable | default(False)
- role: kubernetes/hddl/network_edge/node
when: ne_hddl_enable | default(False)
- role: infrastructure/ptp/node
when: ptp_sync_enable | default(False)
- role: kubernetes/qat_dev_plugin/node
when: qat_device_plugin_enable | default(False)
- role: kubernetes/rmd/node
when: rmd_operator_enable | default(False)