instance-runner.cfg 19.5 KB
Newer Older
1 2
[buildout]
parts =
3 4 5 6
  nginx_conf
  nginx-launcher
  certificate-authority
  ca-nginx
7
  ca-shellinabox
8 9
  gunicorn-launcher
  gunicorn-graceful
10
  sshkeys-dropbear-runner
11
  dropbear-server-add-authorized-key
12
  sshkeys-authority
13
  publish-connection-informations
14 15 16
  slaprunner-promise
  slaprunner-frontend-promise
  dropbear-promise
17
  runtestsuite
18
  shellinabox-promise
19
  symlinks
20
  shellinabox
21
  slapos-cfg
22
  slapos-repo-config
23
  cron-entry-prepare-software
24
  deploy-instance-parameters
25
  instance-software-type
26 27 28
{% if slapparameter_dict.get('custom-frontend-backend-url') %}
  custom-frontend-promise
{% endif %}
29
## Monitoring part
30
###Parts to add for monitoring
31
  cron
32 33 34
  certificate-authority
  cron-entry-monitor
  cron-entry-rss
35 36 37
  deploy-index
  deploy-settings-cgi
  deploy-status-cgi
38
  deploy-status-history-cgi
39
  setup-static-files
40 41
  certificate-authority
  zero-parameters
42
  public-symlink
43 44 45 46 47 48
  cgi-httpd-wrapper
  cgi-httpd-graceful-wrapper
  monitor-promise
  monitor-instance-log-access
## Monitor for runner
  monitor-current-log-access
49 50

extends = ${monitor-template:output}
51 52 53 54 55

eggs-directory = ${buildout:eggs-directory}
develop-eggs-directory = ${buildout:develop-eggs-directory}
offline = true

56 57 58 59 60 61 62
{% if slapparameter_dict.get('custom-frontend-backend-url') -%}
# Requests, if defined, a frontend to allow access to a server
# located inside of the virtual machine listening to port X
# to LAN IPv4.
# Internaly, the frontend will be asked to listen on the IPv6
# with port X + 10000, to match NAT rules of Qemu.
[request-custom-frontend]
63
recipe = slapos.cookbook:requestoptional
64 65 66 67 68
software-url = {{ slapparameter_dict.get('custom-frontend-software-url', 'http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg') }}
software-type = {{ slapparameter_dict.get('custom-frontend-software-type', 'RootSoftwareInstance') }}
slave = true
name = Custom Web Frontend

69 70 71 72 73
server-url = $${slap-connection:server-url}
key-file = $${slap-connection:key-file}
cert-file = $${slap-connection:cert-file}
computer-id = $${slap-connection:computer-id}
partition-id = $${slap-connection:partition-id}
74

75
{%- if slapparameter_dict.get('custom-frontend-instance-guid') -%}
76
sla = instance_guid
77
sla-instance_guid = $${slap-parameter:frontend-instance-guid}
78 79
{% endif -%}

80 81 82 83 84
{% set custom_frontend_backend_type = slapparameter_dict.get('custom-frontend-backend-type')%}
{% if custom_frontend_backend_type %}
config = url type
config-type = {{ custom_frontend_backend_type }}
{% else %}
85
config = url
86
{% endif -%}
87
config-url = {{ slapparameter_dict.get('custom-frontend-backend-url') }}
88
return = site_url domain
89 90 91

[custom-frontend-promise]
recipe = slapos.cookbook:check_url_available
92 93 94 95 96
path = $${directory:promises}/custom_frontend_promise
url = https://$${request-custom-frontend:connection-domain}
{% if slapparameter_dict.get('custom-frontend-basic-auth') -%}
check-secure = 1
{% endif -%}
97 98 99 100
dash_path = {{ dash_executable_location }}
curl_path = {{ curl_executable_location }}

[publish-connection-informations]
101
custom-frontend-url = https://$${request-custom-frontend:connection-domain}
102
{% endif %}
103

104
# Create all needed directories
105
[directory]
106 107 108 109 110
recipe = slapos.cookbook:mkdirectory
etc = $${buildout:directory}/etc/
var = $${buildout:directory}/var/
srv = $${buildout:directory}/srv/
bin = $${buildout:directory}/bin/
111
tmp = $${buildout:directory}/tmp/
112

113 114 115 116 117 118 119 120 121
sshkeys = $${:srv}/sshkeys
services = $${:etc}/service/
scripts = $${:etc}/run/
ssh = $${:etc}/ssh/
log = $${:var}/log/
run = $${:var}/run/
backup = $${:srv}/backup/
promises = $${:etc}/promise/
test = $${:etc}/test/
122
nginx-data = $${directory:srv}/nginx
123
ca-dir = $${:srv}/ssl
124
project = $${:srv}/runner/project
125 126 127

[runnerdirectory]
recipe = slapos.cookbook:mkdirectory
128 129
home = $${directory:srv}/runner/
test = $${directory:srv}/test/
130
project = $${:home}/project
131
public = $${:home}/public
132 133
software-root = $${:home}/software
instance-root = $${:home}/instance
134 135 136
project-test = $${:test}/project
software-test = $${:test}/software
instance-test = $${:test}/instance
137
sessions = $${buildout:directory}/.sessions
138

139 140
#Create password recovery code for slaprunner
[recovery-code]
141
recipe = slapos.cookbook:generate.password
142
storage-path = $${directory:etc}/.rcode
143
bytes = 8
144

145
[slaprunner]
146
slaprunner = ${buildout:directory}/bin/slaprunner
147
slapos = ${buildout:directory}/bin/slapos
148 149
slapproxy = ${buildout:directory}/bin/slapproxy
supervisor = ${buildout:directory}/bin/slapgrid-supervisorctl
150
git-binary = ${git:location}/bin/git
151
root_check = false
152
slapos.cfg = $${directory:etc}/slapos.cfg
153 154
working-directory = $${runnerdirectory:home}
project-directory = $${runnerdirectory:project}
155 156
instance_root = $${runnerdirectory:instance-root}
software_root = $${runnerdirectory:software-root}
157 158
#XXX-Nico hardcoded default port because overridden by this buildout config
instance-monitor-url = https://[$${:ipv6}]:9685
159 160 161
etc_dir = $${directory:etc}
log_dir =  $${directory:log}
run_dir = $${directory:run}
162 163 164
ssh_client = $${sshkeys-dropbear-runner:wrapper}
public_key = $${sshkeys-dropbear-runner:public-key}
private_key = $${sshkeys-dropbear-runner:private-key}
165 166
ipv4 = $${slap-network-information:local-ipv4}
ipv6 = $${slap-network-information:global-ipv6}
167
instance_root = $${runnerdirectory:instance-root}
Jean-Baptiste Petre's avatar
Jean-Baptiste Petre committed
168
proxy_port = 50000
169
runner_port = 50005
170
partition-amount = $${slap-parameter:instance-amount}
171
wrapper = $${directory:services}/slaprunner
172
debug = $${slap-parameter:debug}
173
access-url = https://[$${:ipv6}]:$${:runner_port}
174 175
supervisord_config = $${directory:etc}/supervisord.conf
proxy_database = $${slaprunner:working-directory}/proxy.db
176 177 178
console = False
verbose = False
debug = False
179 180 181 182
auto_deploy = $${slap-parameter:auto-deploy}
auto_deploy_instance = $${slap-parameter:auto-deploy-instance}
autorun = $${slap-parameter:autorun}
knowledge0_file = $${buildout:directory}/$${public:filename}
183

184 185
[test-runner]
<= slaprunner
186
slapos.cfg = $${directory:etc}/slapos-test.cfg
187 188 189 190
working-directory = $${runnerdirectory:test}
project-directory = $${runnerdirectory:project-test}
software-directory = $${runnerdirectory:software-test}
instance-directory = $${runnerdirectory:instance-test}
191
proxy_port = 8602
192 193
etc_dir = $${directory:test}

194 195 196 197 198
[runtestsuite]
recipe = slapos.cookbook:wrapper
command-line = ${buildout:directory}/bin/slaprunnertest
wrapper-path = $${directory:bin}/runTestSuite
environment = RUNNER_CONFIG=$${slapos-test-cfg:rendered}
199 200 201 202 203 204

# Deploy dropbear (minimalist SSH server)
[sshkeys-directory]
recipe = slapos.cookbook:mkdirectory
requests = $${directory:sshkeys}/requests/
keys = $${directory:sshkeys}/keys/
205

206 207 208 209
[sshkeys-authority]
recipe = slapos.cookbook:sshkeys_authority
request-directory = $${sshkeys-directory:requests}
keys-directory = $${sshkeys-directory:keys}
210
wrapper = $${directory:services}/sshkeys_authority
211 212
keygen-binary = ${dropbear:location}/bin/dropbearkey

213
[dropbear-runner-server]
214 215
recipe = slapos.cookbook:dropbear
host = $${slap-network-information:global-ipv6}
216
port = 22222
217
home = $${directory:ssh}
218 219
wrapper = $${directory:bin}/runner_sshd
shell = ${bash:location}/bin/bash
220 221 222
rsa-keyfile = $${directory:ssh}/server_key.rsa
dropbear-binary = ${dropbear:location}/sbin/dropbear

223
[sshkeys-dropbear-runner]
224 225 226 227
<= sshkeys-authority
recipe = slapos.cookbook:sshkeys_authority.request
name = dropbear
type = rsa
228 229 230 231
executable = $${dropbear-runner-server:wrapper}
public-key = $${dropbear-runner-server:rsa-keyfile}.pub
private-key = $${dropbear-runner-server:rsa-keyfile}
wrapper = $${directory:services}/runner_sshd
232 233

[dropbear-server-add-authorized-key]
234
<= dropbear-runner-server
235
recipe = slapos.cookbook:dropbear.add_authorized_key
236
key = $${slap-parameter:user-authorized-key}
237

238
#---------------------------
239
#--
240 241
#-- Set nginx frontend

242 243 244 245 246 247 248 249 250 251 252 253
[tempdirectory]
recipe = slapos.cookbook:mkdirectory
client_body_temp_path = $${directory:tmp}/client_body_temp_path
proxy_temp_path = $${directory:tmp}/proxy_temp_path
fastcgi_temp_path = $${directory:tmp}/fastcgi_temp_path
uwsgi_temp_path = $${directory:tmp}/uwsgi_temp_path
scgi_temp_path = $${directory:tmp}/scgi_temp_path

[nginx-frontend]
# Options
nb_workers = 2
# Network
254
local-ip = $${slap-network-information:local-ipv4}
255
port = 30001
256 257
global-ip = $${slap-network-information:global-ipv6}
global-port = $${slaprunner:runner_port}
258
# Backend
259 260
runner-ip = $${slaprunner:ipv4}
runner-port = $${slaprunner:runner_port}
261 262 263 264 265 266 267 268
# SSL
ssl-certificate = $${ca-nginx:cert-file}
ssl-key = $${ca-nginx:key-file}
# Log
path_pid = $${directory:run}/nginx.pid
path_log = $${directory:log}/nginx.log
path_access_log = $${directory:log}/nginx.access.log
path_error_log = $${directory:log}/nginx.error.log
269
path_tmp = $${directory:tmp}/
270 271 272
# Config files
path_nginx_conf = $${directory:etc}/nginx.conf
# Executables
273
bin_nginx = ${nginx-webdav:location}/sbin/nginx
274
bin_launcher = $${directory:bin}/launcher
275 276
# Utils
path_shell = ${dash:location}/bin/dash
277 278
# Misc.
etc_dir = $${directory:etc}
279
work_dir = $${slaprunner:working-directory}
280 281 282 283 284 285

[nginx_conf]
recipe = slapos.recipe.template:jinja2
template = ${template_nginx_conf:location}/${template_nginx_conf:filename}
rendered = $${nginx-frontend:path_nginx_conf}
context =
286
    key shellinabox_port shellinabox:port
287
    key socket gunicorn:socket
288 289 290 291 292 293 294 295 296 297 298
    section param_nginx_frontend nginx-frontend
    section param_tempdir tempdirectory

[nginx-launcher]
recipe = slapos.recipe.template:jinja2
template = ${template_launcher:location}/${template_launcher:filename}
rendered = $${nginx-frontend:bin_launcher}
mode = 700
context =
    section param_nginx_frontend nginx-frontend

