@@ -45,14 +45,15 @@ resource "aws_instance" "testing_vm" {
45
45
key_name = var. ami_key_pair_name # This is the key as known in the ec2 key_pairs
46
46
instance_type = var. instance_type
47
47
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 } "
51
51
}
52
52
vpc_security_group_ids = [aws_security_group . github_actions . id ]
53
53
subnet_id = aws_subnet. Main . id
54
54
metadata_options {
55
- http_tokens = " required"
55
+ http_tokens = " required"
56
+ http_endpoint = " enabled"
56
57
}
57
58
root_block_device {
58
59
delete_on_termination = true
@@ -79,8 +80,13 @@ resource "local_file" "inventory" {
79
80
rhel_07_010340: false
80
81
rhel7stig_bootloader_password_hash: 'grub.pbkdf2.sha512.somethingnewhere'
81
82
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 }}"
83
86
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'
84
90
EOF
85
91
}
86
92
0 commit comments