Arild Jensen
2013-May-07 16:34 UTC
[Puppet Users] Announce: cis-puppet 0.2.0 is now available
Overview ======= This module implements the Center for Internet Security (CIS) Security Configuration Benchmark for Red Hat Enterprise Linux 6 v.1.1.0 (avilable at http://benchmarks.cisecurity.org). Each scored control has been implemented as a class or a custom fact. Installation =========== Please either: - Clone git repo from https://github.com/arildjensen/cis-puppet - Run "puppet module install arildjensen/cis" and install from PuppetForge (http://forge.puppetlabs.com/arildjensen/cis) Use == The class cis::el6all will enforce all the controls. If you wish to deviate please look for the el6all.pp file and use that as a template. Note that some of the scored controls not able to be written in Puppet code have been implemented as custom facts using Facter. Controls labeled "not scored" by the benchmark are not included. Also note that there are two subclasses in the cis module, cis::linuxcontrols and cis::el6. The former implements the specific controls with a general name (such as cis::linuxcontrols::c0001), allowing for future re-use. The latter maps directly to a specific CIS control for RHEL6 (such as cis::el6::1_1_17 for control 1.1.17 in the benchmark). User-Controlled Settings =======================Some of the settings, such as which log server to use, can be specified by the user. Below is a sample hiera file containing all the current configurable settings: cis::logserver: ''syslog.localdomain'' cis::ntpserver: - ntp1 - ntp2 - ntp3 cis::aide_cron_check: hour: 6 minute: 30 Author ===== Written by Arild Jensen <ajensen@counter-attack.com> with source code repository at https://github.com/arildjensen/cis-puppet. Release History ==============- 0.2.0 - Added comments and implemented hiera support for some of the settings. - 0.1.0 - Initial release -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Dan White
2013-May-07 17:16 UTC
Re: [Puppet Users] Announce: cis-puppet 0.2.0 is now available
Wow ! I will definitely be checking this out as my Puppet implementation is tied to the CIS RHEL-5 benchmark “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” Bill Waterson (Calvin & Hobbes) ----- Original Message ----- From: "Arild Jensen" <arildjensen.pe@gmail.com> To: puppet-users@googlegroups.com Sent: Tuesday, May 7, 2013 12:34:47 PM Subject: [Puppet Users] Announce: cis-puppet 0.2.0 is now available Overview ======= This module implements the Center for Internet Security (CIS) Security Configuration Benchmark for Red Hat Enterprise Linux 6 v.1.1.0 (avilable at http://benchmarks.cisecurity.org). Each scored control has been implemented as a class or a custom fact. Installation =========== Please either: - Clone git repo from https://github.com/arildjensen/cis-puppet - Run "puppet module install arildjensen/cis" and install from PuppetForge (http://forge.puppetlabs.com/arildjensen/cis) Use == The class cis::el6all will enforce all the controls. If you wish to deviate please look for the el6all.pp file and use that as a template. Note that some of the scored controls not able to be written in Puppet code have been implemented as custom facts using Facter. Controls labeled "not scored" by the benchmark are not included. Also note that there are two subclasses in the cis module, cis::linuxcontrols and cis::el6. The former implements the specific controls with a general name (such as cis::linuxcontrols::c0001), allowing for future re-use. The latter maps directly to a specific CIS control for RHEL6 (such as cis::el6::1_1_17 for control 1.1.17 in the benchmark). User-Controlled Settings =======================Some of the settings, such as which log server to use, can be specified by the user. Below is a sample hiera file containing all the current configurable settings: cis::logserver: ''syslog.localdomain'' cis::ntpserver: - ntp1 - ntp2 - ntp3 cis::aide_cron_check: hour: 6 minute: 30 Author ===== Written by Arild Jensen <ajensen@counter-attack.com> with source code repository at https://github.com/arildjensen/cis-puppet. Release History ==============- 0.2.0 - Added comments and implemented hiera support for some of the settings. - 0.1.0 - Initial release -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en . For more options, visit https://groups.google.com/groups/opt_out . -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Peter Brown
2013-May-09 05:58 UTC
Re: [Puppet Users] Announce: cis-puppet 0.2.0 is now available
Awesome! Thanks Arild! I was working on implementing those with puppet in my organisation but have yet to finish them. I will definitely have a look at your implementation and may offer help with your module if I get some spare time. Pete. On 8 May 2013 02:34, Arild Jensen <arildjensen.pe@gmail.com> wrote:> Overview > =======> > This module implements the Center for Internet Security (CIS) Security Configuration Benchmark for Red Hat Enterprise Linux 6 v.1.1.0 (avilable at http://benchmarks.cisecurity.org). Each scored control has been implemented as a class or a custom fact. > > Installation > ===========> > Please either: > > - Clone git repo from https://github.com/arildjensen/cis-puppet > - Run "puppet module install arildjensen/cis" and install from PuppetForge (http://forge.puppetlabs.com/arildjensen/cis) > > Use > ==> > The class cis::el6all will enforce all the controls. If you wish to deviate please look for the el6all.pp file and use that as a template. Note that some of the scored controls not able to be written in Puppet code have been implemented as custom facts using Facter. Controls labeled "not scored" by the benchmark are not included. > > Also note that there are two subclasses in the cis module, cis::linuxcontrols and cis::el6. The former implements the specific controls with a general name (such as cis::linuxcontrols::c0001), allowing for future re-use. The latter maps directly to a specific CIS control for RHEL6 (such as cis::el6::1_1_17 for control 1.1.17 in the benchmark). > > User-Controlled Settings > =======================> Some of the settings, such as which log server to use, can be specified by the > user. Below is a sample hiera file containing all the current configurable > settings: > > cis::logserver: ''syslog.localdomain'' > cis::ntpserver: > - ntp1 > - ntp2 > - ntp3 > cis::aide_cron_check: > hour: 6 > minute: 30 > > Author > =====> > Written by Arild Jensen <ajensen@counter-attack.com> with source code repository at https://github.com/arildjensen/cis-puppet. > > > Release History > ==============> - 0.2.0 - Added comments and implemented hiera support for some of the settings. > - 0.1.0 - Initial release > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Dan White
2013-May-10 03:07 UTC
Re: [Puppet Users] Announce: cis-puppet 0.2.0 is now available
OK. I have looked thru the module and I have some comments and feedback. I am delightfully impressed with what you have here. I am a bit disappointed with the sterile naming convention by CIS Benchmark document paragraph numbers. I think it makes it tougher to maintain, but that is just my opinion. I love how you made the collection of custom facts to evaluate the “hardness” of the system. I have a suggestion to reduce the amount of code needed to implement this: Your method uses 3 pieces: A shell script, a ruby fact wrapper that calls the script, and a manifest that checks the value of the custom fact. If you use External Facts, your scripts go into /etc/facter/facts.d and are called directly without the extra Ruby wrapper ! On May 7, 2013, at 12:34 PM, Arild Jensen wrote:> Overview > =======> > This module implements the Center for Internet Security (CIS) Security Configuration Benchmark for Red Hat Enterprise Linux 6 v.1.1.0 (avilable at http://benchmarks.cisecurity.org). Each scored control has been implemented as a class or a custom fact. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.