Commit d2c588a4 authored by Iliya Manolov's avatar Iliya Manolov

Added some buildout that creates a script that shortens neoctl calls.

Calling neoctl requires several parameters. The purpose of this script is to shorten calling neoctl by removing the need to constantly supply things SlapOS can provide on its own like certificates and keys. A sample command is ~/srv/runner/instance/slappartX/bin/neoctl set cluster STARTING_BACKUP
parent 1b273894
......@@ -2,6 +2,7 @@
parts +=
neo-admin-promise
logrotate-admin
neoctl
[neo-admin]
recipe = slapos.cookbook:neoppod.admin
......@@ -27,3 +28,15 @@ backup = ${logrotate:backup}
name = neo-admin
log = ${neo-admin:logfile}
post = {{ bin_directory }}/slapos-kill -n neoadmin -s RTMIN+1 ${:log}
[neoctl]
recipe = slapos.cookbook:wrapper
command-line =
{{bin_directory}}/neoctl -a ${neo-admin:ip}:${neo-admin:port}
{%- if slapparameter_dict['ssl'] %}
--ca ${directory:etc}/ca.crt
--cert ${directory:etc}/neo.crt
--key ${directory:etc}/neo.key
{%- endif %}
parameters-extra = True
wrapper-path = ${directory:bin}/neoctl
......@@ -88,7 +88,7 @@ md5sum = f3259726bd5d824c569dc7db6b7d26a0
[instance-neo-admin]
<= download-base-neo
md5sum = f030a25d320f2edf0186b69bfa521228
md5sum = ec1e2d9d2a1da092621f1b01ce6af322
[instance-neo-master]
<= download-base-neo
......
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