scenario_sample.yml in rundock-0.4.16 vs scenario_sample.yml in rundock-0.5.0

- old
+ new

@@ -1,45 +1,51 @@ # # This file is example of rundock scenario file based on yaml format. # # ------------------------------------------------------------------- # ### scenario section ### -# - node: <nodename> -# <taskname>: -# - <task detail> +# - target: <target_name> +# <operation_name>: +# - <operation_detail> # - : -# <taskname>: -# - <task detail> -# - : -# - node: <nodename> +# <operation_name>: +# : +# - target: <target_name> # : # --- -# ### host information section ### -# <hostname>: -# host: xxx.xxx.xxx.xxx -# <other_attributes>: +# ### target information section ### +# <target_name>: +# target_type: host +# <target_attributes>: # : -# <hostname>: +# <target_name>: # : # --- -# ### task information section ### +# ### task section ### # <taskname>: # - "<actual command>" # - : # <taskname>: # : +# --- +# ### hook section ### +# <hookname>: +# hook_type: <hook_type> +# <hook_attribute_key>: <hook_attribute_value> +# : +# <hookname>: +# : # ------------------------------------------------------------------- # -- node: 127.0.0.1 +- target: 127.0.0.1 command: - "hostname" - "uname -a" hook: - - mail - - file -- node: anyhost-01 + - logging +- target: anyhost-01 task: - echo_platform - echo_users command: - errexit: true @@ -48,10 +54,11 @@ - "rm /tmp/safetyfile" - "ls -1 /tmp" hook: all --- anyhost-01: + target_type: host host: 192.168.1.11 ssh_opts: port: 22 user: anyuser anyhost-02: @@ -63,5 +70,9 @@ - "uname -a" echo_users: command: - "whoami" - "w" +--- +logging: + hook_type: file + filepath: /var/log/rundock.log