Page MenuHomeDevCentral

Provision wheel group on FreeBSD servers
ClosedPublic

Authored by dereckson on Mar 3 2023, 15:59.
Tags
None
Referenced Files
F3933234: D2825.diff
Mon, Dec 23, 01:25
F3930389: D2825.id7206.diff
Sun, Dec 22, 13:42
Unknown Object (File)
Sun, Dec 22, 05:29
Unknown Object (File)
Sat, Dec 21, 04:56
Unknown Object (File)
Mon, Dec 16, 05:49
Unknown Object (File)
Sun, Dec 15, 04:44
Unknown Object (File)
Tue, Dec 10, 18:14
Unknown Object (File)
Sun, Dec 8, 13:57
Subscribers
None

Details

Summary

The 'wheel' group contains all ops and root account.
It allows to use the su command on BSD machines.

Fixes T1778.

Test Plan

Tested on Windriver

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Before

$ id -Gn
dereckson nasqueron-irc ops deployment nasquenautes

Change

$ salt-call --local saltutil.sync_all
[…]
$ salt-call --local state.sls_id group_wheel roles/core/users
local:
----------
          ID: group_wheel
    Function: group.present
        Name: wheel
      Result: True
     Comment: The following group attributes are set to be changed:
              members: ['root', 'dereckson', 'sandlayth']
     Started: 15:57:11.960353
    Duration: 18.1 ms
     Changes:
              ----------
              Final:
                  All changes applied successfully

Summary for local
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time:  18.100 ms

Idempotent change

$ salt-call --local state.sls_id group_wheel roles/core/users
local:
----------
          ID: group_wheel
    Function: group.present
        Name: wheel
      Result: True
     Comment: Group wheel is present and up to date
     Started: 16:00:29.633888
    Duration: 4.393 ms
     Changes:

Summary for local
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time:   4.393 ms

After

$ id -Gn dereckson
dereckson wheel ops deployment nasquenautes nasqueron-irc
$ grep wheel /etc/group
wheel:*:0:root,dereckson,sandlayth
This revision is now accepted and ready to land.Mar 3 2023, 16:01
This revision was automatically updated to reflect the committed changes.