Page MenuHomeDevCentral

Provide vhosts list on Eglide
ClosedPublic

Authored by dereckson on Jan 10 2017, 22:26.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Dec 10, 12:02
Unknown Object (File)
Tue, Dec 10, 11:22
Unknown Object (File)
Mon, Dec 9, 02:09
Unknown Object (File)
Fri, Dec 6, 03:46
Unknown Object (File)
Fri, Dec 6, 01:43
Unknown Object (File)
Thu, Dec 5, 18:12
Unknown Object (File)
Mon, Dec 2, 17:52
Unknown Object (File)
Mon, Dec 2, 10:04
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 1252
Build 1500: 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.