File tree Expand file tree Collapse file tree 4 files changed +48
-0
lines changed
Expand file tree Collapse file tree 4 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -894,6 +894,7 @@ jobs:
894894 TF_VAR_iaas_stack_name : staging
895895 TF_VAR_tooling_stack_name : tooling
896896 TF_VAR_devtools_org_name : cloud-gov-devtools-development
897+ TF_VAR_notify_org_name : cloud-gov-notify-development
897898 - put : slack
898899 params :
899900 << : *slack-failure-params
@@ -1426,6 +1427,7 @@ jobs:
14261427 TF_VAR_iaas_stack_name : production
14271428 TF_VAR_tooling_stack_name : tooling
14281429 TF_VAR_devtools_secondary_org : true
1430+ TF_VAR_notify_secondary_org : true
14291431 - put : slack
14301432 params :
14311433 text_file : terraform-state/message.txt
Original file line number Diff line number Diff line change @@ -26,3 +26,15 @@ resource "cloudfoundry_org" "cloud-gov-devtools-secondary" {
2626 count = var. devtools_secondary_org ? 1 : 0
2727 name = var. devtools_org_name_secondary
2828}
29+
30+
31+ # Notify
32+
33+ resource "cloudfoundry_org" "cloud-gov-notify" {
34+ name = var. notify_org_name
35+ }
36+
37+ resource "cloudfoundry_org" "cloud-gov-notify-secondary" {
38+ count = var. notify_secondary_org ? 1 : 0
39+ name = var. notify_org_name_secondary
40+ }
Original file line number Diff line number Diff line change @@ -38,3 +38,25 @@ resource "cloudfoundry_org_quota" "devtools-secondary" {
3838 total_services = 100
3939 orgs = [cloudfoundry_org . cloud-gov-devtools-secondary [0 ]. id ]
4040}
41+
42+
43+ # Notify
44+
45+ resource "cloudfoundry_org_quota" "notify" {
46+ name = " notify"
47+ allow_paid_service_plans = true
48+ total_memory = 20480
49+ total_routes = 100
50+ total_services = 100
51+ orgs = [cloudfoundry_org . cloud-gov-notify . id ]
52+ }
53+
54+ resource "cloudfoundry_org_quota" "notify-secondary" {
55+ count = var. notify_secondary_org ? 1 : 0
56+ name = " notify-secondary"
57+ allow_paid_service_plans = true
58+ total_memory = 10240
59+ total_routes = 100
60+ total_services = 100
61+ orgs = [cloudfoundry_org . cloud-gov-notify-secondary [0 ]. id ]
62+ }
Original file line number Diff line number Diff line change @@ -21,3 +21,15 @@ variable "devtools_secondary_org" {
2121variable "devtools_org_name_secondary" {
2222 default = " cloud-gov-devtools-staging"
2323}
24+
25+ variable "notify_org_name" {
26+ default = " cloud-gov-notify-production"
27+ }
28+
29+ variable "notify_secondary_org" {
30+ default = false
31+ }
32+
33+ variable "notify_org_name_secondary" {
34+ default = " cloud-gov-notify-staging"
35+ }
You can’t perform that action at this time.
0 commit comments