Skip to content

Commit

Permalink
make installer machine use the same RHET version as CLI Mode + choose…
Browse files Browse the repository at this point in the history
… specific java version

Former-commit-id: 2486a6a
  • Loading branch information
gabibeyo committed Nov 3, 2022
1 parent 600e067 commit e537c58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/installer_machine/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ data "aws_ami" "installer-ami" {

filter {
name = "name"
values = ["RHEL-7.9*"]
values = [var.installer_ami_name_tag]
}

filter {
Expand Down
2 changes: 1 addition & 1 deletion deploy/installer_machine/prepare_installer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yum -y install git
yum install -y yum-utils
yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo
yum -y install terraform
yum -y install java-11-openjdk-devel
yum -y install java-11-openjdk-devel-11.0.17.0.8-2.el8_6
export JAVA_HOME="/usr/lib/jvm/java-11-openjdk-11.0.17.0.8-2.el7_9.x86_64/bin/java"

git clone https://github.com/imperva/dsfkit.git
Expand Down
6 changes: 6 additions & 0 deletions deploy/installer_machine/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,9 @@ variable "web_console_cidr" {
default = null
}


variable "installer_ami_name_tag" {
type = string
default = "RHEL-8.6.0_HVM-20220503-x86_64-2-Hourly2-GP2" # Exists on all regions
}

0 comments on commit e537c58

Please sign in to comment.