Skip to content
This repository was archived by the owner on Jun 5, 2024. It is now read-only.

Commit 1848a35

Browse files
committed
Smart Edge Open 21.12 Release
1 parent 17d8dff commit 1848a35

File tree

419 files changed

+9730
-3309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

419 files changed

+9730
-3309
lines changed

.ansible-lint

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ skip_list:
77
- 'indentation'
88

99
exclude_paths:
10-
- roles/telemetry/certs/files/
1110
- roles/telemetry/collectd/controlplane/files/
1211
- roles/telemetry/collectd/node/files/
1312
- roles/telemetry/prometheus/files/
14-
- roles/telemetry/tas/files/
1513
- roles/telemetry/statsd-exporter/files
16-
- roles/telemetry/opentelemetry/controlplane/charts
1714
- roles/kubernetes/dashboard/files
1815
- roles/nfd/files/
1916
- roles/bb_config/charts

action_plugins/yum.py

Lines changed: 0 additions & 100 deletions
This file was deleted.

ansible.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ stdout_callback = debug
99
roles_path = ./roles:./roles/baseline_ansible
1010
timeout = 60
1111
executable = /bin/bash
12+
action_plugins=./roles/baseline_ansible/action_plugins
1213

1314
[connection]
1415
pipelining = True

dek_flash.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
3+
# SPDX-License-Identifier: Apache-2.0
4+
# Copyright (c) 2021 Intel Corporation
5+
6+
""" Flash Smart Edge Open Developer Experience Kits """
7+
8+
import os
9+
import sys
10+
11+
if __name__ == "__main__":
12+
sys.path.insert(
13+
1, os.path.join(os.path.dirname(os.path.realpath(__file__)), "scripts", "deploy_esp"))
14+
import flash_usb # pylint: disable=import-error
15+
flash_usb.run_main(None, "Developer Experience Kits")

deploy.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def handle_cluster_inventory_dir(cluster_inventory_path, group_vars_path, host_v
187187
create_symlinks_for_inventory(DEFAULT_HOST_VARS_PATH, host_vars_path)
188188

189189

190-
def run_deployment(inventory, cleanup=False):
190+
def run_deployment(inventory):
191191
"""Deploys Smart Edge with given settings, returns Popen object"""
192192
inventory_dir = os.path.join(ALT_INVENTORIES_PATH, inventory.cluster_name)
193193
inventory_location = inventory.dump_to_yaml(inventory_dir)
@@ -197,13 +197,10 @@ def run_deployment(inventory, cleanup=False):
197197

198198
handle_deployment_type(inventory.deployment, group_vars_path)
199199

200-
if cleanup:
201-
playbook = "dev_playbook.yml"
200+
if inventory.is_single_node:
201+
playbook = "single_node_network_edge.yml"
202202
else:
203-
if inventory.is_single_node:
204-
playbook = "single_node_network_edge.yml"
205-
else:
206-
playbook = "network_edge.yml"
203+
playbook = "network_edge.yml"
207204

208205
playbook = os.path.join(SCRIPT_PARENT_DIR, playbook)
209206

@@ -363,8 +360,6 @@ def parse_arguments():
363360
description=script_description, formatter_class=argparse.RawTextHelpFormatter)
364361
parser.add_argument("-f", "--any-errors-fatal", dest="any_errors_fatal", action="store_true",
365362
help="Terminate all running actions when any of them fail")
366-
parser.add_argument("-c", "--clean", dest="clean", action="store_true",
367-
help="Run cleanup scripts on clusters")
368363
return parser.parse_args()
369364

370365

@@ -397,7 +392,7 @@ def main(args):
397392

398393
prepare_alt_dir_layout()
399394
for inventory in inventory_handler.get_inventories:
400-
deploy_wrapper = run_deployment(inventory, args.clean)
395+
deploy_wrapper = run_deployment(inventory)
401396
deployment_wrappers.append(deploy_wrapper)
402397
time.sleep(DEPLOYMENT_INTERVAL)
403398

deploy.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
#This script installs all dependencies needed to run the Smart Edge deploy on dev machine.
66

7+
SCRIPT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P )
8+
cd "$SCRIPT_PATH" || exit
9+
710
if [ -f /etc/os-release ]; then
811
# shellcheck disable=SC1091
912
. /etc/os-release
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2021 Intel Corporation
3+
4+
## SR-IOV Network Operator
5+
sriov_network_operator_enable: false
6+
7+
## SR-IOV Network Operator configuration
8+
sriov_network_operator_configure_enable: false
9+
10+
# Grafana
11+
telemetry_grafana_enable: false
12+
13+
# Prometheus
14+
telemetry_prometheus_enable: false
15+
16+
# Prometheus-statsd-exporter
17+
telemetry_statsd_exporter_enable: false
18+
19+
# Collectd
20+
telemetry_collectd_enable: false
21+
22+
# CAdvisor
23+
telemetry_cadvisor_enable: false
24+
25+
# Disable Harbor Registry
26+
harbor_registry_enable: false
27+
28+
# Disable Network Edge Node Feature Discovery (NFD)
29+
ne_nfd_enable: false
30+
31+
e810_driver_enable: false
32+
33+
# Disable SGX
34+
sgx_enabled: false
35+
36+
# Enable isecl controller instalation
37+
platform_attestation_controller: true
38+
39+
# Disable installing isecl attestation components for nodes
40+
platform_attestation_node: false
41+
42+
# List of possible host names for TA. Coma separated list with possible wildcards: *.example.com,192.168.1.*
43+
isecl_ta_san_list: ""
44+
45+
# Enable PCCS deployment
46+
pccs_enable: true
47+
48+
# Disable CPU reservation for kubelet
49+
cpu: {}

0 commit comments

Comments
 (0)