23.14. dev-library - Dev Library

The following documentation is for Dev Library (dev-library) content package at version v4.9.0-alpha00.67+g2af61053ec23a91be2e566ecf386ec23b2ae1119.

23.14.1. Object Specific Documentation

23.14.1.1. params

The content package provides the following params.

23.14.1.1.1. dev/counter

Increments when dev-counter task is run

23.14.1.1.2. dev/reboot-workflow

Workflow to set before rebooting system.

23.14.1.1.3. dev/wait-time

Used by the wait-time stage for development use. This can be very helpful to troubleshoot timing issues in provisioning. It should NOT be used in production!

23.14.1.2. stages

The content package provides the following stages.

23.14.1.2.1. hello-world

This is a simple stage that will run a small shell script (sh, or ps1 - depending on Operating System). It will simply print a hello world output.

23.14.1.2.2. wait-time

Uses the dev/wait-time param to determine delay (default=5). This can be very helpful to troubleshoot timing issues in provisioning. It should NOT be used in production!

23.14.1.3. tasks

The content package provides the following tasks.

23.14.1.3.1. always-fails

Handy for debugging, this task will always fail to allow for testing of fault conditions

23.14.1.3.2. dev-counter

When run, will add 1 to the dev/counter

23.14.1.3.3. dev-reboot-workflow

A task to reboot to a workflow specifed by the dev/reboot-workflow.

23.14.1.3.4. hello-world

This task runs a simple “hello world” style script on the target machine.

The templates in this task support Windows, Linux, MacOS X, and ESXi operating systems.

This is often used as a quick confirmation that end-to-end workflow is executing and running tasks successfully.

The output message can be customized by setting the param hello/message to a unique string. The default is just Hello World.

23.14.1.3.5. reboot-event

Handy for testing the UX, this task sends a powercycle event

23.14.1.3.6. wait-time

Handy for dev/test, this task will sleep for a programmable amount of time.

It will also excercise the API by changing the machine icons b ased on the wait-icons list.

23.14.1.3.7. workflow-reset

Handy for debugging, this task will clear the current Workflow value form a machine. This allows machines to reset their workflow so THE SAME workflow can be reapplied. Typically, this is a Workflow builder use case only.

23.14.1.4. work_order_templates

The content package provides the following work_order_templates.

23.14.1.4.1. dev-wait-time

This Work Order Template uses the Dev library wait-time task as a testable item that can takes time to operate. It is useful when experimenting with Work Orders to be able to inject a no op delay into the system.

Operators can observe the work by seeing that the icon of the machine running the work order is changing.

23.14.1.5. workflows

The content package provides the following workflows.

23.14.1.5.1. always-fails

Used to generate non-destructive actions in a workflow for testing.

23.14.1.5.2. hello-world

This workflow runs a simple “hello world” script on the target Machine. This can be useful as a quick end-to-end check of the DRP Agent and workflow system.

The following Operating Systems are supported from this single workflow:

  • MacOS X

  • Linux

  • Windows

  • VMware vSphere ESXi

23.14.1.5.3. load-generator

Used to generate non-destructive actions in a workflow for testing.

23.14.1.5.4. reboot-event

Used to generate powercycle event for UX testing.