c7e72942a9
The extraction of the monolithic hyperkube binary from its container image to be used as kubelet was last relevant in Kubernetes 1.16. Since then, the hyperkube image has been deprecated, the structure of the image has been changed, and it has ultimately been eliminated in Kubernetes 1.19. This change cleans up promenade accordingly. Reverts the following commits: *886007b
New CLI option to extract hyperkube *32a6c15
hyperkube image in promenade init *955deed
New source for hyperkube binary definition Change-Id: Ib62ecdf1af13abe8202a4ba4f86c39b9042ed13f
82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- hosts: primary
|
|
vars:
|
|
env:
|
|
HTTP_PROXY: ""
|
|
HTTPS_PROXY: ""
|
|
NO_PROXY: ""
|
|
DISTRO: "{{ distro }}"
|
|
become: true
|
|
tasks:
|
|
- name: Install docker
|
|
command: apt-get install docker.io resolvconf -y
|
|
|
|
- name: Setup Apparmor
|
|
shell: |
|
|
set -xe;
|
|
./tools/deployment/apparmor/001-setup-apparmor-profiles.sh
|
|
args:
|
|
chdir: "{{ zuul.projects['opendev.org/openstack/openstack-helm-infra'].src_dir }}"
|
|
executable: /bin/bash
|
|
|
|
- name: Generate configuration files
|
|
shell: |
|
|
set -xe;
|
|
./tools/dev-build.sh examples/gate generate-certs replace {{ ansible_default_ipv4.interface }}
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
executable: /bin/bash
|
|
environment: "{{env}}"
|
|
|
|
- name: Generate certificate files
|
|
shell: |
|
|
set -xe;
|
|
./tools/dev-build.sh generate-certs
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
executable: /bin/bash
|
|
environment: "{{env}}"
|
|
|
|
- name: Copy build files and generated certificates to build-all
|
|
command: "mv {{ zuul.project.src_dir }}/build {{ zuul.project.src_dir }}/build-all"
|
|
|
|
- name: Build genesis script
|
|
shell: |
|
|
set -xe;
|
|
./tools/dev-build.sh build-all
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
executable: /bin/bash
|
|
environment: "{{env}}"
|
|
|
|
- name: Deploying genesis
|
|
shell: |
|
|
set -xe;
|
|
./build/genesis.sh
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
executable: /bin/bash
|
|
|
|
- name: Validating genesis
|
|
shell: |
|
|
set -xe;
|
|
./build/validate-genesis.sh
|
|
args:
|
|
chdir: "{{ zuul.project.src_dir }}"
|
|
executable: /bin/bash
|
|
register: result
|
|
retries: 3
|
|
delay: 10
|
|
until: result.rc == 0
|