From a7ef4bc863259a266ff5707fd1fcf4dcd6ee353f Mon Sep 17 00:00:00 2001 From: Krystian Baniak Date: Wed, 1 Jul 2020 18:52:02 +0200 Subject: [PATCH] version 1.4.0: added ilx batch example --- README.md | 7 +++++++ batch_files/ilx-loading.json | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 batch_files/ilx-loading.json diff --git a/README.md b/README.md index a7fc8b1..5fac54c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Supported features and software versions: - inline comand line batch mode - uploading files on F5 device, executing scripts and downloading files from F5 system - merging configuration sets using tmsh merge functionality +- managing ILX workspaces (since version 1.4.0) and plugins Developped in perl script language, may be used as standalone script or in a docker/podman container - see instalation notes below. @@ -258,15 +259,20 @@ Batch file contains sections that govern how it is processed: LOAD_DEFAULT : load sys config default LOAD_DG : load data groups type external: [ Hash(datagroup) of { source } ] LOAD_IFILES : load iFiles: [ Hash(ifile) of { source } ] + LOAD_ILX : load ILX worskpaces + LOAD_ILX_PLUGINS : load ILX plugins LOAD_MONITORS : load external [ Hash(monitors) of { source } ] LOAD_RULES : load iRules from baseline directory: [ Hash(rules) of { priority } ] MAKE_SCF : create single configuration file backup (inlcuding a tar file) MAKE_UCS : create and download ucs archive MSET:name : merge set reference, name indicates named mereg set to be invoked + MCPD_FORCELOAD : marks mcpd forceload flag for the next reboot REBIND_VS : attach iRule to virtual servers: [ Hash(virtuals) of { site, rules } or [] ] + REBOOT : reboots current host (all blades) RECERT : create iRule certificates RENAME : rename configuration objects: [ Hash(rename) ] RESET_HOST : reset host to original batch defined name or ip address + RESTART : runs clsh bigstart restart on current host RSET:name : merge specific iRule set defined in ruleset setion of a batch file SAVE : save configuration on a F5 unit SYNC : synchronize a F5 cluster @@ -277,6 +283,7 @@ Batch file contains sections that govern how it is processed: VERIFY : verify that all operations are going to be successful VERIFY_SET:name : run verification procedure on a verifyset. Verify set must inlude a list of objects that specify tpe and set of items to check + WAIT_FOR:event : waits for event to happen: cluster node become event = { online, standby, active } list of batch options to be used in options section in json definition: base_location : indicates directory where to look for resource files diff --git a/batch_files/ilx-loading.json b/batch_files/ilx-loading.json new file mode 100644 index 0000000..e49169e --- /dev/null +++ b/batch_files/ilx-loading.json @@ -0,0 +1,31 @@ +{ + "system": "any", + "system-ip": "*", + "sw-version": "*", + "author": "Krystian Baniak", + "version": "1.0", + "description": "MoP: load ilx workspaces and plugins", + "steps": [ + "LOAD_ILX_PLUGIN" + ], + "ilx": { + "workspaces": { + "mm1": { "archive": "WKS_LDAP_1_1_x.tgz" } + }, + "plugins": { + "pl1": { + "workspace": "mm1", + "partition": "Common", + "description": "test plugin", + "route-domain": "RD_Prod", + "publisher": "/Common/pub1" + } + } + }, + "options": { + "working-directory": "./", + "base_location": "./", + "search_path": [ "ilx" ] + } +} +