Page MenuHomeDevCentral

Create odderon service account on Eglide
ClosedPublic

Authored by dereckson on Jan 24 2017, 23:55.
Tags
None
Referenced Files
F3113160: D857.id2179.diff
Mon, Jun 17, 01:15
F3113156: D857.id2169.diff
Mon, Jun 17, 01:14
F3111606: D857.id2180.diff
Sun, Jun 16, 19:45
F3111561: D857.id2178.diff
Sun, Jun 16, 19:42
Unknown Object (File)
Sun, Jun 16, 07:40
Unknown Object (File)
Sun, Jun 16, 04:15
Unknown Object (File)
Sun, Jun 16, 02:09
Unknown Object (File)
Sun, Jun 16, 02:02
Subscribers
None

Details

Summary

Odderon is an IRC bot to run under 'odderon' account,
with a 'nasqueron-irc' service group allowed to sudo.

Ref T1129

Test Plan

sudo -u odderon whoami

Diff Detail

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

Event Timeline

dereckson added inline comments.
roles/shellserver/odderon/init.sls
20

+

- home: /opt/odderon
- groups:
  - nasqueron-irc
roles/shellserver/odderon/init.sls
20

(or guid: 829 alternatively)

dereckson marked an inline comment as done.

Add gid, home

roles/shellserver/odderon/init.sls
10

Could be split in several files:

  • account
  • code
  • config
dereckson marked 2 inline comments as done.

Salt hierarchy

Salt created correctly the user account, and it's correctly possible to use sudo.

Salt master
$ salt eglide state.apply roles/shellserver/odderon/
eglide:
----------
          ID: odderon_account
    Function: user.present
        Name: odderon
      Result: True
     Comment: New user odderon created
     Started: 16:48:01.231197
    Duration: 238.539 ms
     Changes:   
              ----------
              fullname:
                  Odderon
              gid:
                  829
              groups:
                  - nasqueron-irc
              home:
                  /opt/odderon
              homephone:
              name:
                  odderon
              passwd:
                  x
              roomnumber:
              shell:
              uid:
                  830
              workphone:
----------
          ID: odderon_sudo_capabilities_file
    Function: file.managed
        Name: /etc/sudoers.d/odderon
      Result: True
     Comment: File /etc/sudoers.d/odderon updated
     Started: 16:48:01.489876
    Duration: 969.884 ms
     Changes:   
              ----------
              diff:
                  New file
              mode:
                  0644

Summary for eglide
------------
Succeeded: 2 (changed=2)
Failed:    0
------------
Total states run:     2
Total run time:   1.208 s

$ ssh eglide sudo -u odderon whoami
odderon
This revision is now accepted and ready to land.Jan 25 2017, 17:02
This revision was automatically updated to reflect the committed changes.