299 300 301 302 303 304 305 306 307 308 309 310 311
[httpd-parameters]
path_pid = $${directory:run}/httpd.pid
path_error_log = $${directory:log}/httpd-error.log
path_access_log = $${directory:log}/httpd-access.log
key_file = $${ca-httpd:key-file}
cert_file = $${ca-httpd:cert-file}
global_ip = $${slap-network-information:global-ipv6}
global_port = $${slaprunner:runner_port}
monitor_port = $${monitor-parameters:port}
monitor_index = $${deploy-index:rendered}
working_directory = $${slaprunner:working-directory}
dav_lock = $${directory:var}/DavLock
etc_dir = $${directory:etc}
312
var_dir = $${directory:var}
313
project_folder = $${directory:project}
314
runner_home = $${runnerdirectory:home}
315 316 317 318 319 320 321
git_http_backend = ${git:location}/libexec/git-core/git-http-backend
cgi_httpd_conf = $${cgi-httpd-configuration-file:output}

[httpd-conf]
recipe = slapos.recipe.template:jinja2
template = ${template_httpd_conf:location}/${template_httpd_conf:filename}
rendered = $${directory:etc}/httpd.conf
322
context =
323 324 325
    section parameters httpd-parameters

[cgi-httpd-wrapper]
326 327 328
recipe = slapos.cookbook:wrapper
apache-executable = ${apache:location}/bin/httpd
wrapper-path = $${ca-httpd:executable}
329 330
command-line = $${:apache-executable} -f $${httpd-conf:rendered} -DFOREGROUND

331 332 333 334
#--------------------
#--
#-- WSGI

335
[gunicorn]
336 337 338 339 340 341 342 343
bin_gunicorn = $${directory:bin}/gunicorn
bin_launcher = $${directory:services}/gunicorn
path_shell = ${dash:location}/bin/dash
socket = $${directory:tmp}/flaskserver.sock
path_pid = $${directory:run}/gunicorn.pid

[gunicorn-launcher]
recipe = slapos.cookbook:wrapper
344 345
command-line = $${gunicorn:bin_gunicorn} slapos.runner:app -p $${gunicorn:path_pid} -b unix:$${gunicorn:socket} -e RUNNER_CONFIG=$${slaprunner:slapos.cfg} --preload
wrapper-path = $${gunicorn:bin_launcher}
346
environment = PATH=$${environ:PATH}:${git:location}/bin/
347 348 349 350
  RUNNER_CONFIG=$${slaprunner:slapos.cfg}

[gunicorn-graceful]
recipe = slapos.cookbook:wrapper
351
command-line = $${directory:bin}/killpidfromfile $${gunicorn:path_pid} SIGHUP
352 353
wrapper-path = $${directory:scripts}/gunicorn-graceful

354
#--------------------
355
#--
356
#-- ssl certificates
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381

[certificate-authority]
recipe = slapos.cookbook:certificate_authority
openssl-binary = ${openssl:location}/bin/openssl
ca-dir = $${directory:ca-dir}
requests-directory = $${cadirectory:requests}
wrapper = $${directory:services}/certificate_authority
ca-private = $${cadirectory:private}
ca-certs = $${cadirectory:certs}
ca-newcerts = $${cadirectory:newcerts}
ca-crl = $${cadirectory:crl}

[cadirectory]
recipe = slapos.cookbook:mkdirectory
requests = $${directory:ca-dir}/requests/
private = $${directory:ca-dir}/private/
certs = $${directory:ca-dir}/certs/
newcerts = $${directory:ca-dir}/newcerts/
crl = $${directory:ca-dir}/crl/

[ca-nginx]
<= certificate-authority
recipe = slapos.cookbook:certificate_authority.request
key-file = $${cadirectory:certs}/nginx_frontend.key
cert-file = $${cadirectory:certs}/nginx_frontend.crt
382 383
executable = $${nginx-launcher:rendered}
wrapper = $${directory:services}/nginx-frontend
384 385 386
# Put domain name
name = example.com

387 388 389 390 391
[ca-shellinabox]
<= certificate-authority
recipe = slapos.cookbook:certificate_authority.request
executable = $${shellinabox:wrapper}
wrapper = $${directory:services}/shellinaboxd
392 393
key-file = $${cadirectory:certs}/shellinabox.key
cert-file = $${cadirectory:certs}/shellinabox.crt
394
#--------------------
395 396
#--
#-- Request frontend
397

398 399
[request-frontend]
<= slap-connection
400
recipe = slapos.cookbook:requestoptional
401
name = SlapRunner Frontend
402 403 404
# XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
405
config = url domain
406
config-url = $${slaprunner:access-url}
407
config-domain = $${slap-parameter:frontend-domain}
408
return = site_url domain
409

410 411 412 413 414 415 416 417 418 419 420 421
[monitor-frontend]
<= slap-connection
recipe = slapos.cookbook:requestoptional
name = Monitor Frontend
# XXX We have hardcoded SR URL here.
software-url = http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg
slave = true
config = url domain
config-url = https://[$${cgi-httpd-configuration-file:listening-ip}]:$${monitor-parameters:port}
config-domain = $${slap-parameter:frontend-domain}
return = site_url domain

422
#--------------------------------------
423 424
#--
#-- Send informations to SlapOS Master
425

426 427
[publish-connection-informations]
recipe = slapos.cookbook:publish
428
1_info = On your first run, Use "access_url" to setup you account. Then you can use both "url" or "access_url". Or "backend_url" if you want to use ipv6. Set up your account in the webrunner in order to use webdav, and being able to clone your git repositories from the runner.
429
2_info = In order to set up your account, get the recovery-code from the monitoring interface. Before read the notification on monitor_info.
430
backend_url = $${slaprunner:access-url}
431
access_url = $${:url}/login
432
url =  https://$${request-frontend:connection-domain}
433
ssh_command = ssh $${dropbear-runner-server:host} -p $${dropbear-runner-server:port}
434
monitor_url = https://$${monitor-frontend:connection-domain}
435 436
webdav_url = $${:monitor_url}/share/
public_url =  $${:monitor_url}/public/
437 438
git_public_url =  https://[$${httpd-parameters:global_ip}]:$${httpd-parameters:monitor_port}/git-public/
git_private_url = https://[$${httpd-parameters:global_ip}]:$${httpd-parameters:monitor_port}/git/
439

440 441 442
#---------------------------
#--
#-- Deploy promises scripts
Jean-Baptiste Petre's avatar
Jean-Baptiste Petre committed
443

444 445
[slaprunner-promise]
recipe = slapos.cookbook:check_port_listening
446
path = $${directory:promises}/slaprunner
447 448
hostname = $${slaprunner:ipv6}
port = $${slaprunner:runner_port}
Jean-Baptiste Petre's avatar
Jean-Baptiste Petre committed
449

450
[slaprunner-frontend-promise]
Jean-Baptiste Petre's avatar
Jean-Baptiste Petre committed
451
recipe = slapos.cookbook:check_url_available
452
path = $${directory:promises}/slaprunner_frontend
453
url = https://$${request-frontend:connection-domain}/login
Jean-Baptiste Petre's avatar
Jean-Baptiste Petre committed
454 455 456
dash_path = ${dash:location}/bin/dash
curl_path = ${curl:location}/bin/curl

457 458
[dropbear-promise]
recipe = slapos.cookbook:check_port_listening
459
path = $${directory:promises}/dropbear
460 461
hostname = $${dropbear-runner-server:host}
port = $${dropbear-runner-server:port}
462

463 464 465 466 467 468
[shellinabox-promise]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promises}/shellinabox
hostname = $${shellinabox:ipv6}
port = $${shellinabox:port}

469 470
[symlinks]
recipe = cns.recipe.symlink
471
symlink_target = $${directory:bin}
472
symlink_base = ${buildout:directory}/bin
473 474 475

[slap-parameter]
# Default value if no ssh key is specified
476
user-authorized-key =
477
# Default value of instances number in slaprunner
478
instance-amount = 10
479 480
debug = false
frontend-domain =
481 482
slapos-repository = http://git.erp5.org/repos/slapos.git
slapos-software =
483
slapos-software-type =
484
slapos-reference = master
485
auto-deploy = false
486
auto-deploy-instance = true
487
autorun = false
488
monitor-port = 9684
489 490 491

[monitor-parameters]
port = $${slap-parameter:monitor-port}
492

493 494 495 496 497 498
[slapos-cfg]
recipe = slapos.recipe.template:jinja2
template = ${slapos-cfg-template:location}/${slapos-cfg-template:filename}
rendered = $${slaprunner:slapos.cfg}
mode = 700
context =
499
  section slaprunner slaprunner
500

501 502 503 504 505 506 507 508
[slapos-test-cfg]
recipe = slapos.recipe.template:jinja2
template = ${slapos-cfg-template:location}/${slapos-cfg-template:filename}
rendered = $${test-runner:slapos.cfg}
mode = 700
context =
  section slaprunner test-runner

