c12s-kubespray/roles/bootstrap-os
spaced 9c3b573f8e
Cleanup fedora coreos with crio container (#5887)
* fix upgrade of crio on fcos
- update documents

* install conntrack required by kube-proxy
- like commit 48c41bcbe7

* enable fedora modular repo for crio

* allow to override crio configuration
- set cgroup manager same to kubelet_cgroup_driver if defined
- path of seccomp_profile depends on distribution

* allow to override crio configuration
- fix path for ubuntu

* allow to override crio configuration
- fix cni path for fcos
2020-04-10 23:51:47 -07:00
..
defaults Cleanup fedora coreos with crio container (#5887) 2020-04-10 23:51:47 -07:00
files Python bootstrap: upgrade pypy to 3.6-7.2.0. (#5511) 2020-03-14 06:32:35 -07:00
molecule/default Fix idempotence issue in bootstrap-os (#5916) 2020-04-09 03:31:44 -07:00
tasks Fix idempotence issue in bootstrap-os (#5916) 2020-04-09 03:31:44 -07:00
README.md Add support for http(s)_proxy to CoreOS, Fedora and OpenSUSE (#4669) 2019-05-02 12:28:22 -07:00

bootstrap-os

Bootstrap an Ansible host to be able to run Ansible modules.

This role will:

  • configure the package manager (if applicable) to be able to fetch packages
  • install Python
  • install the necessary packages to use Ansible's package manager modules
  • set the hostname of the host to {{ inventory_hostname }} when requested

Requirements

A host running an operating system that is supported by Kubespray. See https://github.com/kubernetes-sigs/kubespray#supported-linux-distributions for a current list.

SSH access to the host.

Role Variables

Variables are listed with their default values, if applicable.

General variables

  • http_proxy/https_proxy The role will configure the package manager (if applicable) to download packages via a proxy.

  • override_system_hostname: true The role will set the hostname of the machine to the name it has according to Ansible's inventory (the variable {{ inventory_hostname }}).

Per distribution variables

CoreOS

  • coreos_locksmithd_disable: false Whether locksmithd (responsible for rolling restarts) should be disabled or be left alone.

CentOS/RHEL

  • centos_fastestmirror_enabled: false Whether the fastestmirror yum plugin should be enabled.

Dependencies

The kubespray-defaults role is expected to be run before this role.

Example Playbook

Remember to disable fact gathering since Python might not be present on hosts.

- hosts: all
  gather_facts: false  # not all hosts might be able to run modules yet
  roles:
     - kubespray-defaults
     - bootstrap-os

License

Apache 2.0