Page MenuHomeDevCentral

Provision wheel group on FreeBSD servers
ClosedPublic

Authored by dereckson on Mar 3 2023, 15:59.
Tags
None
Referenced Files
F3604952: D2825.id7206.diff
Sun, Sep 29, 17:26
F3604666: D2825.diff
Sun, Sep 29, 15:35
F3601658: D2825.diff
Sat, Sep 28, 20:54
Unknown Object (File)
Tue, Sep 24, 03:51
Unknown Object (File)
Sun, Sep 22, 14:04
Unknown Object (File)
Wed, Sep 18, 09:25
Unknown Object (File)
Thu, Sep 12, 04:16
Unknown Object (File)
Thu, Sep 12, 04:16
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.