فهرست منبع

Adds support for a "DISABLED" file to skip select modules

It's a good place to put notes as to 'why', too.

also adds some missing .tfswitch.toml links.
Fred Damstra 4 سال پیش
والد
کامیت
87ac71ad57
20فایلهای تغییر یافته به همراه22 افزوده شده و 0 حذف شده
  1. 3 0
      bin/terragrunt-apply-all
  2. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/000-mdradmin-bootstrap/DISABLED
  3. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/001-tfstate/DISABLED
  4. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/072-salt-master-inventory-role/.tfswitch.toml
  5. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/075-codebuild-ecr-base/.tfswitch.toml
  6. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/080-codebuild-ecr-sample/.tfswitch.toml
  7. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/080-codebuild-ecr-sample/DISABLED
  8. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/081-codebuild-rpm-collectd/.tfswitch.toml
  9. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/081-codebuild-rpm-collectd/DISABLED
  10. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/085-codebuild-ecr-customer-portal/.tfswitch.toml
  11. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/090-codebuild-rpm-tmux/.tfswitch.toml
  12. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/090-codebuild-rpm-tmux/DISABLED
  13. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/095-codebuild-rpm-aws-efs-utils/.tfswitch.toml
  14. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/095-codebuild-rpm-aws-efs-utils/DISABLED
  15. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/100-codebuild-rpm-syslog-ng/.tfswitch.toml
  16. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/100-codebuild-rpm-syslog-ng/DISABLED
  17. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/105-codebuild-ecr-mcas-container/.tfswitch.toml
  18. 1 0
      common/aws-us-gov/afs-mdr-common-services-gov/105-codebuild-ecr-mcas-container/DISABLED
  19. 1 0
      common/aws/mdr-common-services/000-mdradmin-bootstrap/DISABLED
  20. 1 0
      common/aws/mdr-common-services/001-tfstate/DISABLED

+ 3 - 0
bin/terragrunt-apply-all

@@ -136,6 +136,9 @@ for i in `seq -f "%g*" 0 9 | sort -n`; do
           echo "========== Region completed: $i"
         fi
       done
+    elif [[ -f DISABLED ]]; then
+      echo Skipping module due to \"DISABLED\" file.
+      EXITCODE=0
     else
       [[ $TESTING ]] && ${TERRAGRUNT_BIN} plan  # Run a plan if testing
       [[ $TESTING ]] || ${TERRAGRUNT_BIN} init  # Run an init and apply otherwise

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/000-mdradmin-bootstrap/DISABLED

@@ -0,0 +1 @@
+Terraform only. Disabled for terragrunt-apply-all

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/001-tfstate/DISABLED

@@ -0,0 +1 @@
+Terraform only. Disabled for terragrunt-apply-all

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/072-salt-master-inventory-role/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/075-codebuild-ecr-base/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/080-codebuild-ecr-sample/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/080-codebuild-ecr-sample/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/081-codebuild-rpm-collectd/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/081-codebuild-rpm-collectd/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/085-codebuild-ecr-customer-portal/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/090-codebuild-rpm-tmux/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/090-codebuild-rpm-tmux/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/095-codebuild-rpm-aws-efs-utils/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/095-codebuild-rpm-aws-efs-utils/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/100-codebuild-rpm-syslog-ng/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/100-codebuild-rpm-syslog-ng/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/105-codebuild-ecr-mcas-container/.tfswitch.toml

@@ -0,0 +1 @@
+../../../../../.tfswitch.toml

+ 1 - 0
common/aws-us-gov/afs-mdr-common-services-gov/105-codebuild-ecr-mcas-container/DISABLED

@@ -0,0 +1 @@
+Proof of concept code that we may need in the future.

+ 1 - 0
common/aws/mdr-common-services/000-mdradmin-bootstrap/DISABLED

@@ -0,0 +1 @@
+Terraform only. Disabled for terragrunt-apply-all

+ 1 - 0
common/aws/mdr-common-services/001-tfstate/DISABLED

@@ -0,0 +1 @@
+Terraform only. Disabled for terragrunt-apply-all