nozaq / amazon-linux-cis

Bootstrap script for Amazon Linux to comply CIS Amazon Linux Benchmark v2.0.0
MIT License
58 stars 44 forks source link

Support for Amazon Linux 2 (2017.12) #9

Open mtunstill opened 6 years ago

mtunstill commented 6 years ago

This mini utility to change elements of Amazon Linux is perfect for Packer bootstrapping to create a custom AMI without configuration management tools.

Although there are some major changes in Amazon Linux 2, this utility can still cover most of the changes without much alteration. On an initial run (against the latest Amazon Linux 2 AMI - amzn2-ami-hvm-2017.12.0.20180509-x86_64-*), these things broke...

[I have a solution to allow this python application to work for Amazon Linux 2 - I'll generate a diff against my fork and create a pull request]

mtunstill commented 6 years ago

I've created a pull request here that includes these changes...

https://github.com/nozaq/amazon-linux-cis/pull/10

nozaq commented 6 years ago

@mtunstill Thank you for fixing issues on Amazon Linux 2 (and a typo as well :p)! I'll check if these changes are compatible on both Amazon Linux 1 & 2.

As you mentioned, Amazon Linux 2 introduced a lot of changes including systemd support. I'm gonna spend some time for complete support.

mtunstill commented 6 years ago

The fixes might not be 100%, but it gets it through. I'm very likely to be contributing to this repo as this is great for setups without a config management tool.

chrissward commented 5 years ago

Is there any update on this issue since this seems to be a great little util if it is made compatible for AL2..