Hello, I am super happy to hear that check point finally supports terraform.
I tried a super easy sample to create a network but I failed, and I didn't find a lot of documentation tot this:
I am using a Provider 1 (Multi-Domain Security Management) with R80.30 and the latest Jumbo Take 140.
[Expert@fw060b001:0]# cpinfo -y all 2>&1 | grep JUMBO | uniq
HOTFIX_R80_30_JUMBO_HF_MAIN Take: 140
BUNDLE_R80_30_JUMBO_HF_MAIN_gogoKernel Take: 140
This is my sample terraform file:
I miss the Option how to define a specific Domain of the Multi-Domain Security Management
# Configure the Check Point Provider
provider "checkpoint" {
server = "IP of Multi Domain Security Manger"
username = "CP Username"
password = "CP Password"
context = "web_api"
}
# Create a Network Object
resource "checkpoint_management_network" "example" {
name = "tf-Network_mierseba-1"
subnet4 = "192.0.2.4"
mask_length4 = 32
}
# Publish
resource "checkpoint_management_publish" "example" { }
azure@VM-DevOps-Agent-1:~/go/src$ git clone https://github.com/terraform-providers/terraform-provider-checkpoint.git
azure@VM-DevOps-Agent-1:~/go/src/terraform-provider-checkpoint$ make build
azure@VM-DevOps-Agent-1:~/go/src/terraform-provider-checkpoint/commands/publish$ terraform init
azure@VM-DevOps-Agent-1:~/go/src/terraform-provider-checkpoint/commands/publish$ terraform apply && ./publish
checkpoint_management_publish.example: Refreshing state... [id=d5545e34-0b89-4dee-bbd8-83deea0c62e9]
checkpoint_management_network.example: Refreshing state... [id=0102db30-f344-4498-8694-e42635a69207]
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
2020/02/19 11:09:21 error: missing parameters to initialize api client - (server, username, password)
When I try to execute with terraform apply && ./publish
I get the error message " error: missing parameters to initialize api client - (server, username, password)" I guess it the Domain is missing.
I also tried to use the IP of the MGMT of the specific Domain. And also searched all domains, and Global domain for the object, without any success.
It whould be helpful to have some more information and a more detailed documentation, especialy for Multi-Domain Security Management.
Did I miss something or just forgot something?
- Do I need a special MGMT Version?
- Do I need a special terraform Version?
- ...