Skip to content

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

Closed
lhoekenga opened this issue Nov 8, 2017 · 6 comments
Closed

Allow specification of command-line values using config file #299

lhoekenga opened this issue Nov 8, 2017 · 6 comments
Assignees
Milestone

Comments

@lhoekenga
Copy link

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.

@adobeDan
Copy link
Contributor

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?

@Jeff-Jerousek
Copy link

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.

@adobeDan
Copy link
Contributor

adobeDan commented Nov 13, 2017

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 backwards-incompatible change.

@lhoekenga
Copy link
Author

lhoekenga commented Nov 13, 2017 via email

@adobeDan
Copy link
Contributor

OK, so what I'm hearing is:

It's always better to have one place to configure things rather than two, because that makes one fewer place you have to check to be sure you get them right. But right now there are always two for User Sync: the config file and the command line. Can't we just have one?"

So how about a single, new, top-level config file section invocation-defaults with the following sub-settings and default values:

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?

@adobe-apiplatform adobe-apiplatform deleted a comment from adobeDan Nov 16, 2017
@adobeDan
Copy link
Contributor

This looks like a good feature add. We will pick it up in the next full dot, not the current double-dot.

@adobeDan adobeDan self-assigned this Nov 19, 2017
@adobeDan adobeDan added this to the 2.3 milestone Nov 19, 2017
@adobeDan adobeDan changed the title Allow specification of user population using config file Allow specification of command-line values using config file Dec 3, 2017
adobeDan added a commit that referenced this issue Dec 4, 2017
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants