Page MenuHomeDevCentral

Provide vhosts list on Eglide
ClosedPublic

Authored by dereckson on Jan 10 2017, 22:26.
Tags
None
Referenced Files
F3765434: D816.id2070.diff
Fri, Nov 22, 12:19
F3765349: D816.id2071.diff
Fri, Nov 22, 11:54
F3764469: D816.diff
Fri, Nov 22, 06:00
Unknown Object (File)
Sat, Nov 16, 00:53
Unknown Object (File)
Fri, Nov 15, 07:22
Unknown Object (File)
Fri, Nov 15, 01:50
Unknown Object (File)
Fri, Nov 15, 00:10
Unknown Object (File)
Thu, Nov 14, 23:38
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.