ScriptPolicy for provisioning

Abstract

Sometimes it would be nice to modify nodes inside a defined requisition. For instance when using the vSphere-based provisioning all interfaces are reported for a virtual machine including local docker interfaces. These interfaces are not suitable for a primary interface but unfortunately this can’t be controlled in a requisition.
The idea is to provide a ScriptPolicy to use Groovy-Scripts to alter nodes. With this you are able to choose a different primary interface and for example set the node’s location or asset fields.

Folks

  • Christian
  • JIRA https://issues.opennms.org/browse/HZN-1330
  • Github-Branch: jira/HZN-1330
  • Where in the source: opennms-provision/opennms-provision-persistence/src/main/java/org/opennms/netmgt/provision/persist/policies/ScriptPolicy.java

Technology

  • Provisiond
  • Groovy

OpenNMS Components

  • Provisioning
  • Requisition

Talk