Commit b0c87159 authored by Nicolas Wavrant's avatar Nicolas Wavrant

slaprunner: dropbear config outsourced in a template file

parent 1466dab9
......@@ -44,7 +44,7 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-runner.cfg
output = ${buildout:directory}/template-runner.cfg.in
md5sum = 26d4b5efa2fd9853287a83f29988255c
md5sum = 58d0f26daf27e15caf7324217f05877f
mode = 0644
[template-runner-import-script]
......@@ -134,6 +134,15 @@ filename = parameters.xml.in
download-only = true
mode = 0644
[template-bash-profile]
recipe = hexagonit.recipe.download
url = ${:_profile_base_location_}/template/${:filename}
md5sum = 0e88fc8739f2aff581da787c2843e682
location = ${buildout:parts-directory}/${:_buildout_section_name_}
filename = bash_profile.in
download-only = true
mode = 0644
[eggs]
recipe = z3c.recipe.scripts
eggs =
......
......@@ -612,17 +612,12 @@ location = $${slaprunner:minishell_cwd_file}
stop-on-error = true
[bash-profile]
recipe = plone.recipe.command
command = if [ ! -f $${:location} ]; then echo "$${:content}" > $${:location}; fi
content =
# Beware, this file is automatically processed by slapgrid
# Do not modify it, your changes will be lost
cd $${runnerdirectory:home}
PATH=$PATH:${nano:location}/bin:${vim:location}/bin:${screen:location}/bin:${git:location}/bin:${curl:location}/bin:${python2.7:location}/bin
export PATH
export PS1="\w $ "
location = $${buildout:directory}/.bash_profile
stop-on-error = true
recipe = slapos.recipe.template:jinja2
template = ${template-bash-profile:location}/${template-bash-profile:filename}
rendered = $${buildout:directory}/.bash_profile
context =
raw path $PATH:${nano:location}/bin:${vim:location}/bin:${screen:location}/bin:${git:location}/bin:${curl:location}/bin:${python2.7:location}/bin
key workdir runnerdirectory:home
[monitor-current-log-access]
< = monitor-directory-access
......
# Beware, this file is automatically processed by slapgrid
# Do not modify it, your changes will be lost
# If you want to load your custom bash configuration, please use a .bashrc file
cd {{ workdir }}
export PATH={{- path }}
export PS1="\w $ "
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment