Page MenuHomeDevCentral

Enable oidentd service
ClosedPublic

Authored by dereckson on Feb 20 2022, 12:50.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 15, 14:55
Unknown Object (File)
Thu, Apr 11, 15:02
Unknown Object (File)
Sat, Apr 6, 22:31
Unknown Object (File)
Thu, Apr 4, 02:24
Unknown Object (File)
Mon, Apr 1, 00:29
Unknown Object (File)
Sun, Mar 31, 10:29
Unknown Object (File)
Sat, Mar 30, 18:51
Unknown Object (File)
Sat, Mar 30, 10:30
Subscribers
None

Details

Summary

On WindRiver, oidentd is installed but service is disabled:

$ /usr/local/etc/rc.d/oidentd status
Cannot 'status' oidentd. Set oidentd_enable to YES in /etc/rc.conf
or use 'onestatus' instead of 'status'.

$ /usr/local/etc/rc.d/oidentd onestatus
oidentd is not running.

This change enables the service.

Ref T1683.

Test Plan

Check service is enabled and running on WindRiver.

Diff Detail

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

Event Timeline

dereckson created this revision.

Seems service.running works fine on FreeBSD, so we can use this more generously across the configuration as currently, we've a lot of {% if services['manager'] == 'systemd' %}.

WindRiver - test
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc test=True
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: None
     Comment: Service oidentd is set to start
     Started: 12:52:24.407992
    Duration: 39.009 ms
     Changes:   

Summary for local
------------
Succeeded: 1 (unchanged=1)
Failed:    0
------------
Total states run:     1
Total run time:  39.009 ms
WindRiver - apply
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: True
     Comment: Service oidentd has been enabled, and is running
     Started: 12:53:37.612648
    Duration: 159.262 ms
     Changes:   
              ----------
              oidentd:
                  True

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

$ /usr/local/etc/rc.d/oidentd status
oidentd is running as pid 78577.
WindRiver - idempotence
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc                                                                       (git)-[arcpatch-D2540] 
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: True
     Comment: The service oidentd is already running
     Started: 12:54:00.690512
    Duration: 39.297 ms
     Changes:   

Summary for local
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time:  39.297 ms
This revision is now accepted and ready to land.Feb 20 2022, 12:57
dereckson retitled this revision from Enable oidentd on devserver to Enable oidentd service.Feb 20 2022, 12:58
dereckson edited the test plan for this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.