aboutsummaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/playbooks/configure-topology-manager.yml
diff options
context:
space:
mode:
authorTodd Malsbary <todd.malsbary@intel.com>2021-06-17 17:10:38 -0700
committerTodd Malsbary <todd.malsbary@intel.com>2021-06-21 12:14:48 -0700
commit2cfc1f2d67103726140b32b5a5c555f7a66636be (patch)
tree268feaaf39d4d2cda0750790ec45d32e139f3ad0 /kud/deployment_infra/playbooks/configure-topology-manager.yml
parentdc925231a978d1ae4dce969cb4c386d4a1b0bb87 (diff)
Move topology-manager configuration to kubespray
The steps performed by the existing ansible playbook can be performed directly by kubespray. In addtion, fix and enable the topology-manager.sh test. Issue-ID: MULTICLOUD-1324 Signed-off-by: Todd Malsbary <todd.malsbary@intel.com> Change-Id: Iee2197c1fc3e35288796399cccff0d3ae0925a6c
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-topology-manager.yml')
-rw-r--r--kud/deployment_infra/playbooks/configure-topology-manager.yml66
1 files changed, 0 insertions, 66 deletions
diff --git a/kud/deployment_infra/playbooks/configure-topology-manager.yml b/kud/deployment_infra/playbooks/configure-topology-manager.yml
deleted file mode 100644
index 012bc8b0..00000000
--- a/kud/deployment_infra/playbooks/configure-topology-manager.yml
+++ /dev/null
@@ -1,66 +0,0 @@
----
-# SPDX-license-identifier: Apache-2.0
-##############################################################################
-# Copyright (c) 2020
-# All rights reserved. This program and the accompanying materials
-# are made available under the terms of the Apache License, Version 2.0
-# which accompanies this distribution, and is available at
-# http://www.apache.org/licenses/LICENSE-2.0
-##############################################################################
-
-- hosts: kube-node
- tasks:
- - name: Load kud variables
- include_vars:
- file: kud-vars.yml
-
- - name: creating kubelet config
- become: yes
- blockinfile:
- path: "{{ kubernetes_config_file }}"
- marker: "# {mark} OpenNESS configuration - General"
- create: yes
- block: |
- featureGates:
- TopologyManager: {{ False if topology_manager.policy == 'none' else True }}
- notify:
- - enable and restart kubelet
-
- - name: customize kubelet config - CPU Manager
- become: yes
- blockinfile:
- path: "{{ kubernetes_config_file }}"
- marker: "# {mark} OpenNESS configuration - CPU Manager"
- block: |
- cpuManagerPolicy: {{ cpu_manager.policy }}
- state: "{{ 'present' if cpu_manager.policy == 'static' else 'absent' }}"
- notify:
- - remove cpu manager checkpoint file
- - enable and restart kubelet
-
- - name: customize kubelet config - Topology Manager
- become: yes
- blockinfile:
- path: "{{ kubernetes_config_file }}"
- marker: "# {mark} OpenNESS configuration - Topology Manager"
- block: |
- topologyManagerPolicy: {{ topology_manager.policy }}
- state: "{{ 'absent' if topology_manager.policy == 'none' else 'present' }}"
- notify:
- - enable and restart kubelet
-
- handlers:
- - name: enable and restart kubelet
- become: yes
- systemd:
- name: kubelet
- daemon_reload: yes
- enabled: yes
- masked: no
- state: restarted
-
- - name: remove cpu manager checkpoint file
- become: yes
- file:
- path: "{{ cpu_manager.checkpoint_file }}"
- state: absent