Permalink
Browse files

Merge pull request #202 from kskmori/mysql-proxy-ocft-var

Dev: mysql-proxy: update the ocft script to run on the latest ocft tools
  • Loading branch information...
2 parents 4d7b304 + e265f0e commit a2b5e4eed606baefc4a896923ae7a29141b19347 @dmuhamedagic dmuhamedagic committed Feb 4, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 tools/ocft/mysql-proxy
View
@@ -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

0 comments on commit a2b5e4e

Please sign in to comment.