Will return items from common over STACKS_ENV with config.d
Opened this issue · 0 comments
lewismarshall commented
Given the files below:
[root@17b26269e45a stacks]# head -8 ./config.d/playground-lewis.yaml
---
vpc_name: playground-lewis-vpc
etcd_instance_type: t2.small
compute_instance_type: t2.small
compute_pause_time: PT10S
var_lib_docker_size: 10
compute_data_volume_size: 2
dns_zone_name: aws-dsp-ci.notprod.homeoffice.gov.uk
[root@17b26269e45a stacks]# head -8 ./config.d/config.yaml
---
common:
compute_min_instances: 3
ssh_access_subnets:
- 10.99.0.0/16
dns_zone_name: dsp.notprod.homeoffice.gov.uk
You would expect that the settings in playground-lewis.yaml would take precedence, but they don't.
This is the case when specified as root config e.g. (config above):
[root@17b26269e45a stacks]# stacks config dns_zone_name
dsp.notprod.homeoffice.gov.uk
...or when specified as a specific environment e.g.:
[root@a3ce9872e1c2 stacks]# echo $STACKS_ENV
playground-lewis
[root@a3ce9872e1c2 stacks]# stacks config dns_zone_name
dsp.notprod.homeoffice.gov.uk
[root@a3ce9872e1c2 stacks]# head -9 config.d/playground-lewis.yaml
---
playground-lewis:
vpc_name: playground-lewis-vpc
etcd_instance_type: t2.small
compute_instance_type: t2.small
compute_pause_time: PT10S
var_lib_docker_size: 10
compute_data_volume_size: 2
dns_zone_name: aws-dsp-ci.notprod.homeoffice.gov.uk