Skip to content

Commit ec6408b

Browse files
authored
Merge pull request #3 from ansible-lockdown/ubtu22
Ubtu22 vars added
2 parents b0059e4 + f6f6edc commit ec6408b

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

main.tf

+11-5
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ resource "aws_instance" "testing_vm" {
4545
key_name = var.ami_key_pair_name # This is the key as known in the ec2 key_pairs
4646
instance_type = var.instance_type
4747
tags = {
48-
Environment = "${var.environment}"
49-
Name = "${var.benchmark_os}-${var.benchmark_type}"
50-
repository = "${var.repository}"
48+
Environment = "${var.environment}"
49+
Name = "${var.benchmark_os}-${var.benchmark_type}"
50+
repository = "${var.repository}"
5151
}
5252
vpc_security_group_ids = [aws_security_group.github_actions.id]
5353
subnet_id = aws_subnet.Main.id
5454
metadata_options {
55-
http_tokens = "required"
55+
http_tokens = "required"
56+
http_endpoint = "enabled"
5657
}
5758
root_block_device {
5859
delete_on_termination = true
@@ -79,8 +80,13 @@ resource "local_file" "inventory" {
7980
rhel_07_010340: false
8081
rhel7stig_bootloader_password_hash: 'grub.pbkdf2.sha512.somethingnewhere'
8182
rhel9cis_rule_5_6_6: false # skip root passwd check and keys only
82-
ubtu20cis_grub_pw: 'grub.pbkdf2.sha512.10000.D268F2334B417C788C859A1104D489BE73205AFB74539DCAB0AC3F4A3B2ADE34D994D6D86A6F665200608F88050BCBC5D161ED07DE78C39D3C2BAE345F22DCEE.730C7E0F06BBDD2A54FF7BE93B710E94E1B1B61FE8E0BF27313E2429AF2C57348BF2EA647E39EF5AB13BE3EF3B1972FA5082EEB62AB9436314EA851D8042F423'
83+
## Passwds for ubuntu
84+
grub_user_pass: 'grub.pbkdf2.sha512.10000.D268F2334B417C788C859A1104D489BE73205AFB74539DCAB0AC3F4A3B2ADE34D994D6D86A6F665200608F88050BCBC5D161ED07DE78C39D3C2BAE345F22DCEE.730C7E0F06BBDD2A54FF7BE93B710E94E1B1B61FE8E0BF27313E2429AF2C57348BF2EA647E39EF5AB13BE3EF3B1972FA5082EEB62AB9436314EA851D8042F423'
85+
ubtu20cis_grub_pw: "{{ grub_user_pass }}"
8386
ubtu20cis_root_pw: '$6$m1u7QuCBzmdHhig3$Ss48R6udPO.sISy8XphR2jlLhGqQiLoKkjdqVVU7zsU108oOq25.Bj0BTeafnljaur7iMnQPYXpRCzgXc6o4U1'
87+
ubtu22cis_bootloader_password_hash: "{{ grub_user_pass }}"
88+
ubtu22cis_set_grub_user_pass: true
89+
ubtu22cis_grub_user_passwd: '$y$j9T$MBA5l/tQyWifM869nQjsi.$cTy0ConcNjIYOn6Cppo5NAky20osrkRxz4fEWA8xac6'
8490
EOF
8591
}
8692

0 commit comments

Comments
 (0)