*** Settings ***
*** Variables ***
*** Keywords ***
NgxControl
[Documentation] nginx control: start, stop, restart
[Arguments] ${host_alias} ${action}
Run Keyword If '${action}' == 'start' NgxStart ${host_alias}
Run Keyword If '${action}' == 'stop' NgxStop ${host_alias}
Run Keyword If '${action}' == 'reload' NgxReload ${host_alias}
Run Keyword If '${action}' == 'restart' NgxRestart ${host_alias}
NgxUpdateConfig
[Documentation] change nginx config, reload
[Arguments] ${conf} ${dest}=${ngx_conf} ${nginxenv}=${nginx_env} ${reload}=${ngx_reload}
Run Keyword If '${nginxenv}' == 'remote' SshPutFile ${conf} ${dest}
Run Keyword If '${nginxenv}' == 'local' RunReturnOk \\cp ${conf} ${dest}
NgxReload ${nginxenv}
NgxStart
[Documentation] nginx start
[Arguments] ${host_alias}
Run Keyword If '${${host_alias}_host}' == '${LOCAL_IP}' RunReturnOk ${ngx_start}
Run Keyword If '${${host_alias}_host}' != '${LOCAL_IP}' SshExecuteCmdRc ${host_alias} ${ngx_start}
...
...
...