[salt-cloud] Add merging ability to profile/provider extensions
See original GitHub issueThis is duplicated from salt-cloud issue here: https://github.com/saltstack/salt-cloud/issues/908
When one profile extends another - only the applied profiles grains will be added to the instance, rather than merging the grains.
For example:
ubuntu_13.10_az_1:
provider: ec2-ap-southeast-2
image: ami-XXXXXXXX
ssh_username: ubuntu
location: ap-southeast-2
availability_zone: ap-southeast-2a
subnetid: subnet-XXXXXXXX
script: /srv/salt/infrastructure-profiles/platform.sh
minion:
master: X.X.X.X
grains:
location: ap-southeast-2a
and
AIO_zk_1_profile:
size: m3.xlarge
grains:
aio_role: zookeeper
extends: ubuntu_13.10_az_1
Then invoking # salt-call grains.items | grep location
on the new instance will not return anything.
Checking for the grain from the sub-node will return the correct value:
# salt-call grains.items | grep aio_role
aio_role: zookeeper
Issue Analytics
- State:
- Created 9 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Miscellaneous Salt Cloud Options
This page describes various miscellaneous options available in Salt Cloud ... For this to happen, the following line needs to be added to...
Read more >Extending salt-cloud profile/provider config using a list format
This would be different in that you're extending multiple profiles within one profile, but doing so in a list. 1
Read more >Ubuntu Manpage: salt - Salt Documentation
You should be able to start your Salt Master now using the command seen here: systemctl start salt-master Now go to the Configuring...
Read more >Salt Documentation - Linux Man Pages (7) - SysTutorials
Thus, add-apt-repository should be able to be used out-of-the-box to add the ... the C:\salt\conf directory and edit the file name minion (no...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @techhat, exactly which commit fixed this? I’m currently on salt-master 2017.7.0, but the grains still do not seem to merge.
This was fixed a while ago… configuration is merged from main cloud config into providers, then profiles (including grains).