Skip to content

Instantly share code, notes, and snippets.

@joe-at-cp
Created July 25, 2019 17:29
Show Gist options
  • Select an option

  • Save joe-at-cp/98971e9b73817c66fb758cc4d31eebd2 to your computer and use it in GitHub Desktop.

Select an option

Save joe-at-cp/98971e9b73817c66fb758cc4d31eebd2 to your computer and use it in GitHub Desktop.
Terraform - Openstack - Deploy Check Point QCOW Image
provider "openstack" {
user_name = "admin"
tenant_name = "admin"
password = ""
auth_url = "http://10.200.0.40:35357/v3"
region = "default"
}
resource "openstack_compute_instance_v2" "basic" {
name = "CloudGuard"
image_name = "CheckPoint_R80.20_IBM_05222019"
flavor_name = "CheckPoint_Medium_100G"
config_drive = true
security_groups = ["Allow_All"]
metadata = {
cp_ftw = "blink_config -s 'gateway_cluster_member=false&ftw_sic_key=vpn123&upload_info=true&download_info=true&reboot_if_required=true'",
cp_config_001 = "clish -c 'set ntp active on'",
cp_config_002 = "clish -c 'set ntp server primary ntp.checkpoint.com version 4'",
cp_config_003 = "clish -c 'save config'"
}
#External / Management Network
network {
name = "public"
}
#DMZ Network
network {
name = "DMZ"
}
#Internal Network
network {
name = "internal"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment