You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

  1. # bootstrap-os
  2. Bootstrap an Ansible host to be able to run Ansible modules.
  3. This role will:
  4. * configure the package manager (if applicable) to be able to fetch packages
  5. * install Python
  6. * install the necessary packages to use Ansible's package manager modules
  7. * set the hostname of the host to `{{ inventory_hostname }}` when requested
  8. ## Requirements
  9. A host running an operating system that is supported by Kubespray.
  10. See https://github.com/kubernetes-sigs/kubespray#supported-linux-distributions for a current list.
  11. SSH access to the host.
  12. ## Role Variables
  13. Variables are listed with their default values, if applicable.
  14. ### General variables
  15. * `http_proxy`/`https_proxy`
  16. The role will configure the package manager (if applicable) to download packages via a proxy.
  17. This is currently implemented for CentOS/RHEL (`http_proxy` only) as well as Debian and Ubuntu (both `http_proxy` and `https_proxy` are respected)
  18. * `override_system_hostname: true`
  19. The role will set the hostname of the machine to the name it has according to Ansible's inventory (the variable `{{ inventory_hostname }}`).
  20. ### Per distribution variables
  21. #### CoreOS
  22. * `coreos_locksmithd_disable: false`
  23. Whether `locksmithd` (responsible for rolling restarts) should be disabled or be left alone.
  24. #### CentOS/RHEL
  25. * `centos_fastestmirror_enabled: false`
  26. Whether the [fastestmirror](https://wiki.centos.org/PackageManagement/Yum/FastestMirror) yum plugin should be enabled.
  27. ## Dependencies
  28. The `kubespray-defaults` role is expected to be run before this role.
  29. ## Example Playbook
  30. Remember to disable fact gathering since Python might not be present on hosts.
  31. - hosts: all
  32. gather_facts: false # not all hosts might be able to run modules yet
  33. roles:
  34. - kubespray-defaults
  35. - bootstrap-os
  36. ## License
  37. Apache 2.0