-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11131 from VannTen/design/modular_pkgs_install
Fine grained OS packages installation
- Loading branch information
Showing
15 changed files
with
214 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2020-12/schema", | ||
"$id": "https://kubespray.io/internal/os_packages.schema.json", | ||
"title": "Os packages", | ||
"description": "Criteria for selecting packages to install on Kubernetes nodes during installation by Kubespray", | ||
"type": "object", | ||
"patternProperties": { | ||
".*": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"enabled": { | ||
"description": "Escape hatch to filter packages. The value is expected to be pre-resolved to a boolean by Jinja", | ||
"type": "boolean", | ||
"default": true | ||
}, | ||
"groups": { | ||
"description": "Match if the host is in one of these groups. If not specified match any host.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items":{ | ||
"type": "string", | ||
"pattern": "^[0-9A-Za-z_]*$" | ||
} | ||
}, | ||
"os": { | ||
"type": "object", | ||
"description": "If not specified match any OS. Otherwise, must match by 'families' or 'distributions' to be included.", | ||
"additionalProperties": false, | ||
"minProperties": 1, | ||
"properties": { | ||
"families": { | ||
"description": "Match if ansible_os_family is part of the list.", | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"distributions": { | ||
"type": "object", | ||
"description": "Match if ansible_distribution match one of defined keys.", | ||
"minProperties": 1, | ||
"patternProperties": { | ||
".*": { | ||
"description": "Match if either the value is the empty hash, or one major_versions/versions/releases contains the corresponding variable ('ansible_distrbution_*')", | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"major_versions": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"versions": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"releases": { | ||
"type": "array", | ||
"minItems": 1, | ||
"items": { | ||
"type": "string" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
--- | ||
pkgs: | ||
apparmor: &debian_family_base | ||
os: | ||
families: | ||
- Debian | ||
apt-transport-https: *debian_family_base | ||
aufs-tools: &deb_10 | ||
groups: | ||
- k8s_cluster | ||
os: | ||
distributions: | ||
Debian: | ||
major_versions: | ||
- "10" | ||
bash-completion: {} | ||
conntrack: &deb_redhat | ||
groups: | ||
- k8s_cluster | ||
os: | ||
families: | ||
- Debian | ||
- RedHat | ||
conntrack-tools: | ||
groups: | ||
- k8s_cluster | ||
os: | ||
families: | ||
- Suse | ||
distributions: | ||
Amazon: {} | ||
container-selinux: &redhat_family | ||
groups: | ||
- k8s_cluster | ||
os: | ||
families: | ||
- RedHat | ||
curl: {} | ||
device-mapper: | ||
groups: | ||
- k8s_cluster | ||
os: | ||
families: | ||
- Suse | ||
device-mapper-libs: *redhat_family | ||
e2fsprogs: {} | ||
ebtables: {} | ||
gnupg: &debian | ||
groups: | ||
- k8s_cluster | ||
os: | ||
distributions: | ||
Debian: | ||
major_versions: | ||
- "11" | ||
- "12" | ||
ipset: | ||
enabled: "{{ kube_proxy_mode != 'ipvs' }}" | ||
groups: | ||
- k8s_cluster | ||
iptables: *deb_redhat | ||
ipvsadm: | ||
enabled: "{{ kube_proxy_mode == 'ipvs' }}" | ||
groups: | ||
- k8s_cluster | ||
libseccomp: *redhat_family | ||
libseccomp2: | ||
groups: | ||
- k8s_cluster | ||
os: | ||
families: | ||
- Suse | ||
- Debian | ||
libselinux-python: # TODO: Handle rehat_family + major < 8 | ||
os: | ||
distributions: | ||
Amazon: {} | ||
libselinux-python3: | ||
os: | ||
distributions: | ||
Fedora: {} | ||
mergerfs: | ||
os: | ||
distributions: | ||
Debian: | ||
major_versions: | ||
- "12" | ||
nss: *redhat_family | ||
openssl: {} | ||
python-apt: *deb_10 | ||
# TODO: not for debian 10 | ||
python3-apt: *debian_family_base | ||
python3-libselinux: | ||
os: | ||
distributions: | ||
RedHat: &major_redhat_like | ||
major_versions: | ||
- "8" | ||
- "9" | ||
Centos: *major_redhat_like | ||
rsync: {} | ||
socat: {} | ||
software-properties-common: *debian_family_base | ||
tar: {} | ||
unzip: {} | ||
xfsprogs: {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.