├── .github ├── CODEOWNERS ├── release-please.yml ├── renovate.json ├── trusted-contribution.yml └── workflows │ ├── lint.yaml │ └── stale.yml ├── .gitignore ├── .kitchen.yml ├── CHANGELOG.md ├── CODEOWNERS ├── CONTRIBUTING.md ├── LICENSE ├── Makefile ├── README.md ├── examples ├── gsutil │ ├── README.md │ ├── init_scripts │ │ └── init_script_sample │ ├── main.tf │ ├── outputs.tf │ ├── templates │ │ └── startup-script-custom.tpl │ └── variables.tf └── simple_example │ ├── README.md │ ├── files │ └── startup-script-custom │ ├── main.tf │ ├── outputs.tf │ └── variables.tf ├── files ├── get_from_bucket.sh ├── init_gsutil_crcmod_el.sh ├── setup_init_script.sh ├── setup_sudoers.sh ├── startup-script-stdlib-body.sh └── startup-script-stdlib-head.sh ├── main.tf ├── outputs.tf ├── test ├── .gitignore ├── fixtures │ ├── gsutil │ │ ├── main.tf │ │ ├── outputs.tf │ │ └── variables.tf │ └── simple_example │ │ ├── main.tf │ │ ├── outputs.tf │ │ └── variables.tf ├── integration │ ├── gsutil │ │ ├── controls │ │ │ └── gcloud.rb │ │ └── inspec.yml │ └── simple_example │ │ ├── controls │ │ ├── gcloud.rb │ │ └── sudoers.rb │ │ └── inspec.yml ├── setup │ ├── .gitignore │ ├── iam.tf │ ├── main.tf │ ├── outputs.tf │ ├── variables.tf │ └── versions.tf ├── spec │ ├── cmd_spec.bats │ ├── debug_spec.bats │ ├── error_spec.bats │ ├── fixtures │ │ ├── load_config_values │ │ │ └── computeMetadata │ │ │ │ └── v1 │ │ │ │ └── instance │ │ │ │ └── attributes │ │ │ │ └── startup-script-config │ │ ├── main-negative │ │ │ └── computeMetadata │ │ │ │ └── v1 │ │ │ │ └── instance │ │ │ │ └── attributes │ │ │ │ └── startup-script-custom │ │ ├── main-with-config │ │ │ └── computeMetadata │ │ │ │ └── v1 │ │ │ │ └── instance │ │ │ │ └── attributes │ │ │ │ ├── startup-script-config │ │ │ │ └── startup-script-custom │ │ ├── main │ │ │ └── computeMetadata │ │ │ │ └── v1 │ │ │ │ └── instance │ │ │ │ └── attributes │ │ │ │ └── startup-script-custom │ │ └── metadata_get │ │ │ └── computeMetadata │ │ │ └── v1 │ │ │ └── instance │ │ │ └── attributes │ │ │ └── some-key │ ├── info_spec.bats │ ├── init_directories_spec.bats │ ├── init_global_vars_spec.bats │ ├── init_gsutil_crcmod_el.bats │ ├── init_gsutil_crcmod_el_enabled.bats │ ├── init_startup_stdlib_spec.bats │ ├── load_config_values_spec.bats │ ├── main_spec.bats │ ├── metadata_get_spec.bats │ ├── run_or_die_spec.bats │ ├── startup_script_stdlib_version_spec.bats │ └── test_helper │ │ └── load.bash └── task_helper_functions.sh ├── variables.tf └── versions.tf /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/release-please.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/release-please.yml -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/renovate.json -------------------------------------------------------------------------------- /.github/trusted-contribution.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/trusted-contribution.yml -------------------------------------------------------------------------------- /.github/workflows/lint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/workflows/lint.yaml -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.github/workflows/stale.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.gitignore -------------------------------------------------------------------------------- /.kitchen.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/.kitchen.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/CODEOWNERS -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/README.md -------------------------------------------------------------------------------- /examples/gsutil/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/README.md -------------------------------------------------------------------------------- /examples/gsutil/init_scripts/init_script_sample: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/init_scripts/init_script_sample -------------------------------------------------------------------------------- /examples/gsutil/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/main.tf -------------------------------------------------------------------------------- /examples/gsutil/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/outputs.tf -------------------------------------------------------------------------------- /examples/gsutil/templates/startup-script-custom.tpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/templates/startup-script-custom.tpl -------------------------------------------------------------------------------- /examples/gsutil/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/gsutil/variables.tf -------------------------------------------------------------------------------- /examples/simple_example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/simple_example/README.md -------------------------------------------------------------------------------- /examples/simple_example/files/startup-script-custom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/simple_example/files/startup-script-custom -------------------------------------------------------------------------------- /examples/simple_example/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/simple_example/main.tf -------------------------------------------------------------------------------- /examples/simple_example/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/simple_example/outputs.tf -------------------------------------------------------------------------------- /examples/simple_example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/examples/simple_example/variables.tf -------------------------------------------------------------------------------- /files/get_from_bucket.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/get_from_bucket.sh -------------------------------------------------------------------------------- /files/init_gsutil_crcmod_el.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/init_gsutil_crcmod_el.sh -------------------------------------------------------------------------------- /files/setup_init_script.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/setup_init_script.sh -------------------------------------------------------------------------------- /files/setup_sudoers.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/setup_sudoers.sh -------------------------------------------------------------------------------- /files/startup-script-stdlib-body.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/startup-script-stdlib-body.sh -------------------------------------------------------------------------------- /files/startup-script-stdlib-head.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/files/startup-script-stdlib-head.sh -------------------------------------------------------------------------------- /main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/main.tf -------------------------------------------------------------------------------- /outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/outputs.tf -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | source.sh 2 | -------------------------------------------------------------------------------- /test/fixtures/gsutil/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/gsutil/main.tf -------------------------------------------------------------------------------- /test/fixtures/gsutil/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/gsutil/outputs.tf -------------------------------------------------------------------------------- /test/fixtures/gsutil/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/gsutil/variables.tf -------------------------------------------------------------------------------- /test/fixtures/simple_example/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/simple_example/main.tf -------------------------------------------------------------------------------- /test/fixtures/simple_example/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/simple_example/outputs.tf -------------------------------------------------------------------------------- /test/fixtures/simple_example/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/fixtures/simple_example/variables.tf -------------------------------------------------------------------------------- /test/integration/gsutil/controls/gcloud.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/integration/gsutil/controls/gcloud.rb -------------------------------------------------------------------------------- /test/integration/gsutil/inspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/integration/gsutil/inspec.yml -------------------------------------------------------------------------------- /test/integration/simple_example/controls/gcloud.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/integration/simple_example/controls/gcloud.rb -------------------------------------------------------------------------------- /test/integration/simple_example/controls/sudoers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/integration/simple_example/controls/sudoers.rb -------------------------------------------------------------------------------- /test/integration/simple_example/inspec.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/integration/simple_example/inspec.yml -------------------------------------------------------------------------------- /test/setup/.gitignore: -------------------------------------------------------------------------------- 1 | terraform.tfvars 2 | source.sh 3 | -------------------------------------------------------------------------------- /test/setup/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/setup/iam.tf -------------------------------------------------------------------------------- /test/setup/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/setup/main.tf -------------------------------------------------------------------------------- /test/setup/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/setup/outputs.tf -------------------------------------------------------------------------------- /test/setup/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/setup/variables.tf -------------------------------------------------------------------------------- /test/setup/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/setup/versions.tf -------------------------------------------------------------------------------- /test/spec/cmd_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/cmd_spec.bats -------------------------------------------------------------------------------- /test/spec/debug_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/debug_spec.bats -------------------------------------------------------------------------------- /test/spec/error_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/error_spec.bats -------------------------------------------------------------------------------- /test/spec/fixtures/load_config_values/computeMetadata/v1/instance/attributes/startup-script-config: -------------------------------------------------------------------------------- 1 | MY_CONFIG_VAR="MY_VALUE" 2 | -------------------------------------------------------------------------------- /test/spec/fixtures/main-negative/computeMetadata/v1/instance/attributes/startup-script-custom: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | stdlib::error "Something went wrong" 4 | exit 100 5 | -------------------------------------------------------------------------------- /test/spec/fixtures/main-with-config/computeMetadata/v1/instance/attributes/startup-script-config: -------------------------------------------------------------------------------- 1 | MY_CONFIG_VAR="MY_VALUE" 2 | -------------------------------------------------------------------------------- /test/spec/fixtures/main-with-config/computeMetadata/v1/instance/attributes/startup-script-custom: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/fixtures/main-with-config/computeMetadata/v1/instance/attributes/startup-script-custom -------------------------------------------------------------------------------- /test/spec/fixtures/main/computeMetadata/v1/instance/attributes/startup-script-custom: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | stdlib::info 'Hello world!' 4 | -------------------------------------------------------------------------------- /test/spec/fixtures/metadata_get/computeMetadata/v1/instance/attributes/some-key: -------------------------------------------------------------------------------- 1 | some-value 2 | -------------------------------------------------------------------------------- /test/spec/info_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/info_spec.bats -------------------------------------------------------------------------------- /test/spec/init_directories_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/init_directories_spec.bats -------------------------------------------------------------------------------- /test/spec/init_global_vars_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/init_global_vars_spec.bats -------------------------------------------------------------------------------- /test/spec/init_gsutil_crcmod_el.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/init_gsutil_crcmod_el.bats -------------------------------------------------------------------------------- /test/spec/init_gsutil_crcmod_el_enabled.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/init_gsutil_crcmod_el_enabled.bats -------------------------------------------------------------------------------- /test/spec/init_startup_stdlib_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/init_startup_stdlib_spec.bats -------------------------------------------------------------------------------- /test/spec/load_config_values_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/load_config_values_spec.bats -------------------------------------------------------------------------------- /test/spec/main_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/main_spec.bats -------------------------------------------------------------------------------- /test/spec/metadata_get_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/metadata_get_spec.bats -------------------------------------------------------------------------------- /test/spec/run_or_die_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/run_or_die_spec.bats -------------------------------------------------------------------------------- /test/spec/startup_script_stdlib_version_spec.bats: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/startup_script_stdlib_version_spec.bats -------------------------------------------------------------------------------- /test/spec/test_helper/load.bash: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/spec/test_helper/load.bash -------------------------------------------------------------------------------- /test/task_helper_functions.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/test/task_helper_functions.sh -------------------------------------------------------------------------------- /variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/variables.tf -------------------------------------------------------------------------------- /versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terraform-google-modules/terraform-google-startup-scripts/HEAD/versions.tf --------------------------------------------------------------------------------