Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will return items from common over STACKS_ENV with config.d #73

Open
lewismarshall opened this issue Jan 26, 2016 · 0 comments
Open

Will return items from common over STACKS_ENV with config.d #73

lewismarshall opened this issue Jan 26, 2016 · 0 comments
Assignees

Comments

@lewismarshall
Copy link

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
@vaijab vaijab self-assigned this Jan 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants