Skip to content

Commit

Permalink
Add 'system-packages' tag to control installing packages from OS repo…
Browse files Browse the repository at this point in the history
…sitories (#10872)
  • Loading branch information
hedayat authored May 30, 2024
1 parent 0624a30 commit dedc006
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/ansible/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ The following tags are defined in playbooks:
| services | Remove services (etcd, kubelet etc...) when resetting |
| snapshot | Enabling csi snapshot |
| snapshot-controller | Configuring csi snapshot controller |
| system-packages | Install packages using OS package manager |
| upgrade | Upgrading, f.e. container images/binaries |
| upload | Distributing images/binaries across hosts |
| vsphere-csi-driver | Configuring csi driver: vsphere |
Expand Down
4 changes: 3 additions & 1 deletion docs/operations/offline-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ If you use the settings like the one above, you'll need to define in your invent
can store them anywhere as long as it's accessible by kubespray. It's recommended to use `*_version` in the path so
that you don't need to modify this setting everytime kubespray upgrades one of these components.
* `yum_repo`/`debian_repo`/`ubuntu_repo`: OS package repository depending on your OS, should point to your internal
repository. Adjust the path accordingly.
repository. Adjust the path accordingly. Used only for Docker/Containerd packages (if needed); other packages might
be installed from other repositories. You might disable installing packages from other repositories by skipping
the `system-packages` tag

## Install Kubespray Python Packages

Expand Down
1 change: 1 addition & 0 deletions roles/kubernetes/preinstall/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
- not dns_late
tags:
- bootstrap-os
- system-packages

- name: Apply system configurations
import_tasks: 0080-system-configurations.yml
Expand Down

0 comments on commit dedc006

Please sign in to comment.