Skip to content

Files

Latest commit

c1c820d · May 18, 2025

History

History

chef-linux

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 10, 2017
Apr 10, 2017
May 18, 2025
Apr 10, 2017

Chef Hardening for Linux Operating Systems

This is a test-kitchen project that is using Chef cookbooks to harden an Ubuntu 16.04 and CentOS 7 system via:

Once the servers are hardened, we verify the their compliance status via InSpec

Precondition

You need to have ChefDK installed to be able to execute kitchen

Get Started

# Show list of available operating systems
$ kitchen list
Instance           Driver   Provisioner  Verifier  Transport  Last Action    Last Error
linux-ubuntu-1604  Vagrant  ChefSolo     Inspec    Ssh        <Not Created>  <None>
linux-centos-72    Vagrant  ChefSolo     Inspec    Ssh        <Not Created>  <None>

# Harden the system with Chef
$ kitchen converge linux-ubuntu-1604
...

# Verify the system with InSpec
$ kitchen converge linux-ubuntu-1604
...