config: case sensitive templates
This commit is contained in:
parent
e523e400b8
commit
fa175113fe
|
@ -55,7 +55,7 @@ func (v *FlagVarFile) Set(raw string) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
const libuclParseFlags = libucl.ParserKeyLowercase
|
const libuclParseFlags = libucl.ParserNoTime
|
||||||
|
|
||||||
func loadVarFile(path string) (map[string]string, error) {
|
func loadVarFile(path string) (map[string]string, error) {
|
||||||
var obj *libucl.Object
|
var obj *libucl.Object
|
||||||
|
|
|
@ -29,7 +29,7 @@ var ContextOpts terraform.ContextOpts
|
||||||
|
|
||||||
// Put the parse flags we use for libucl in a constant so we can get
|
// Put the parse flags we use for libucl in a constant so we can get
|
||||||
// equally behaving parsing everywhere.
|
// equally behaving parsing everywhere.
|
||||||
const libuclParseFlags = libucl.ParserKeyLowercase
|
const libuclParseFlags = libucl.ParserNoTime
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
BuiltinConfig.Providers = map[string]string{
|
BuiltinConfig.Providers = map[string]string{
|
||||||
|
|
|
@ -9,7 +9,7 @@ import (
|
||||||
|
|
||||||
// Put the parse flags we use for libucl in a constant so we can get
|
// Put the parse flags we use for libucl in a constant so we can get
|
||||||
// equally behaving parsing everywhere.
|
// equally behaving parsing everywhere.
|
||||||
const libuclParseFlags = libucl.ParserKeyLowercase
|
const libuclParseFlags = libucl.ParserNoTime
|
||||||
|
|
||||||
// libuclConfigurable is an implementation of configurable that knows
|
// libuclConfigurable is an implementation of configurable that knows
|
||||||
// how to turn libucl configuration into a *Config object.
|
// how to turn libucl configuration into a *Config object.
|
||||||
|
|
|
@ -485,6 +485,7 @@ do
|
||||||
|
|
||||||
const basicResourcesStr = `
|
const basicResourcesStr = `
|
||||||
aws_instance[db] (x1)
|
aws_instance[db] (x1)
|
||||||
|
VPC
|
||||||
security_groups
|
security_groups
|
||||||
dependsOn
|
dependsOn
|
||||||
aws_instance.web
|
aws_instance.web
|
||||||
|
|
|
@ -31,6 +31,7 @@ resource aws_instance "web" {
|
||||||
|
|
||||||
resource "aws_instance" "db" {
|
resource "aws_instance" "db" {
|
||||||
security_groups = "${aws_security_group.firewall.*.id}"
|
security_groups = "${aws_security_group.firewall.*.id}"
|
||||||
|
VPC = "foo"
|
||||||
|
|
||||||
depends_on = ["aws_instance.web"]
|
depends_on = ["aws_instance.web"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
"aws_instance": {
|
"aws_instance": {
|
||||||
"db": {
|
"db": {
|
||||||
"security_groups": ["${aws_security_group.firewall.*.id}"],
|
"security_groups": ["${aws_security_group.firewall.*.id}"],
|
||||||
|
"VPC": "foo",
|
||||||
"depends_on": ["aws_instance.web"]
|
"depends_on": ["aws_instance.web"]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue