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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos
Commits
172570fa
Commit
172570fa
authored
Aug 24, 2016
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resilient: uses openssh as ssh client and adds graceful scritps for sshd
parent
0452d241
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
8 deletions
+16
-8
stack/resilient/buildout.cfg
stack/resilient/buildout.cfg
+4
-4
stack/resilient/instance-pull-backup.cfg.in
stack/resilient/instance-pull-backup.cfg.in
+2
-2
stack/resilient/pbsready-export.cfg.in
stack/resilient/pbsready-export.cfg.in
+1
-0
stack/resilient/pbsready-import.cfg.in
stack/resilient/pbsready-import.cfg.in
+1
-0
stack/resilient/pbsready.cfg.in
stack/resilient/pbsready.cfg.in
+8
-2
No files found.
stack/resilient/buildout.cfg
View file @
172570fa
...
@@ -41,7 +41,7 @@ eggs =
...
@@ -41,7 +41,7 @@ eggs =
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/pbsready.cfg.in
url = ${:_profile_base_location_}/pbsready.cfg.in
output = ${buildout:directory}/pbsready.cfg
output = ${buildout:directory}/pbsready.cfg
md5sum =
615999be7d67edde1ce7390441c72375
md5sum =
7803de4d55374ad7f1aef877cceaf542
mode = 0644
mode = 0644
[pbsready-import]
[pbsready-import]
...
@@ -50,7 +50,7 @@ mode = 0644
...
@@ -50,7 +50,7 @@ mode = 0644
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/pbsready-import.cfg.in
url = ${:_profile_base_location_}/pbsready-import.cfg.in
output = ${buildout:directory}/pbsready-import.cfg
output = ${buildout:directory}/pbsready-import.cfg
md5sum =
33e4871b101578bfa45aaaf93095ad7e
md5sum =
d1173d785ae750442fcb756c09ace370
mode = 0644
mode = 0644
[pbsready-export]
[pbsready-export]
...
@@ -59,14 +59,14 @@ mode = 0644
...
@@ -59,14 +59,14 @@ mode = 0644
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/pbsready-export.cfg.in
url = ${:_profile_base_location_}/pbsready-export.cfg.in
output = ${buildout:directory}/pbsready-export.cfg
output = ${buildout:directory}/pbsready-export.cfg
md5sum =
eb6c6acfc68bbada3be9b7c657408f1c
md5sum =
ae8f579848fca3b6376c81de7dd37a53
mode = 0644
mode = 0644
[template-pull-backup]
[template-pull-backup]
recipe = slapos.recipe.template
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
url = ${:_profile_base_location_}/instance-pull-backup.cfg.in
output = ${buildout:directory}/instance-pull-backup.cfg
output = ${buildout:directory}/instance-pull-backup.cfg
md5sum =
032d5fdf174664a8784a81291f743358
md5sum =
1d2abfc524b9a17194c744959e4f2f02
mode = 0644
mode = 0644
[template-replicated]
[template-replicated]
...
...
stack/resilient/instance-pull-backup.cfg.in
View file @
172570fa
...
@@ -189,7 +189,7 @@ recipe = slapos.cookbook:sshkeys_authority
...
@@ -189,7 +189,7 @@ recipe = slapos.cookbook:sshkeys_authority
request-directory = $${sshkeys-directory:requests}
request-directory = $${sshkeys-directory:requests}
keys-directory = $${sshkeys-directory:keys}
keys-directory = $${sshkeys-directory:keys}
wrapper = $${basedirectory:services}/sshkeys_authority
wrapper = $${basedirectory:services}/sshkeys_authority
keygen-binary = ${
dropbear:location}/bin/dropbearkey
keygen-binary = ${
openssh:location}/bin/ssh-keygen
[sshkeys-dropbear]
[sshkeys-dropbear]
<= sshkeys-authority
<= sshkeys-authority
...
@@ -208,7 +208,7 @@ wrapper = $${rootdirectory:bin}/do_backup
...
@@ -208,7 +208,7 @@ wrapper = $${rootdirectory:bin}/do_backup
[dropbear-client]
[dropbear-client]
recipe = slapos.cookbook:dropbear.client
recipe = slapos.cookbook:dropbear.client
dbclient-binary = ${
dropbear:location}/bin/dbclient
dbclient-binary = ${
openssh:location}/bin/ssh
wrapper = $${rootdirectory:bin}/ssh
wrapper = $${rootdirectory:bin}/ssh
home = $${basedirectory:ssh-home}
home = $${basedirectory:ssh-home}
identity-file = $${basedirectory:ssh-home}/id_rsa
identity-file = $${basedirectory:ssh-home}/id_rsa
...
...
stack/resilient/pbsready-export.cfg.in
View file @
172570fa
...
@@ -12,6 +12,7 @@ parts =
...
@@ -12,6 +12,7 @@ parts =
cron-entry-logrotate
cron-entry-logrotate
sshkeys-authority
sshkeys-authority
dropbear-server
dropbear-server
dropbear-sshd-graceful
sshkeys-dropbear
sshkeys-dropbear
resilient-sshkeys-dropbear-promise
resilient-sshkeys-dropbear-promise
dropbear-server-pbs-authorized-key
dropbear-server-pbs-authorized-key
...
...
stack/resilient/pbsready-import.cfg.in
View file @
172570fa
...
@@ -12,6 +12,7 @@ parts =
...
@@ -12,6 +12,7 @@ parts =
cron-entry-logrotate
cron-entry-logrotate
sshkeys-authority
sshkeys-authority
dropbear-server
dropbear-server
dropbear-sshd-graceful
sshkeys-dropbear
sshkeys-dropbear
resilient-sshkeys-dropbear-promise
resilient-sshkeys-dropbear-promise
dropbear-server-pbs-authorized-key
dropbear-server-pbs-authorized-key
...
...
stack/resilient/pbsready.cfg.in
View file @
172570fa
...
@@ -8,6 +8,7 @@ parts =
...
@@ -8,6 +8,7 @@ parts =
cron-entry-logrotate
cron-entry-logrotate
sshkeys-authority
sshkeys-authority
dropbear-server
dropbear-server
dropbear-sshd-graceful
sshkeys-dropbear
sshkeys-dropbear
resilient-sshkeys-dropbear-promise
resilient-sshkeys-dropbear-promise
dropbear-server-pbs-authorized-key
dropbear-server-pbs-authorized-key
...
@@ -30,7 +31,7 @@ recipe = slapos.cookbook:mkdirectory
...
@@ -30,7 +31,7 @@ recipe = slapos.cookbook:mkdirectory
log = $${rootdirectory:var}/log
log = $${rootdirectory:var}/log
services = $${rootdirectory:etc}/service
services = $${rootdirectory:etc}/service
run = $${rootdirectory:var}/run
run = $${rootdirectory:var}/run
script
= $${rootdirectory:etc}/script
script
s = $${rootdirectory:etc}/run
backup = $${rootdirectory:srv}/backup
backup = $${rootdirectory:srv}/backup
promises = $${rootdirectory:etc}/promise
promises = $${rootdirectory:etc}/promise
services = $${rootdirectory:etc}/service
services = $${rootdirectory:etc}/service
...
@@ -183,7 +184,7 @@ template = inline:
...
@@ -183,7 +184,7 @@ template = inline:
Protocol 2
Protocol 2
UsePrivilegeSeparation no
UsePrivilegeSeparation no
HostKey $${directory:ssh}/server_key.rsa
HostKey $${directory:ssh}/server_key.rsa
AuthorizedKeysFile $${
buildout:directory
}/.ssh/authorized_keys
AuthorizedKeysFile $${
directory:ssh
}/.ssh/authorized_keys
PasswordAuthentication no
PasswordAuthentication no
PubkeyAuthentication yes
PubkeyAuthentication yes
ForceCommand $${rdiff-backup-server:wrapper}
ForceCommand $${rdiff-backup-server:wrapper}
...
@@ -210,6 +211,11 @@ input = inline:#!/bin/sh
...
@@ -210,6 +211,11 @@ input = inline:#!/bin/sh
output = $${rootdirectory:bin}/raw_sshd_log
output = $${rootdirectory:bin}/raw_sshd_log
mode = 700
mode = 700
[dropbear-sshd-graceful]
recipe = slapos.cookbook:wrapper
command-line = $${directory:bin}/killpidfromfile $${runner-sshd-config:path_pid} SIGHUP
wrapper-path = $${basedirectory:scripts}/sshd-graceful
#----------------
#----------------
#--
#--
#-- sshkeys
#-- sshkeys
...
...
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