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.

58 lines
1.7 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. * `override_system_hostname: true`
  18. The role will set the hostname of the machine to the name it has according to Ansible's inventory (the variable `{{ inventory_hostname }}`).
  19. ### Per distribution variables
  20. #### CoreOS
  21. * `coreos_locksmithd_disable: false`
  22. Whether `locksmithd` (responsible for rolling restarts) should be disabled or be left alone.
  23. #### CentOS/RHEL
  24. * `centos_fastestmirror_enabled: false`
  25. Whether the [fastestmirror](https://wiki.centos.org/PackageManagement/Yum/FastestMirror) yum plugin should be enabled.
  26. ## Dependencies
  27. The `kubespray-defaults` role is expected to be run before this role.
  28. ## Example Playbook
  29. Remember to disable fact gathering since Python might not be present on hosts.
  30. - hosts: all
  31. gather_facts: false # not all hosts might be able to run modules yet
  32. roles:
  33. - kubespray-defaults
  34. - bootstrap-os
  35. ## License
  36. Apache 2.0