Page MenuHomeDevCentral

Provide vhosts list on Eglide
ClosedPublic

Authored by dereckson on Jan 10 2017, 22:26.
Tags
None
Referenced Files
F3778771: D816.diff
Mon, Nov 25, 06:12
Unknown Object (File)
Sat, Nov 23, 09:26
Unknown Object (File)
Fri, Nov 22, 13:28
Unknown Object (File)
Fri, Nov 22, 12:43
Unknown Object (File)
Fri, Nov 22, 12:23
Unknown Object (File)
Fri, Nov 22, 12:19
Unknown Object (File)
Fri, Nov 22, 11:54
Unknown Object (File)
Fri, Nov 22, 06:00
Subscribers
None

Details

Summary

On Grip, a vhosts command offered to read /etc/vhosts.

This is a feature in the users wishlist, as they allow them
to know what IPv6 to use and the associated PTR record.

Test Plan

vhosts

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
No Lint Coverage
Unit
No Test Coverage
Branch
vhosts (branched from master)
Build Status
Buildable 1253
Build 1501: arc lint + arc unit

Event Timeline

Add new unit to highstate

First pass (diff 1)

$ salt eglide state.apply roles/shellserver/vhosts
eglide:
----------
          ID: /etc/vhosts
    Function: file.managed
      Result: True
     Comment: File /etc/vhosts updated
     Started: 22:28:04.598809
    Duration: 808.422 ms
     Changes:   
              ----------
              diff:
                  New file
              mode:
                  0644
----------
          ID: /usr/local/bin/vhosts
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/vhosts updated
     Started: 22:28:05.408354
    Duration: 701.863 ms
     Changes:   
              ----------
              diff:
                  New file
              mode:
                  0644

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

$ ssh eglide vhosts
bash: /usr/local/bin/vhosts: Permission denied

With chmod fix (diff 3)

$ salt eglide state.apply roles/shellserver/vhosts
eglide:
----------
          ID: /etc/vhosts
    Function: file.managed
      Result: True
     Comment: File /etc/vhosts is in the correct state
     Started: 22:32:21.386389
    Duration: 523.813 ms
     Changes:   
----------
          ID: /usr/local/bin/vhosts
    Function: file.managed
      Result: True
     Comment: File /usr/local/bin/vhosts updated
     Started: 22:32:21.911321
    Duration: 416.34 ms
     Changes:   
              ----------
              mode:
                  0755

Summary for eglide
------------
Succeeded: 2 (changed=1)
Failed:    0
------------
Total states run:     2
Total run time: 940.153 ms
$ ssh eglide vhosts
[…]
This revision is now accepted and ready to land.Jan 12 2017, 09:21
This revision was automatically updated to reflect the committed changes.