Page MenuHomeDevCentral

Provision users and groups to servers
ClosedPublic

Authored by dereckson on Nov 10 2017, 02:10.

Details

Summary

Users are declared in one comprehensive file,
regardless where they have an account.

They are then included in groups.

Each forest, ie a set of nodes (servers), define the group they want.

On each node of this forest, users belonging to one group for this
forest will be created (and groups too).

Furthermore, some groups can be added in shellgroups_ubiquity to be
created on each forest.

Provide a forest execution module to get a list of users or groups.

Test Plan

States has been tested against Eglide and Ysul in test mode

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson created this revision.Nov 10 2017, 02:10
dereckson planned changes to this revision.Nov 10 2017, 02:15

I forgot to commit the _test folder with the unit tests for forest.

roles/saltmaster/account/init.sls
24

group 9001 didn't exist anymroe in config

dereckson updated this revision to Diff 3039.Nov 10 2017, 02:16

Drop Eglide (shellserver role) specific unit to create accounts.

dereckson planned changes to this revision.Nov 10 2017, 02:17
dereckson updated this revision to Diff 3040.Nov 12 2017, 22:50

Add unit tests

dereckson updated this revision to Diff 3041.Nov 12 2017, 22:58
dereckson marked an inline comment as done.

Restore salt group

dereckson accepted this revision.Nov 12 2017, 22:58
This revision is now accepted and ready to land.Nov 12 2017, 22:58

Applied with success to Eglide.

Can't do on Ysul, as we need to create ZFS volumes for home directories too.

This revision was automatically updated to reflect the committed changes.