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

[master] Fix 64256: Add flags to create local users and groups #64257

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

bluesliverx
Copy link
Contributor

What does this PR do?

Adds a local flag for user/group creation to force users and groups to be created locally instead of in a remotely managed account management system (e.g. LDAP).

What issues does this PR fix or reference?

Fixes: #64256

New Behavior

If the local flag is specified as truthy, the luseradd, lgroupadd, etc commands will be used instead. If these do not exist on the system, this will fail.

Merge requirements satisfied?

[NOTICE] Bug fixes or features added to Salt require tests.

Commits signed with GPG?

No

@bluesliverx bluesliverx requested a review from a team as a code owner May 8, 2023 18:31
@bluesliverx bluesliverx requested review from cmcmarrow and removed request for a team May 8, 2023 18:31
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 19:17 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 19:17 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 19:17 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:26 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:26 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:26 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:54 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:54 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 20:54 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 22:12 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 22:12 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 22:12 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:05 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:05 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:05 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:19 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:19 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 8, 2023 23:19 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 9, 2023 00:46 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 9, 2023 00:46 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 9, 2023 00:46 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 9, 2023 01:40 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci May 9, 2023 01:40 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:36 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:36 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:36 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:36 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:53 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 15:59 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 16:58 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 17:21 — with GitHub Actions Inactive
@Ch3LL
Copy link
Contributor

Ch3LL commented Jun 7, 2023

Apologies, a recent change to pre-commit to make the code compatible with 3.8 and above due to 3.7 becoming end of life soon was recently merged. Do you mind fixing that pre-commit failure? If not I can certainly push up a change.

@bluesliverx
Copy link
Contributor Author

@Ch3LL done! I did it earlier for the latest commit, but now applied it to the original commit as well.

@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 21:35 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 22:17 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 22:18 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 22:35 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 22:36 — with GitHub Actions Inactive
@bluesliverx bluesliverx temporarily deployed to ci June 7, 2023 22:38 — with GitHub Actions Inactive
@Ch3LL Ch3LL merged commit ced3436 into saltstack:master Jun 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Allow creation of local users and groups
2 participants