c12s-kubespray/roles/bootstrap-os
Kenichi Omichi 19c000c127
Set ansible_python_interpreter to python3 on debian (fix error with mitogen) (#6633) (#6744)
Co-authored-by: Florian Ruynat <16313165+floryut@users.noreply.github.com>
2020-10-01 06:16:54 -07:00
..
defaults Fedora coreos networkmanager global dns and bootstrapping fix (#6577) 2020-09-07 02:27:41 -07:00
files Use proper pypy download url in bootstrap script (#6555) 2020-08-21 00:09:47 -07:00
molecule/default Upgrade molecule to v3 (#6468) 2020-08-04 05:24:19 -07:00
tasks Set ansible_python_interpreter to python3 on debian (fix error with mitogen) (#6633) (#6744) 2020-10-01 06:16:54 -07:00
README.md Remove support for CoreOS Container Linux (#6576) 2020-08-28 02:28:53 -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

Flatcar Container Linux

  • 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