Page MenuHomeDevCentral

Provision wheel group on FreeBSD servers
ClosedPublic

Authored by dereckson on Mar 3 2023, 15:59.
Tags
None
Referenced Files
F3749487: D2825.diff
Sat, Nov 16, 15:42
Unknown Object (File)
Sat, Nov 16, 05:18
Unknown Object (File)
Sat, Nov 16, 05:15
Unknown Object (File)
Sat, Nov 16, 04:34
Unknown Object (File)
Wed, Nov 13, 03:55
Unknown Object (File)
Tue, Nov 12, 23:03
Unknown Object (File)
Tue, Nov 12, 11:02
Unknown Object (File)
Sun, Nov 10, 20:32
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.