Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

feat(MAJOR): full refactor of modules and examples #251

Merged
merged 38 commits into from
Apr 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
d32e5c6
initial version
FoSix Mar 21, 2023
48c31b5
add refactored modules
FoSix Mar 22, 2023
7d4acc1
remove obsolete examples
FoSix Mar 22, 2023
133175e
add the dedicated example refactor
FoSix Mar 22, 2023
5bd42f8
Merge branch 'main' into modules_refactor_4_flexibility
FoSix Mar 27, 2023
26a33ad
associate PIP based on name instead of an ID
FoSix Mar 27, 2023
dcfde1a
Merge branch 'main' into modules_refactor_4_flexibility
FoSix Mar 28, 2023
15992a3
load balancer module refactor
FoSix Mar 28, 2023
5f5c2a7
modules refactor + documentation
FoSix Apr 4, 2023
64dbc73
refarch + panorama refactor
FoSix Apr 4, 2023
b27ab04
standalone example refactor
FoSix Apr 5, 2023
1fdd4f5
scale set refactor - no docs yet
FoSix Apr 6, 2023
03e2bd7
Merge branch 'main' into modules_refactor_4_flexibility
FoSix Apr 11, 2023
17486b9
rename folders with examples to match new layout
FoSix Apr 11, 2023
1040d59
adding blackhole routes for appgw subnet
FoSix Apr 17, 2023
c2753e6
Pull latest changes from main
FoSix Apr 25, 2023
708d424
pop the minimum TF version to 1.2
FoSix Apr 25, 2023
cd4b9da
replace _name with _key
FoSix Apr 25, 2023
4a475fa
panorama resource naming
FoSix Apr 25, 2023
d09284c
unify outputs to plural
FoSix Apr 25, 2023
5133901
unified and more descriptive keys for VMs
FoSix Apr 25, 2023
9b75b28
panorama module refactor
FoSix Apr 25, 2023
56166ea
suffixes refactor
FoSix Apr 25, 2023
5d3c1ad
move init_cfg to sample file again
FoSix Apr 25, 2023
d55d7fb
remove hardcoded passwords and IPs
FoSix Apr 25, 2023
e08f3fd
removing wrong output from scale
FoSix Apr 25, 2023
b321737
test run updated tf lint
FoSix Apr 25, 2023
5450011
update old documentation
FoSix Apr 25, 2023
b5008a7
unifying the modules main name variable
FoSix Apr 25, 2023
230eb3a
switch to upgraded CI workflows
FoSix Apr 26, 2023
f486ca6
vmss documentation
FoSix Apr 26, 2023
f5d277b
readmes for NGW hub update
FoSix Apr 26, 2023
0186a17
update README documentation = no sorting, variables order
FoSix Apr 26, 2023
d9c4b70
documentation for the other examples
FoSix Apr 27, 2023
5b12e0c
Update README.md
migara Apr 27, 2023
0a3ed62
Update README.md
migara Apr 27, 2023
d9febbc
remove raw images
migara Apr 27, 2023
8d31c79
add vm size and panos version per vm/vmss
FoSix Apr 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint_pr_title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ on:
jobs:
lint_pr_title:
name: Lint PR
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].1
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].2
4 changes: 2 additions & 2 deletions .github/workflows/pr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ on:
jobs:
pr_ci_wrkflw:
name: Run CI
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].1
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].2
secrets: inherit
with:
cloud: azure
tf_version: 1.0 1.1 1.2 1.3 1.4
tf_version: 1.2 1.3 1.4
4 changes: 2 additions & 2 deletions .github/workflows/release_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ on:
jobs:
release_wrkflw:
name: Do release
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].1
uses: PaloAltoNetworks/terraform-modules-vmseries-ci-workflows/.github/workflows/[email protected].2
secrets: inherit
with:
cloud: azure
max_parallel: 10
tf_version: 1.0 1.1 1.2 1.3 1.4
tf_version: 1.2 1.3 1.4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ terraform.tfvars.json
*.auto.tfvars
*.auto.tfvars.json
*.tfplan
**/files
# **/
*bootstrap.xml

5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ repos:
hooks:
- id: terraform_fmt
- id: terraform_docs
args: ['--args=--lockfile=false']
args: [
'--args=--sort=false',
'--args=--lockfile=false',
]
- id: terraform_tflint
args: [
--args=--only=terraform_deprecated_interpolation,
Expand Down
29 changes: 0 additions & 29 deletions examples/bootstrap/Makefile

This file was deleted.

80 changes: 0 additions & 80 deletions examples/bootstrap/README.md

This file was deleted.

15 changes: 0 additions & 15 deletions examples/bootstrap/example.tfvars

This file was deleted.

1 change: 0 additions & 1 deletion examples/bootstrap/inbound_files/authcodes.sample

This file was deleted.

9 changes: 0 additions & 9 deletions examples/bootstrap/inbound_files/init-cfg.sample.txt

This file was deleted.

26 changes: 0 additions & 26 deletions examples/bootstrap/main.tf

This file was deleted.

1 change: 0 additions & 1 deletion examples/bootstrap/obew_files/authcodes.sample

This file was deleted.

9 changes: 0 additions & 9 deletions examples/bootstrap/obew_files/init-cfg.sample.txt

This file was deleted.

31 changes: 0 additions & 31 deletions examples/bootstrap/outputs.tf

This file was deleted.

47 changes: 0 additions & 47 deletions examples/bootstrap/variables.tf

This file was deleted.

39 changes: 39 additions & 0 deletions examples/common_vmseries/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
init:
@../../makefile.sh init

prep_vars: check_uuid
@../../makefile.sh prep_vars

validate:
@../../makefile.sh validate

plan: check_uuid init
@../../makefile.sh plan '${TF_PARAMS}'

plan_file: check_uuid init
@../../makefile.sh plan_file '${TF_PARAMS}'

apply_file:
@../../makefile.sh apply_file

apply: check_uuid init plan_file apply_file

idempotence: check_uuid
@../../makefile.sh idempotence '${TF_PARAMS}'

destroy: check_uuid
@../../makefile.sh destroy '${TF_PARAMS}'

delete_rg: check_uuid
@../../makefile.sh delete_rg '${PREFIX}${RG}'

check_uuid:
ifndef UUID
$(info Missing UUID, generate one for yourself using command:)
$(info export UUID=$$(uuidgen | tr '[:upper:]' '[:lower:]'))
$(error )
else
RG := $(shell echo ${UUID} | cut -d '-' -f 1,5)
PREFIX := ghci$(shell echo ${UUID} | cut -d '-' -f 2)-
TF_PARAMS := -var-file=example.tfvars -var resource_group_name=${RG} -var name_prefix=${PREFIX}
endif
Loading