Based on CIS Kubernetes Benchmark v1.5.1 [14 Feb 2020].
Tested on ansible 2.9.4. It also requires kubectl for the category 5 tasks.
scorednot_scoredlevel_1level_2path_to_cni_filesproxy_kubeconfig_fileclient_ca_filekubelet_config
Unknown at the moment
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
requirements.yml:
- src: https://github.com/luckylittle/ansible-role-openshift4-cis
version: masterplaybook.yaml:
- hosts: all
remote_user: core
roles:
- ansible-role-openshift4-cis- Execution:
ansible-galaxy install --force -r requirements.yml -p roles/
ansible-playbook -i inventoryThe inventory must contain specific host groups, that the role relies on:
[localhost]
localhost
[masters]
master[0:2]
[etcd:children]
masters
[workers]
worker[0:4]MIT
Lucian Maly <lucian@redhat.com>
Some inspiration from this source was used.
Last update: Mon Mar 30 04:25:20 UTC 2020