question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[salt-cloud] Add merging ability to profile/provider extensions

See original GitHub issue

This 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:closed
  • Created 9 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
SJerncommented, Oct 25, 2017

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.

0reactions
techhatcommented, Jun 2, 2015

This was fixed a while ago… configuration is merged from main cloud config into providers, then profiles (including grains).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found