21.14. dev-library - Dev Library

The following documentation is for Dev Library (dev-library) content package at version v4.8.0-alpha00.25+g8e224a5bec085c80968ec27e0332c339a65d0659.

21.14.1. Object Specific Documentation

21.14.1.1. params

The content package provides the following params.

21.14.1.1.1. dev/counter

Increments when dev-counter task is run

21.14.1.1.2. dev/reboot-workflow

Workflow to set before rebooting system.

21.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!

21.14.1.2. stages

The content package provides the following stages.

21.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.

21.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!

21.14.1.3. tasks

The content package provides the following tasks.

21.14.1.3.1. always-fails

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

21.14.1.3.2. dev-counter

When run, will add 1 to the dev/counter

21.14.1.3.3. dev-reboot-workflow

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

21.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.

21.14.1.3.5. reboot-event

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

21.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.

21.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.

21.14.1.4. workflows

The content package provides the following workflows.

21.14.1.4.1. load-generator

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

21.14.1.4.2. reboot-event

Used to generate powercycle event for UX testing.

21.14.1.4.3. always-fails

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

21.14.1.4.4. 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