Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
isaak yansane-sisk
slapos
Commits
22127d38
Commit
22127d38
authored
Nov 16, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dropbear client recipe.
parent
cb5e3573
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
setup.py
setup.py
+1
-0
slapos/recipe/dropbear.py
slapos/recipe/dropbear.py
+21
-0
No files found.
setup.py
View file @
22127d38
...
...
@@ -49,6 +49,7 @@ setup(name=name,
'davstorage = slapos.recipe.davstorage:Recipe'
,
'dropbear = slapos.recipe.dropbear:Recipe'
,
'dropbear.add_authorized_key = slapos.recipe.dropbear:AddAuthorizedKey'
,
'dropbear.client = slapos.recipe.dropbear:Client'
,
'duplicity = slapos.recipe.duplicity:Recipe'
,
'erp5 = slapos.recipe.erp5:Recipe'
,
'erp5testnode = slapos.recipe.erp5testnode:Recipe'
,
...
...
slapos/recipe/dropbear.py
View file @
22127d38
...
...
@@ -107,6 +107,27 @@ class Recipe(GenericBaseRecipe):
return
path_list
class
Client
(
GenericBaseRecipe
):
def
install
(
self
):
env
=
dict
()
if
'home'
in
self
.
options
:
env
[
'HOME'
]
=
self
.
options
[
'home'
]
self
.
createDirectory
(
self
.
options
[
'home'
],
'.ssh'
)
dropbear_cmd
=
[
self
.
options
[
'dbclient-binary'
],
'-T'
]
if
'identity-file'
in
self
.
options
:
dropbear_cmd
.
extend
([
'-i'
,
self
.
options
[
'identity-file'
]])
wrapper
=
self
.
createPythonScript
(
self
.
options
[
'wrapper'
],
'slapos.recipe.librecipe.execute.executee'
,
(
dropbear_cmd
,
env
,
)
)
return
[
wrapper
]
class
AddAuthorizedKey
(
GenericBaseRecipe
):
def
install
(
self
):
...
...
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