23.14. dev-library - Dev Library

The following documentation is for Dev Library (dev-library) content package at version v4.6.0-beta01.97+g1e33864277dc9bbb839f71f1eff994a0c4f05c23.

23.14.1. Object Specific Documentation

23.14.1.1. params

The content package provides the following params.

23.14.1.1.1. 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.1.2. dev/counter

Increments when dev-counter task is run

23.14.1.1.3. dev/reboot-workflow

Workflow to set before rebooting system.

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. dev-counter

When run, will add 1 to the dev/counter

23.14.1.3.2. dev-reboot-workflow

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

23.14.1.3.3. 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.4. reboot-event

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

23.14.1.3.5. 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.6. 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.3.7. always-fails

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

23.14.1.4. workflows

The content package provides the following workflows.

23.14.1.4.1. always-fails

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

23.14.1.4.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.4.3. load-generator

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

23.14.1.4.4. reboot-event

Used to generate powercycle event for UX testing.