Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dtspo 18032 rhel 7 els #58

Merged
merged 34 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
894772e
add register the redhat 7 system
SalimKainos Jun 24, 2024
0f845f8
fix typo
SalimKainos Jun 24, 2024
848c031
terraform-docs: automated action
github-actions[bot] Jun 24, 2024
7f5bbed
Remove pool id
SalimKainos Jun 24, 2024
a393531
cnp provider added
SalimKainos Jun 24, 2024
86bcc03
add endif
SalimKainos Jun 25, 2024
1d70e52
change to defualt kv
SalimKainos Jun 25, 2024
f5783c4
terraform-docs: automated action
github-actions[bot] Jun 25, 2024
e274809
change kv resource group
SalimKainos Jun 25, 2024
d43cf5f
terraform-docs: automated action
github-actions[bot] Jun 25, 2024
1c0d192
add pool id
SalimKainos Jun 26, 2024
6caf17f
fix els password
SalimKainos Jun 26, 2024
b61ceee
removed pool id
SalimKainos Jun 26, 2024
05a7f2c
remove username n password
SalimKainos Jun 26, 2024
29f9b7f
add activation key name
SalimKainos Jun 27, 2024
3a8f4a8
terraform-docs: automated action
github-actions[bot] Jun 27, 2024
ac27028
fix space
SalimKainos Jun 27, 2024
a9ffd1b
fix space
SalimKainos Jun 27, 2024
997a4e7
rm extra spaces
SalimKainos Jun 27, 2024
e883bdc
add kv for cert
SalimKainos Jul 1, 2024
9afdc4f
terraform-docs: automated action
github-actions[bot] Jul 1, 2024
5393088
add count
SalimKainos Jul 1, 2024
e5f378e
change kv id to rhel cert id
SalimKainos Jul 1, 2024
37181ca
using cli to read a secret
SalimKainos Jul 1, 2024
74063a2
terraform-docs: automated action
github-actions[bot] Jul 1, 2024
b054197
cert add
SalimKainos Jul 1, 2024
78c5881
terraform-docs: automated action
github-actions[bot] Jul 1, 2024
c58212d
change secret to certificate
SalimKainos Jul 1, 2024
b7f3561
terraform-docs: automated action
github-actions[bot] Jul 1, 2024
01702cf
change value to certificate
SalimKainos Jul 1, 2024
6e1db9f
set to certificate_data_base64
SalimKainos Jul 1, 2024
24aea5d
removed kv
SalimKainos Jul 1, 2024
b40086e
terraform-docs: automated action
github-actions[bot] Jul 1, 2024
20e5dc1
add readme for rhel 7
SalimKainos Jul 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ data "azurerm_key_vault_secret" "nessus_agent_key" {
name = contains(["prod", "sbox"], var.env) ? "nessus-agent-key-${var.env}" : "nessus-agent-key-nonprod"
key_vault_id = data.azurerm_key_vault.soc_vault[0].id
}


28 changes: 28 additions & 0 deletions scripts/bootstrap_vm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,31 @@ if [ "${NESSUS_INSTALL}" = "true" ]
then
install_nessus "${NESSUS_SERVER}" "${NESSUS_KEY}" "${NESSUS_GROUPS}"
fi

# Check if the OS is RHEL 7
if [[ "$OS_TYPE" == *"Red Hat Enterprise"* && "$OS_TYPE" == *"7."* ]]; then
echo "This is Red Hat Enterprise Linux 7."

# Register the system and attach a subscription pool
subscription-manager register --org=7324337 --activationkey=Rhel-els


# Refresh subscription-manager and verify identity
subscription-manager refresh
subscription-manager identity

# Install insights-client and register it
yum install -y insights-client
insights-client --register

# Enable repositories
subscription-manager config --rhsm.manage_repos=1
subscription-manager repos --enable rhel-7-server-els-rpms
SalimKainos marked this conversation as resolved.
Show resolved Hide resolved

echo "Configuration completed successfully."
else
echo "This script is intended for Red Hat Enterprise Linux 7 only."
fi



3 changes: 3 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,6 @@ variable "soc_vault_name" {
type = string
default = "soc-prod"
}