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.
scored
not_scored
level_1
level_2
path_to_cni_files
proxy_kubeconfig_file
client_ca_file
kubelet_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: master
playbook.yaml
:
- hosts: all
remote_user: core
roles:
- ansible-role-openshift4-cis
- Execution:
ansible-galaxy install --force -r requirements.yml -p roles/
ansible-playbook -i inventory
The 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