This file contains hidden or 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
| // getInterfaceValue will return an interface{} with an appropriate type for the puppetType | |
| // NOTE: This is *very* basic and will revert to just returning the string value by default. | |
| func getInterfaceValue(puppetType string, val string) (retVal interface{}) { | |
| var err error | |
| if val == "" { | |
| return nil // Don't set a parameter that is "" (empty) | |
| } | |
| // Handle Optional[WHATEVER] | |
| if strings.HasPrefix(puppetType, "Optional[") { | |
| puppetType = strings.TrimPrefix(puppetType, "Optional[") |
This file contains hidden or 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
| # External Service Monitoring | |
| # ESM Consul Policy | |
| # - https://github.com/hashicorp/consul-esm#consul-acl-policies | |
| # NOTE: This could be more restrictive - this one is wide open | |
| resource "consul_acl_policy" "esm" { | |
| name = "consul-esm" | |
| rules = <<-RULE | |
| agent_prefix "" { | |
| policy = "read" |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| ############################################################################ | |
| # shell script for applying license bucket and licenses to an Artifactory # | |
| # deployment. # | |
| # # | |
| # Author: Andrew Milam <[email protected]> # | |
| # # | |
| # WARNING: This script is designed as a terraform shell_script resource! # |
This file contains hidden or 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
| ## Providers | |
| terraform { | |
| required_providers { | |
| shell = { | |
| source = "scottwinkler/shell" | |
| version = "~> 1.7" | |
| } | |
| } | |
| } |
OlderNewer