Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
bf003d31
Commit
bf003d31
authored
Apr 27, 2015
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not a full port to v2's api, just a few fixups
parent
6a8062ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
v2/ansible/plugins/connections/accelerate.py
+9
-3
No files found.
v2/ansible/plugins/connections/accelerate.py
View file @
bf003d31
...
...
@@ -26,8 +26,9 @@ import struct
import
time
from
ansible.callbacks
import
vvv
,
vvvv
from
ansible.errors
import
AnsibleError
,
AnsibleFileNotFound
from
ansible.runner.connection_plugins.ssh
import
Connection
as
SSHConnection
from
ansible.runner.connection_plugins.paramiko_ssh
import
Connection
as
ParamikoConnection
from
.
import
ConnectionBase
from
.ssh
import
Connection
as
SSHConnection
from
.paramiko_ssh
import
Connection
as
ParamikoConnection
from
ansible
import
utils
from
ansible
import
constants
...
...
@@ -38,7 +39,7 @@ from ansible import constants
# multiple of the value to speed up file reads.
CHUNK_SIZE
=
1044
*
20
class
Connection
(
object
):
class
Connection
(
ConnectionBase
):
''' raw socket accelerated connection '''
def
__init__
(
self
,
runner
,
host
,
port
,
user
,
password
,
private_key_file
,
*
args
,
**
kwargs
):
...
...
@@ -91,6 +92,11 @@ class Connection(object):
if
getattr
(
self
.
runner
,
'aes_keys'
,
None
):
utils
.
AES_KEYS
=
self
.
runner
.
aes_keys
@property
def
transport
(
self
):
"""String used to identify this Connection class from other classes"""
return
'accelerate'
def
_execute_accelerate_module
(
self
):
args
=
"password=
%
s port=
%
s minutes=
%
d debug=
%
d ipv6=
%
s"
%
(
base64
.
b64encode
(
self
.
key
.
__str__
()),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment