Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dev: mysql-proxy: update the ocft script to run on the latest ocft tools #202

Merged
merged 1 commit into from

2 participants

@kskmori
Collaborator

Although I have never used mysql-proxy but at least I was able to run it with all test cases passed on RHEL6 and mysql-proxy-0.8.2-1.el6.x86_64 from EPEL.

@dmuhamedagic dmuhamedagic merged commit a2b5e4e into ClusterLabs:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 6 deletions.
  1. +7 −6 tools/ocft/mysql-proxy
View
13 tools/ocft/mysql-proxy
@@ -10,6 +10,7 @@
# * OCF_CHECK_LEVEL 20 check
CONFIG
+ Agent mysql-proxy
AgentRoot /usr/lib/ocf/resource.d/heartbeat/
InstallPackage mysql-proxy
HangTimeout 20
@@ -18,11 +19,11 @@ SETUP-AGENT
# nothing
CASE-BLOCK crm_setting
- Var OCF_RESKEY_CRM_meta_timeout=15000
- Var OCF_RESKEY_binary=/tmp/mysql-proxy
- Var OCF_RESKEY_admin_username=root
- Var OCF_RESKEY_admin_password=test123
- Var OCF_RESKEY_admin_lua_script=/usr/lib/mysql-proxy/lua/admin.lua
+ Env OCF_RESKEY_CRM_meta_timeout=15000
+ Env OCF_RESKEY_binary=/tmp/mysql-proxy
+ Env OCF_RESKEY_admin_username=root
+ Env OCF_RESKEY_admin_password=test123
+ Env OCF_RESKEY_admin_lua_script=/usr/lib/mysql-proxy/lua/admin.lua
CASE-BLOCK default_status
AgentRun stop
@@ -42,7 +43,7 @@ CASE "check base env"
CASE "check base env: invalid 'OCF_RESKEY_binary'"
Include prepare
- Var OCF_RESKEY_binary=no_such
+ Env OCF_RESKEY_binary=no_such
AgentRun start OCF_ERR_INSTALLED
BashAtExit rm -f /tmp/mysql-proxy
Something went wrong with that request. Please try again.