Skip to content

Commit df87f64

Browse files
feat: wazuh
1 parent 0b6b667 commit df87f64

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+790
-544
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
required: true
99
type: choice
1010
options:
11-
- dev
1211
- prod
1312
pull_request: null
1413

.github/workflows/destroy.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
required: true
99
type: choice
1010
options:
11-
- dev
1211
- prod
1312

1413
jobs:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,5 @@ yarn.lock
9898

9999
*/charts
100100

101-
*.out
101+
*.out
102+
*.json

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "terraform/modules/wazuh/files/.wazuh-helm"]
2+
path = terraform/modules/wazuh/files/.wazuh-helm
3+
url = https://github.com/adorsys-gis/wazuh-helm

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export TF_VAR_db_password="some-secret"
3131

3232
Then, run the following command to initialize the backend:
3333
```bash
34-
tf init -var-file=dev.tfvars \
34+
tf init -var-file=prod.tfvars \
3535
-backend-config="bucket=$BACKEND_BUCKET_STATE" \
3636
-backend-config="prefix=terraform/state" \
3737
-backend-config="credentials=$BACKEND_CREDENTIAL_FILE_PATH" \
@@ -40,12 +40,12 @@ export TF_VAR_db_password="some-secret"
4040

4141
2. (Optional) First create the project. To do that, run the corresponding TF Module
4242
```bash
43-
tf apply -auto-approve -var-file=dev.tfvars -target=module.project
43+
tf apply -auto-approve -var-file=prod.tfvars -target=module.project
4444
```
4545

4646
3. Then create the repository. To do that, run the corresponding TF Module
4747
```bash
48-
tf apply -auto-approve -var-file=dev.tfvars
48+
tf apply -auto-approve -var-file=prod.tfvars
4949
```
5050

5151

deploy/ops-dev/kustomization.yaml

Lines changed: 0 additions & 5 deletions
This file was deleted.

deploy/ops-dev/monitoring.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

terraform/README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
<!-- BEGIN_TF_DOCS -->
2+
## Requirements
3+
4+
| Name | Version |
5+
|------|---------|
6+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.9.8 |
7+
| <a name="requirement_google"></a> [google](#requirement\_google) | ~> 6.0 |
8+
| <a name="requirement_google-beta"></a> [google-beta](#requirement\_google-beta) | ~> 6.0 |
9+
| <a name="requirement_helm"></a> [helm](#requirement\_helm) | ~> 2.0 |
10+
| <a name="requirement_kubernetes"></a> [kubernetes](#requirement\_kubernetes) | ~> 2.0 |
11+
| <a name="requirement_random"></a> [random](#requirement\_random) | ~> 3.0 |
12+
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | ~> 4.0 |
13+
14+
## Providers
15+
16+
| Name | Version |
17+
|------|---------|
18+
| <a name="provider_google"></a> [google](#provider\_google) | 6.50.0 |
19+
20+
## Modules
21+
22+
| Name | Source | Version |
23+
|------|--------|---------|
24+
| <a name="module_dns"></a> [dns](#module\_dns) | ./modules/dns/ | n/a |
25+
| <a name="module_gke_auth"></a> [gke\_auth](#module\_gke\_auth) | terraform-google-modules/kubernetes-engine/google//modules/auth | ~> 38.0 |
26+
| <a name="module_ip"></a> [ip](#module\_ip) | ./modules/ip/ | n/a |
27+
| <a name="module_k8s"></a> [k8s](#module\_k8s) | ./modules/k8s/ | n/a |
28+
| <a name="module_monitoring"></a> [monitoring](#module\_monitoring) | ./modules/monitoring/ | n/a |
29+
| <a name="module_project"></a> [project](#module\_project) | ./modules/project | n/a |
30+
| <a name="module_project_services"></a> [project\_services](#module\_project\_services) | terraform-google-modules/project-factory/google//modules/project_services | ~> 18.1 |
31+
| <a name="module_storage"></a> [storage](#module\_storage) | ./modules/storage/ | n/a |
32+
| <a name="module_vpc"></a> [vpc](#module\_vpc) | ./modules/vpc/ | n/a |
33+
| <a name="module_wazuh"></a> [wazuh](#module\_wazuh) | ./modules/wazuh/ | n/a |
34+
35+
## Resources
36+
37+
| Name | Type |
38+
|------|------|
39+
| [google_client_config.default](https://registry.terraform.io/providers/hashicorp/google/latest/docs/data-sources/client_config) | data source |
40+
41+
## Inputs
42+
43+
| Name | Description | Type | Default | Required |
44+
|------|-------------|------|---------|:--------:|
45+
| <a name="input_api_enabled_services"></a> [api\_enabled\_services](#input\_api\_enabled\_services) | The list of apis necessary for the project | `list(string)` | <pre>[<br/> "compute.googleapis.com",<br/> "gkehub.googleapis.com",<br/> "cloudresourcemanager.googleapis.com",<br/> "serviceusage.googleapis.com",<br/> "servicenetworking.googleapis.com",<br/> "cloudkms.googleapis.com",<br/> "logging.googleapis.com",<br/> "cloudbilling.googleapis.com",<br/> "iam.googleapis.com",<br/> "admin.googleapis.com",<br/> "storage-api.googleapis.com",<br/> "monitoring.googleapis.com",<br/> "securitycenter.googleapis.com",<br/> "billingbudgets.googleapis.com",<br/> "vpcaccess.googleapis.com",<br/> "dns.googleapis.com",<br/> "containerregistry.googleapis.com",<br/> "eventarc.googleapis.com",<br/> "run.googleapis.com",<br/> "container.googleapis.com",<br/> "dns.googleapis.com",<br/> "deploymentmanager.googleapis.com",<br/> "artifactregistry.googleapis.com",<br/> "cloudbuild.googleapis.com",<br/> "file.googleapis.com",<br/> "certificatemanager.googleapis.com",<br/> "domains.googleapis.com"<br/>]</pre> | no |
46+
| <a name="input_billing_account"></a> [billing\_account](#input\_billing\_account) | Billing account id for the project | `string` | `""` | no |
47+
| <a name="input_create_project"></a> [create\_project](#input\_create\_project) | Should we create a project? | `bool` | `false` | no |
48+
| <a name="input_credentials"></a> [credentials](#input\_credentials) | File path to the credentials file. Keep in mind that the user or service account associated to this credentials file must have the necessary permissions to create the resources defined in this module. | `string` | n/a | yes |
49+
| <a name="input_environment"></a> [environment](#input\_environment) | n/a | `string` | n/a | yes |
50+
| <a name="input_folder_id"></a> [folder\_id](#input\_folder\_id) | Folder ID in the folder in which project | `string` | `null` | no |
51+
| <a name="input_name"></a> [name](#input\_name) | base name of this deployment | `string` | `"monitoring"` | no |
52+
| <a name="input_org_id"></a> [org\_id](#input\_org\_id) | Google Organization ID | `string` | `null` | no |
53+
| <a name="input_project_id"></a> [project\_id](#input\_project\_id) | The ID of the project where this VPC will be created | `string` | `""` | no |
54+
| <a name="input_region"></a> [region](#input\_region) | The region where to deploy resources | `string` | n/a | yes |
55+
| <a name="input_root_domain_name"></a> [root\_domain\_name](#input\_root\_domain\_name) | n/a | `string` | `"observability.adorsys.team"` | no |
56+
| <a name="input_subject"></a> [subject](#input\_subject) | n/a | <pre>object({<br/> country = string<br/> locality = string<br/> organization = string<br/> common_name = string<br/> })</pre> | n/a | yes |
57+
| <a name="input_wazuh_helm_chart_pass"></a> [wazuh\_helm\_chart\_pass](#input\_wazuh\_helm\_chart\_pass) | n/a | `string` | n/a | yes |
58+
| <a name="input_wazuh_helm_chart_user"></a> [wazuh\_helm\_chart\_user](#input\_wazuh\_helm\_chart\_user) | n/a | `string` | n/a | yes |
59+
| <a name="input_wazuh_helm_chart_version"></a> [wazuh\_helm\_chart\_version](#input\_wazuh\_helm\_chart\_version) | n/a | `string` | n/a | yes |
60+
61+
## Outputs
62+
63+
| Name | Description |
64+
|------|-------------|
65+
| <a name="output_dns_ns"></a> [dns\_ns](#output\_dns\_ns) | The Zone NS |
66+
| <a name="output_k8s_host"></a> [k8s\_host](#output\_k8s\_host) | n/a |
67+
| <a name="output_k8s_name"></a> [k8s\_name](#output\_k8s\_name) | n/a |
68+
| <a name="output_wazuh_domains"></a> [wazuh\_domains](#output\_wazuh\_domains) | n/a |
69+
<!-- END_TF_DOCS -->

terraform/backend.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
terraform {
22
backend "gcs" {
3-
bucket = "tf-state-gis-dev"
3+
bucket = "observabilities-tool-tf-state-gis"
44
prefix = "terraform/state"
55
}
6-
}
6+
}

terraform/dev.tfvars

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)