-
Notifications
You must be signed in to change notification settings - Fork 66
Allow specification of command-line values using config file #299
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
Comments
Since almost all user-sync runs need some arguments, and most runs are scripted, can you provide a little more motivation for this enhancement request? Why is it desirable to override the default in the config as opposed to the invocation script? |
Not OP, but if I had run my first few attempts without the initial -test parameter. I would have had a few hundred extra accounts I needed to remove from Adobe. I then made documenting this a priority. As a windows admin. I think it runs counter to the typical windows admin experience. I can also imagine scenarios in the future where my team doesn't know how it works and runs it without parameters before reading documentation. I also looked for this configuration to prevent what I thought might be a very annoying accident in the future. Windows admins generally expect a 1 user sync scenario or an error to --help without parameters. I think it just comes down to preference. |
So perhaps the problem is that we default the |
Not OP, but if I had run my first few attempts without the initial -test
parameter. I would have had a few hundred extra accounts I needed to remove
from Adobe. I then made documenting this a priority.
This was what I ran into. I was debugging an issue and didn't look
closely enough at the parameters I used to run user-sync out of cron. I
ended up with about 10k more users than I intended.
There is precedent for providing config file settings / environment
variables for options you can set on the command line. I could envision
not having to provide any of the command line options (side from the top
level config file) if the config file was fully configured.
…On Mon, Nov 13, 2017 at 2:53 PM, Daniel Brotsky ***@***.***> wrote:
So perhaps the problem is that we default the all value rather than
having no default and warning when --users is not specified? Sadly, that
would be a backward-incompatible change.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#299 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-SKwB1vXqoAOfp_aE4licdK1ezy0pvks5s2KxGgaJpZM4QWiPu>
.
|
OK, so what I'm hearing is:
So how about a single, new, top-level config file section invocation-defaults:
test-mode: NO
users: all
process-groups: NO
update-users: NO
adobe-only-user-action: preserve
adobe-only-user-list:
user-filter:
strategy: sync This allows setting the values for all command line parameters which don't control the reading of the configuration file. These default values are backward-compatible. And any values specified for one of these on the command-line will override its values in the configuration file. Thoughts? Does this provide what you are looking for? |
This looks like a good feature add. We will pick it up in the next full dot, not the current double-dot. |
- Update the docs for #299. - Move the `invocation_defaults` section to the bottom of the sample config. - Update version to 2.2rc2 - Update release notes.
The default user population is "all" (which is every user that user-sync can find in the local user source).
It would be helpful if it were possible to change the default population in the config file, in addition to the existing command line option.
The text was updated successfully, but these errors were encountered: