Merge "Apply apiserver parameters on restore and upgrade"

This commit is contained in:
Zuul 2022-01-12 15:15:09 +00:00 committed by Gerrit Code Review
commit 787e3ee5cf
1 changed files with 24 additions and 0 deletions

View File

@ -542,6 +542,30 @@
when: check_online.stdout == "online" and ceph_backend.rc == 0
- name: Apply kube-apiserver parameters
block:
- name: Update host config data
command: "/usr/bin/sysinv-puppet create-host-config"
- name: Update system config data
command: "/usr/bin/sysinv-puppet create-system-config"
- name: Create a list of apiserver parameters classes to pass to puppet
copy:
dest: "/tmp/apiserver.yml"
content: |
classes:
- platform::kubernetes::master::change_apiserver_parameters
- name: Apply puppet apiserver parameters
command: >
/usr/local/bin/puppet-manifest-apply.sh
{{ puppet_permdir }}/hieradata/
{{ derived_network_params.controller_0_address }}
controller runtime /tmp/apiserver.yml
environment:
LC_ALL: "en_US.UTF-8"
- name: Set restore in progress for sysinv
shell: "source /etc/platform/openrc; system restore-start"