slaprunner: fix in publication of shellinabox password for resiliency
[slapos.git] / software / slaprunner / instance-resilient.cfg.jinja2
1 # vim: set ft=cfg:
2
3 {% import 'parts' as parts %}
4 {% import 'replicated' as replicated %}
5
6 [buildout]
7 eggs-directory = {{ eggs_directory }}
8 develop-eggs-directory = {{ develop_eggs_directory }}
9 offline = true
10
11 # += because we need to take up parts (like instance-custom, slapmonitor etc) from the profile we extended
12 parts +=
13   {{ parts.replicate("runner", "3") }}
14   publish-connection-informations
15
16 {{ replicated.replicate("runner", "3", "runner-export", "runner-import", slapparameter_dict=slapparameter_dict) }}
17
18 # Bubble up the parameters
19 [request-runner]
20 return = url ssh-public-key ssh-url notification-id ip backend_url url cloud9_url ssh_command password_recovery_code cloud9_backend_url shell_password
21
22 [publish-connection-informations]
23 recipe = slapos.cookbook:publish
24 1_info = Set your passord in slaprunner in order to access cloud9
25 backend_url = ${request-runner:connection-backend_url}
26 url = ${request-runner:connection-url}
27 cloud9_url = ${request-runner:connection-cloud9_url}
28 cloud9_backend_url = ${request-runner:connection-cloud9_backend_url}
29 ssh_command = ${request-runner:connection-ssh_command}
30 password_recovery_code = ${request-runner:connection-password_recovery_code}
31 shell_password = ${request-runner:connection-shell_password}
32
33 [slap-parameter]
34 # Default parameters for distributed deployment
35 # I.e state "backup1 of maria should go there, ..."
36 # XXX-Cedric: Hardcoded number of backups. Should be dynamically generated.
37 runner1-computer-guid =
38 pbs-runner1-computer-guid =
39 runner2-computer-guid =
40 pbs-runner2-computer-guid =
41 runner3-computer-guid =
42 pbs-runner3-computer-guid =
43 # XXX-Cedric: Hardcoded parameters. Should be dynamically generated.
44 domain =
45 authorized-key =
46 instance-amount = 10
47 debug = false