-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from anthcourtney/build
Fix issues 45, 48 and more testing related changes
- Loading branch information
Showing
6 changed files
with
89 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Standards: 0.11 | ||
--- | ||
|
||
# 4.1.3 Ensure auditing for processes that start prior to auditd is enabled | ||
|
||
- name: 4.1.3 Ensure auditing for processes that start prior to auditd is enabled | ||
shell: "grep '^\\s*kernel*audit=1' {{ cis_grub_bootloader_filename }}" | ||
register: cis_4_1_3 | ||
ignore_errors: true | ||
tags: | ||
- "4.1.3" | ||
- level-2 | ||
- section-4 | ||
- scored | ||
|
||
- name: 4.1.3 Inform user to make the required change | ||
debug: | ||
msg: | ||
- "*** ACTION REQUIRED ***" | ||
- "Edit /boot/grub/menu.lst to include audit=1 on all kernel lines." | ||
when: cis_4_1_3.rc > 0 | ||
tags: | ||
- "4.1.3" | ||
- level-2 | ||
- section-4 | ||
- scored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
##### | ||
# | ||
# 1. First boot run "vagrant up" to download OS image and initial provisioning. | ||
# 2. It will fail to mount as OS need reboot. So run "vagrant reload --provision" to reboot the OS and force provisioning again. | ||
# 3. Run "vagrant ssh" to login to the system. | ||
# 4. Run below commands to install ansible and run tasks | ||
# a) pip install --upgrade --user setuptools ansible ansible-review | ||
# b) cd /home/vagrant/ansible-role-cis-amazon-linux/tests && ansible-playbook -i localhost, playbook.yml | ||
# | ||
# Manual mount command: sudo mount -t vboxsf -o uid=500,gid=500 vagrant /vagrant | ||
|
||
|
||
Vagrant.configure("2") do |config| | ||
#config.vm.provider "vmware_fusion" | ||
#config.vm.provider "virtualbox" | ||
|
||
config.vm.box = "mvbcoding/awslinux" | ||
|
||
# config.vm.network :forwarded_port, guest: 22, host: 10022, auto_correct: true | ||
|
||
config.vm.synced_folder "../", "/home/vagrant/ansible-role-cis-amazon-linux", create: true, group: "vagrant", owner: "vagrant" | ||
|
||
config.vm.provider "virtualbox" do |v| | ||
v.name = "AWSLinux" | ||
v.cpus = 2 | ||
v.memory = 2048 | ||
# Limit host CPU usage to 50% max | ||
v.customize ["modifyvm", :id, "--cpuexecutioncap", "50"] | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SCRIPT | ||
echo I am provisioning... | ||
whoami | ||
# make sure OS is up to date | ||
sudo yum update -y | ||
# install pip and other required dependencies | ||
sudo yum install python-pip libffi-devel -y | ||
# upgrade pip | ||
sudo pip install --upgrade pip | ||
SCRIPT | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters