Page MenuHomeDevCentral

Provide vhosts list on Eglide
ClosedPublic

Authored by dereckson on Jan 10 2017, 22:26.
Tags
None
Referenced Files
Unknown Object (File)
Sat, May 18, 04:48
Unknown Object (File)
Thu, May 16, 22:20
Unknown Object (File)
Thu, May 16, 22:06
Unknown Object (File)
Mon, May 13, 21:07
Unknown Object (File)
Mon, May 13, 09:54
Unknown Object (File)
Mon, May 13, 08:59
Unknown Object (File)
Sun, May 12, 11:43
Unknown Object (File)
Fri, May 10, 08:45
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
Lint Not Applicable
Unit
Tests Not Applicable

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.