Skip to content
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

document authselect exit code #26

Closed
pbrezina opened this issue Jan 8, 2018 · 1 comment
Closed

document authselect exit code #26

pbrezina opened this issue Jan 8, 2018 · 1 comment

Comments

@pbrezina
Copy link
Member

pbrezina commented Jan 8, 2018

John Florian, from fedora-devel mailing list:

One last thought, how friendly is this going to be with tools like
puppet and ansible? For example, would something like this be doable?

exec { 'authselect select sssd':
unless => "authselect current | grep -q '^sssd$' && authselect check
| grep -q unmodified"
}

The idea being to only run to make a change if needed to keep change
reports tidy. I can't quite tell at this point because:

$ sudo authselect current
No existing configuration detected.

In this sense, it would be helpful if authselect(8) had some details
about exit codes. Also, the "check" command could be more explicit
about what happens with exit codes/output messages when:

  • the config was created by authselect and remains unmodified
  • the config was created by authselect but has since been modified
  • the config hasn't apparently ever been touched by authselect

Maybe another command like "test" command could be ideal for the job if
it did much the same but gave diff output and suitable exit code
indicating spot-on vs. needs-change.

@pbrezina
Copy link
Member Author

Done. 44fe562

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

No branches or pull requests

1 participant