-
Notifications
You must be signed in to change notification settings - Fork 419
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
Switch config file.recurse to clean by default and tell it to ignore _* #111
Conversation
Salt writes it's schedule file to /etc/salt/{minion,master}.d/_schedule.conf We don't want to stomp all over Salt's files, but we do want a pristine starting point to lay down our managed config. So we use clean: True on the file.recurse call, but we tell it to ignore files that start with an _ We have to rename the current config file (_defaults.conf) because it will be ignored by the rule that ignores Salt's _* config files. This also means we need to clean up old config files (_defaults.conf) and restart the service if we cleaned it up.
Hopefully I didn't miss anything from #104 |
@iggy why not rename the file to defaults.conf why f_defaults.conf? |
I was just going for a short prefix (f_ "formula") that indicated that it was related to formulas. I don't feel particularly strongly about it. |
@iggy that's what I thought, and I think naming it override_defaults.conf is easier to figure out |
I'll wait and see what other people think. I'm not sure I like either option so far. |
@gravyboat @nmadhok any preference on what to name the "default" conf file? |
@iggy I'd say just name it override_defaults.conf for the sake of simplicity. I don't feel strongly about it one way or the other though. Let's see what Nitin thinks. |
I don't think the naming really matters. override_defaults.conf perfectly works. Merging this one. Thanks @iggy @aboe76 and @gravyboat for the discussion! |
Switch config file.recurse to clean by default and tell it to ignore _*
@gravyboat Like I said the name doesn't really matter. |
I already said I'm not real fond of either. I was mostly being lazy when I did f_defaults.conf (but to give some context, it was actually formula_defaults.conf shortened). |
@gravyboat Haha that's a good one! We can change it to another name. I don't mind :) |
I'll do whatever we decide on. Would like to get it done sooner rather than later so I don't have to clean up 2 old config files. |
@iggy Since no one really cares lets just make it override_defaults.conf, stays concise but can't be interpreted in certain ways. |
So what does override mean exactly? |
@iggy this gets better and better...:) let's keep fuc_defaults.conf that should stir up a lot of conversation... |
Salt writes it's schedule file to /etc/salt/{minion,master}.d/_schedule.conf
We don't want to stomp all over Salt's files, but we do want a pristine
starting point to lay down our managed config. So we use clean: True on the
file.recurse call, but we tell it to ignore files that start with an _
We have to rename the current config file (_defaults.conf) because it will be
ignored by the rule that ignores Salt's _* config files.
This also means we need to clean up old config files (_defaults.conf) and
restart the service if we cleaned it up.