-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(MAJOR): Major refactor of all modules and examples (#37)
This PR introduces v3.0 of the repo and contains: - major refactor to all modules (except for legacy virtual_machine module) - replacement of application_insights module with a new ngfw_metrics module - introduction of test_infrastructure module - significant refactor to all reference architecture examples - bump of required Terraform version to 1.5 - bump of required AzureRM provider version to 3.98 Co-authored-by: Łukasz Pawlęga <lpawlega@paloaltonetworks.com> Co-authored-by: Sebastian Czech <sczech@paloaltonetworks.com> Co-authored-by: Alp Eren Kose <alperenkose@gmail.com>
- Loading branch information
1 parent
2619842
commit 4a68e10
Showing
184 changed files
with
33,564 additions
and
8,467 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ permissions: | |
on: | ||
workflow_dispatch: | ||
release: | ||
types: [released] | ||
types: [published] | ||
|
||
jobs: | ||
hub_sync: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
formatter: "markdown document" # this is required | ||
version: "" | ||
header-from: ".header.md" | ||
|
||
output: | ||
file: .README.md | ||
mode: replace | ||
|
||
sort: | ||
enabled: false | ||
|
||
settings: | ||
indent: 3 | ||
lockfile: false | ||
|
||
content: |- | ||
{{ .Header }} | ||
## Module's Required Inputs | ||
Name | Type | Description | ||
--- | --- | --- | ||
{{- range .Module.Inputs }} | ||
{{- if .Required }} | ||
[`{{ .Name }}`](#{{ .Name }}) | `{{ (split "(" .Type.Raw)._0 }}` | {{ (split "." .Description.Raw)._0 }}. | ||
{{- end }} | ||
{{- end }} | ||
{{ $optional := false -}} | ||
{{ range .Module.Inputs }}{{ if not .Required }}{{ $optional = true -}}{{ end -}}{{ end -}} | ||
{{ if $optional -}} | ||
## Module's Optional Inputs | ||
Name | Type | Description | ||
--- | --- | --- | ||
{{- range .Module.Inputs }} | ||
{{- if not .Required }} | ||
[`{{ .Name }}`](#{{ .Name }}) | `{{ (split "(" .Type.Raw)._0 }}` | {{ (split "." .Description.Raw)._0 }}. | ||
{{- end -}} | ||
{{ end -}} | ||
{{ end }} | ||
{{ if ne (len .Module.Outputs) 0 -}} | ||
## Module's Outputs | ||
Name | Description | ||
--- | --- | ||
{{- range .Module.Outputs }} | ||
`{{ .Name }}` | {{ .Description.Raw }} | ||
{{- end }} | ||
{{- end }} | ||
## Module's Nameplate | ||
{{ if ne (len .Module.Requirements) 0 -}} | ||
Requirements needed by this module: | ||
{{ range .Module.Requirements }} | ||
- `{{ .Name }}`{{ if .Version }}, version: {{ .Version }}{{ end }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.Providers) 0 -}} | ||
Providers used in this module: | ||
{{ range .Module.Providers }} | ||
- `{{ .Name }}`{{ if .Version }}, version: {{ .Version }}{{ end }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.ModuleCalls) 0 -}} | ||
Modules used in this module: | ||
Name | Version | Source | Description | ||
--- | --- | --- | --- | ||
{{- range .Module.ModuleCalls }} | ||
`{{ .Name }}` | {{ if .Version }}{{ .Version }}{{ else }}-{{ end }} | {{ .Source }} | {{ .Description }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.Resources) 0 -}} | ||
Resources used in this module: | ||
{{ range .Module.Resources }} | ||
- `{{ .Type }}` ({{ .Mode }}) | ||
{{- end }} | ||
{{- end }} | ||
## Inputs/Outpus details | ||
### Required Inputs | ||
{{ range .Module.Inputs -}} | ||
{{ if .Required -}} | ||
#### {{ .Name }} | ||
{{ .Description }} | ||
Type: {{ if lt (len (split "\n" .Type.Raw)) 2 }}{{ .Type }}{{ else }} | ||
```hcl | ||
{{ .Type }} | ||
``` | ||
{{ end }} | ||
<sup>[back to list](#modules-required-inputs)</sup> | ||
{{ end -}} | ||
{{- end -}} | ||
{{ if $optional -}} | ||
### Optional Inputs | ||
{{ range .Module.Inputs -}} | ||
{{ if not .Required -}} | ||
#### {{ .Name }} | ||
{{ .Description }} | ||
Type: {{ if lt (len (split "\n" .Type.Raw)) 2 }}{{ .Type }}{{ else }} | ||
```hcl | ||
{{ .Type }} | ||
``` | ||
{{ end }} | ||
Default value: `{{ .Default }}` | ||
<sup>[back to list](#modules-optional-inputs)</sup> | ||
{{ end }} | ||
{{- end -}} | ||
{{ end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
formatter: "markdown document" # this is required | ||
version: "" | ||
header-from: ".header.md" | ||
|
||
output: | ||
file: README.md | ||
mode: replace | ||
|
||
sort: | ||
enabled: false | ||
|
||
settings: | ||
indent: 3 | ||
lockfile: false | ||
|
||
content: |- | ||
{{ .Header }} | ||
## Module's Required Inputs | ||
Name | Type | Description | ||
--- | --- | --- | ||
{{- range .Module.Inputs }} | ||
{{- if .Required }} | ||
[`{{ .Name }}`](#{{ .Name }}) | `{{ (split "(" .Type.Raw)._0 }}` | {{ (split "." .Description.Raw)._0 }}. | ||
{{- end }} | ||
{{- end }} | ||
{{ $optional := false -}} | ||
{{ range .Module.Inputs }}{{ if not .Required }}{{ $optional = true -}}{{ end -}}{{ end -}} | ||
{{ if $optional -}} | ||
## Module's Optional Inputs | ||
Name | Type | Description | ||
--- | --- | --- | ||
{{- range .Module.Inputs }} | ||
{{- if not .Required }} | ||
[`{{ .Name }}`](#{{ .Name }}) | `{{ (split "(" .Type.Raw)._0 }}` | {{ (split "." .Description.Raw)._0 }}. | ||
{{- end -}} | ||
{{ end -}} | ||
{{ end }} | ||
{{ if ne (len .Module.Outputs) 0 -}} | ||
## Module's Outputs | ||
Name | Description | ||
--- | --- | ||
{{- range .Module.Outputs }} | ||
`{{ .Name }}` | {{ .Description.Raw }} | ||
{{- end }} | ||
{{- end }} | ||
## Module's Nameplate | ||
{{ if ne (len .Module.Requirements) 0 -}} | ||
Requirements needed by this module: | ||
{{ range .Module.Requirements }} | ||
- `{{ .Name }}`{{ if .Version }}, version: {{ .Version }}{{ end }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.Providers) 0 -}} | ||
Providers used in this module: | ||
{{ range .Module.Providers }} | ||
- `{{ .Name }}`{{ if .Version }}, version: {{ .Version }}{{ end }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.ModuleCalls) 0 -}} | ||
Modules used in this module: | ||
Name | Version | Source | Description | ||
--- | --- | --- | --- | ||
{{- range .Module.ModuleCalls }} | ||
`{{ .Name }}` | {{ if .Version }}{{ .Version }}{{ else }}-{{ end }} | {{ .Source }} | {{ .Description }} | ||
{{- end }} | ||
{{- end }} | ||
{{ if ne (len .Module.Resources) 0 -}} | ||
Resources used in this module: | ||
{{ range .Module.Resources }} | ||
- `{{ .Type }}` ({{ .Mode }}) | ||
{{- end }} | ||
{{- end }} | ||
## Inputs/Outpus details | ||
### Required Inputs | ||
{{ range .Module.Inputs -}} | ||
{{ if .Required -}} | ||
#### {{ .Name }} | ||
{{ .Description }} | ||
Type: {{ if lt (len (split "\n" .Type.Raw)) 2 }}{{ .Type }}{{ else }} | ||
```hcl | ||
{{ .Type }} | ||
``` | ||
{{ end }} | ||
<sup>[back to list](#modules-required-inputs)</sup> | ||
{{ end -}} | ||
{{- end -}} | ||
{{ if $optional -}} | ||
### Optional Inputs | ||
{{ range .Module.Inputs -}} | ||
{{ if not .Required -}} | ||
#### {{ .Name }} | ||
{{ .Description }} | ||
Type: {{ if lt (len (split "\n" .Type.Raw)) 2 }}{{ .Type }}{{ else }} | ||
```hcl | ||
{{ .Type }} | ||
``` | ||
{{ end }} | ||
Default value: `{{ .Default }}` | ||
<sup>[back to list](#modules-optional-inputs)</sup> | ||
{{ end }} | ||
{{- end -}} | ||
{{ end -}} |
Oops, something went wrong.