509 510
[shellinabox]
recipe = slapos.cookbook:shellinabox
511
ipv6 = $${slap-network-information:global-ipv6}
512
port = 8080
513
shell = $${shell:wrapper}
514
wrapper = $${directory:bin}/shellinaboxd
515
shellinabox-binary = ${shellinabox:location}/bin/shellinaboxd
516
password = $${zero-parameters:shell-password}
517
directory = $${runnerdirectory:home}
518
login-shell = $${directory:bin}/login
519 520 521
certificate-directory = $${cadirectory:certs}
cert-file = $${ca-shellinabox:cert-file}
key-file = $${ca-shellinabox:key-file}
522

523 524 525
[shellinabox-code]
recipe = slapos.cookbook:generate.password
storage-path = $${directory:etc}/.scode
526
bytes = 8
527 528 529 530 531 532

[shell]
recipe = slapos.cookbook:shell
wrapper = $${directory:bin}/sh
shell = ${bash:location}/bin/bash
home = $${runnerdirectory:home}
533
path = $${environ:PATH}:${nano:location}/bin:${vim:location}/bin:${screen:location}/bin:${git:location}/bin
534 535
ps1 = "\\w> "

536 537 538
[environ]
recipe = collective.recipe.environment

539 540 541 542 543 544 545 546 547 548
[slapos-repo]
recipe = slapos.recipe.build:gitclone
repository = $${slap-parameter:slapos-repository}
git-executable = ${git:location}/bin/git
develop = true
location = $${directory:project}/slapos

[slapos-repo-config]
recipe = plone.recipe.command
stop-on-error = true
549 550
command = cd $${slapos-repo:location} && ${git:location}/bin/git checkout $${slap-parameter:slapos-reference} && SR=$${slap-parameter:slapos-software} && if [ -n "$SR" ] && [ ! -f "$${directory:etc}/.project" ]; then echo workspace/slapos/$${slap-parameter:slapos-software}/ > $${directory:etc}/.project; fi
update-command = true
551 552 553

[prepare-software]
recipe = slapos.cookbook:wrapper
554
command-line = ${curl:location}/bin/curl -g https://[$${slaprunner:ipv6}]:$${slaprunner:runner_port}/isSRReady --max-time 1 --insecure
555 556
wrapper-path = $${directory:scripts}/prepareSoftware

557 558 559 560 561 562 563
[cron-entry-prepare-software]
<= cron
recipe = slapos.cookbook:cron.d
name = prepare-software
frequency = */2 * * * *
command = $${prepare-software:wrapper-path}

564 565 566 567 568 569
[instance-parameters]
recipe = slapos.recipe.template:jinja2
extensions = jinja2.ext.do
template = ${parameters-template:location}/${parameters-template:filename}
rendered = $${directory:etc}/.parameter.xml.default
mode = 0644
570
context =
571 572 573 574 575 576 577 578
  key slapparameter_dict slap-configuration:configuration

[deploy-instance-parameters]
recipe = plone.recipe.command
stop-on-error = true
parameter-xml = $${directory:etc}/.parameter.xml
command = if [ ! -f $${:parameter-xml} ]; then cp $${instance-parameters:rendered} $${:parameter-xml}; fi

579 580 581 582 583 584 585
[instance-software-type]
recipe = plone.recipe.command
stop-on-error = true
# XXX It should not be named with .xml as it is not xml
software-type-path = $${directory:etc}/.software_type.xml
command = if [ ! -f $${:software-type-path} -a "$${slap-parameter:slapos-software-type}" != "" ]; then echo "$${slap-parameter:slapos-software-type}" > $${:software-type-path}; fi

586 587 588 589 590 591 592 593
[slap-configuration]
recipe = slapos.cookbook:slapconfiguration.serialised
computer = $${slap-connection:computer-id}
partition = $${slap-connection:partition-id}
url = $${slap-connection:server-url}
key = $${slap-connection:key-file}
cert = $${slap-connection:cert-file}

594 595
[public]
shell-password = $${shellinabox-code:passwd}
596 597
recovery-code = $${recovery-code:passwd}

598
[zero-parameters]
599 600 601 602 603


[monitor-current-log-access]
< = monitor-directory-access
source = $${directory:log}