Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
Adding cscc vars to on_gke examples (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevensen authored and hshin-g committed Oct 11, 2019
1 parent e5c9c60 commit e12c087
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ your environment.
| cloudsql\_db\_name | CloudSQL database name | string | `"forseti_security"` | no |
| cloudsql\_db\_port | CloudSQL database port | string | `"3306"` | no |
| cloudsql\_disk\_size | The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. | string | `"25"` | no |
| cloudsql\_net\_write\_timeout | See MySQL documentation: https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_net_write_timeout | string | `"240"` | no |
| cloudsql\_private | Whether to enable private network and not to create public IP for CloudSQL Instance | bool | `"false"` | no |
| cloudsql\_proxy\_arch | CloudSQL Proxy architecture | string | `"linux.amd64"` | no |
| cloudsql\_region | CloudSQL region | string | `"us-central1"` | no |
Expand Down
2 changes: 2 additions & 0 deletions examples/on_gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ In order to operate with the Service Account you must activate the following API
| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| config\_validator\_enabled | Config Validator scanner enabled. | bool | `"false"` | no |
| cscc\_source\_id | Source ID for CSCC Beta API | string | `""` | no |
| cscc\_violations\_enabled | Notify for CSCC violations | bool | `"false"` | no |
| domain | The domain associated with the GCP Organization ID | string | n/a | yes |
| forseti\_email\_recipient | Email address that receives Forseti notifications | string | `""` | no |
| forseti\_email\_sender | Email address that sends the Forseti notifications | string | `""` | no |
Expand Down
2 changes: 2 additions & 0 deletions examples/on_gke/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ module "forseti" {
sendgrid_api_key = var.sendgrid_api_key
forseti_email_sender = var.forseti_email_sender
forseti_email_recipient = var.forseti_email_recipient
cscc_violations_enabled = var.cscc_violations_enabled
cscc_source_id = var.cscc_source_id

config_validator_enabled = var.config_validator_enabled
git_sync_private_ssh_key = local.git_sync_private_ssh_key
Expand Down
10 changes: 10 additions & 0 deletions examples/on_gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
* limitations under the License.
*/

variable "cscc_violations_enabled" {
description = "Notify for CSCC violations"
type = bool
default = false
}

variable "cscc_source_id" {
description = "Source ID for CSCC Beta API"
default = ""
}

variable "config_validator_enabled" {
description = "Config Validator scanner enabled."
Expand Down
2 changes: 2 additions & 0 deletions examples/on_gke_end_to_end/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ In order to operate with the Service Account you must activate the following API
|------|-------------|:----:|:-----:|:-----:|
| auto\_create\_subnetworks | When set to true, the network is created in 'auto subnet mode' and it will create a subnet for each region automatically across the 10.128.0.0/9 address range. When set to false, the network is created in 'custom subnet mode' so the user can explicitly connect subnetwork resources. | bool | `"false"` | no |
| config\_validator\_enabled | Config Validator scanner enabled. | bool | `"false"` | no |
| cscc\_source\_id | Source ID for CSCC Beta API | string | `""` | no |
| cscc\_violations\_enabled | Notify for CSCC violations | bool | `"false"` | no |
| domain | The domain associated with the GCP Organization ID | string | n/a | yes |
| forseti\_email\_recipient | Email address that receives Forseti notifications | string | `""` | no |
| forseti\_email\_sender | Email address that sends the Forseti notifications | string | `""` | no |
Expand Down
3 changes: 3 additions & 0 deletions examples/on_gke_end_to_end/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ module "forseti" {
sendgrid_api_key = var.sendgrid_api_key
forseti_email_sender = var.forseti_email_sender
forseti_email_recipient = var.forseti_email_recipient
cscc_violations_enabled = var.cscc_violations_enabled
cscc_source_id = var.cscc_source_id


config_validator_enabled = var.config_validator_enabled
git_sync_private_ssh_key = local.git_sync_private_ssh_key
Expand Down
12 changes: 11 additions & 1 deletion examples/on_gke_end_to_end/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ variable "config_validator_enabled" {
default = false
}

variable "cscc_violations_enabled" {
description = "Notify for CSCC violations"
type = bool
default = false
}

variable "cscc_source_id" {
description = "Source ID for CSCC Beta API"
default = ""
}

variable "domain" {
description = "The domain associated with the GCP Organization ID"
}


variable "git_sync_private_ssh_key_file" {
description = "The file containing the private SSH key allowing the git-sync to clone the policy library repository."
default = ""
Expand Down
1 change: 1 addition & 0 deletions modules/on_gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This sub-module deploys Forseti on GKE. In short, this deploys a server contain
| cloudsql\_acl\_violations\_should\_notify | Notify for CloudSQL ACL violations | bool | `"true"` | no |
| cloudsql\_db\_name | CloudSQL database name | string | `"forseti_security"` | no |
| cloudsql\_disk\_size | The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. | string | `"25"` | no |
| cloudsql\_net\_write\_timeout | See MySQL documentation: https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_net_write_timeout | string | `"240"` | no |
| cloudsql\_private | Whether to enable private network and not to create public IP for CloudSQL Instance | bool | `"false"` | no |
| cloudsql\_region | CloudSQL region | string | `"us-central1"` | no |
| cloudsql\_type | CloudSQL Instance size | string | `"db-n1-standard-4"` | no |
Expand Down

0 comments on commit e12c087

Please sign in to comment.