Skip to content

Commit

Permalink
For CPUs with the AES New Instructions add dracut-fips-aesni to turn …
Browse files Browse the repository at this point in the history
…kernel space into FIPS mode. Do not transfer file for smoke tests since all the pedant tests are run.

Signed-off-by: Prajakta Purohit <[email protected]>
  • Loading branch information
PrajaktaPurohit authored and snapp committed Mar 25, 2020
1 parent 6a878d4 commit 01fe504
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions terraform/aws/scenarios/omnibus-fips/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "null_resource" "chef_server_fips" {
"echo -e '\nFIPS STATUS:\n'",
"sudo sysctl crypto.fips_enabled",
"echo -e '\nBEGIN ENABLING FIPS MODE\n'",
"sudo yum install -y dracut-fips",
"sudo yum install -y dracut-fips dracut-fips-aesni",
"sudo dracut -f",
"if [ -f /etc/default/grub ]; then sudo sed -i '/GRUB_CMDLINE_LINUX/{s/=\"/=\"fips=1 /;}' /etc/default/grub; sudo grub2-mkconfig -o /boot/grub2/grub.cfg; else sudo sed -i '/^\t.*kernel.*boot/{s/$/ fips=1/;}' /boot/grub/grub.conf; fi",
"echo -e '\nEND ENABLING FIPS MODE\n'",
Expand Down Expand Up @@ -95,11 +95,6 @@ resource "null_resource" "chef_server_test" {
}

# upload test scripts
provisioner "file" {
source = "${path.module}/../../../common/files/test_chef_server-smoke.sh"
destination = "/tmp/test_chef_server-smoke.sh"
}

provisioner "file" {
source = "${path.module}/../../../common/files/test_chef_server-pedant.sh"
destination = "/tmp/test_chef_server-pedant.sh"
Expand Down

0 comments on commit 01fe504

Please sign in to comment.