File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ terraform {
9
9
10
10
module rosa_operator_roles {
11
11
source = " ./operator_roles"
12
- count = var. create_operator_roles ? 6 : 0
12
+ count = var. create_operator_roles ? (var . is_hosted_cp ? 10 : 6 ) : 0
13
13
14
14
cluster_id = var. cluster_id
15
15
rh_oidc_provider_url = var. rh_oidc_provider_url
Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ variable operator_roles_properties {
24
24
}
25
25
}
26
26
27
+ variable is_hosted_cp {
28
+ description = " Set to true if there is intention to use Red Hat Hosted CP to create appropriate opearator roles"
29
+ type = bool
30
+ default = false
31
+ }
32
+
27
33
variable create_operator_roles {
28
34
description = " When using BYO OIDC and reusing the operator roles set to false so as not to create operator roles"
29
35
type = bool
You can’t perform that action at this time.
0 commit comments