Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

managing /etc/salt/minion directly from salt provision #116

Open
yee379 opened this issue Dec 16, 2015 · 0 comments
Open

managing /etc/salt/minion directly from salt provision #116

yee379 opened this issue Dec 16, 2015 · 0 comments

Comments

@yee379
Copy link

yee379 commented Dec 16, 2015

i don't really like managing the minion configs as separate files via salt.minion_config. it makes me duplicate a bunch of data around for my vagrant environment. it also makes managing a large collection of vagrant boxes in (one) large testing environments rather cumbersome. how about being able to define it directly from the DSL? i was thinking something like:

vm.provision :salt do |salt|
  salt.minion = {
    'id' => 'my_vagrant.local',
    'file_roots" => {
      "my_env": [
        '/srv/salt/file_root',
      ]
    }
    ....
  }
end

or have salt.minion_config check the data type of it's argument (if string, then use file; otherwise if its a hash, then dump it out to the file)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant