-
Custom scripts aren't upgraded with the auto upgrade process and thats meant to be due to the script catalog being a set of ready to use examples. Due to the fact that the user may change in these scripts upgrading them automatically would cause catastrophic events. How to manage them then ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You need to make sure you pull and update them using terraform you would do this through you VCS. Forexample , if you are using the casa script , the first step in your CI/CD pipeline would be to pull it according to the IDP version you used and then terraform would apply it . Here is a full example for you # You can even pull this script directly in terraform if its perfectly unchanged but placing it in your VCS helps maintain it
wget https://raw.githubusercontent.com/JanssenProject/jans/${IDP_VERSION}/jans-casa/extras/Casa.py -O scripts/Casa.py
terraform init
terraform validate
# If you haven't imported it already
terraform import jans_script.casa 3000-F75A
terraform apply -auto-approve resource "jans_script" "casa" {
dn = "inum=3000-F75A,ou=scripts,o=jans"
inum = "3000-F75A"
name = "casa"
description = "Gluu Casa Person Authentication"
script = file("${path.module}/scripts/Casa.py")
script_type = "person_authentication"
programming_language = "python"
level = 1
revision = 1
enabled = true
modified = false
internal = false
location_type = "db"
base_dn = "inum=3000-F75A,ou=scripts,o=jans"
configuration_properties {
value1 = "supergluu_app_id"
value2 = "https://${var.idp_fqdn}/jans-casa"
description = ""
hide = false
}
configuration_properties {
value1 = "u2f_app_id"
value2 = "https://${var.idp_fqdn}"
description = ""
hide = false
}
module_properties {
value1 = "location_type"
value2 = "db"
description = ""
}
} |
Beta Was this translation helpful? Give feedback.
You need to make sure you pull and update them using terraform you would do this through you VCS. Forexample , if you are using the casa script , the first step in your CI/CD pipeline would be to pull it according to the IDP version you used and then terraform would apply it .
Here is a full example for you