Red Hat CloudForms 4.1

Similar documents
Red Hat CloudForms 4.0

Red Hat CloudForms 4.0

Red Hat CloudForms 4.5 Integration with AWS CloudFormation and OpenStack Heat

Red Hat OpenStack Platform 13

Red Hat Developer Studio 12.0

Red Hat CloudForms 4.6

Red Hat OpenStack Platform 13

Red Hat Satellite 6.3

.NET Core 2.0 Release Notes for Containers

Red Hat JBoss Developer Studio 11.1

Red Hat Enterprise Linux OpenStack Platform 7 Fujitsu ETERNUS Back End Guide

Red Hat OpenStack Platform 13

Red Hat CloudForms 4.5 Introduction to the Self Service User Interface

Red Hat CloudForms 4.2

Red Hat Application Migration Toolkit 4.0

Red Hat Cloud Infrastructure 1.1

Red Hat Virtualization 4.1 Hardware Considerations for Implementing SR-IOV

Red Hat OpenStack Platform 13

Red Hat 3scale 2.3 Accounts

Red Hat Enterprise Virtualization 3.6

Red Hat Virtualization 4.2

Red Hat JBoss A-MQ 6.0

Red Hat JBoss A-MQ 6.3

Red Hat CloudForms 4.6

Red Hat Application Migration Toolkit 4.2

Red Hat OpenStack Platform 9 Introduction to the OpenStack Dashboard

Red Hat OpenStack Platform 10 CephFS Back End Guide for the Shared File System Service

Red Hat 3Scale 2.0 Terminology

Red Hat Cloud Suite 1.1

Red Hat Process Automation Manager 7.0 Executing a business process in Business Central

Red Hat OpenStack Platform 8 Configure firewall rules for Red Hat OpenStack Platform director

Red Hat CloudForms 4.6

Red Hat Ceph Storage 2 Using Keystone to Authenticate Ceph Object Gateway Users

Red Hat CloudForms 4.0

Red Hat Virtualization 4.0

Red Hat OpenStack Platform 12

Red Hat JBoss Fuse 6.1

Red Hat CloudForms 4.5

Red Hat Ceph Storage 3

Red Hat Process Automation Manager 7.0 Managing and monitoring business processes in Business Central

Red Hat OpenStack Platform 10 Product Guide

Red Hat JBoss Data Virtualization 6.2 Using the Dashboard Builder. David Sage

Red Hat Mobile Application Platform Hosted 3

Red Hat Development Suite 1.1 Installation Guide

Red Hat JBoss BRMS 6.0

Red Hat CloudForms 4.6

Red Hat Process Automation Manager 7.0 Planning a Red Hat Process Automation Manager installation

Red Hat OpenStack Platform 13

Red Hat OpenStack Platform 10

Red Hat Enterprise Virtualization 3.6

Red Hat Mobile Application Platform Hosted 3

Red Hat OpenStack Platform 14

Red Hat Container Development Kit 3.0 Release Notes and Known Issues

Red Hat JBoss Enterprise Application Platform 7.0

Red Hat Ceph Storage 3

Red Hat Virtualization 4.1 Product Guide

Red Hat JBoss Developer Studio Integration Stack 10.0 Installation Guide

Red Hat CloudForms 4.6

Red Hat JBoss Data Grid 7.1 Feature Support Document

Red Hat AMQ 7.2 Introducing Red Hat AMQ 7

Red Hat Decision Manager 7.0 Designing a decision service using guided rules

Red Hat JBoss Enterprise Application Platform 7.1

Red Hat OpenStack Platform 11 Monitoring Tools Configuration Guide

Red Hat CloudForms 4.6

Red Hat JBoss Developer Studio Integration Stack 9.0 Installation Guide

Red Hat JBoss Data Virtualization 6.3 Getting Started Guide

Red Hat JBoss Enterprise Application Platform 7.2

Red Hat JBoss Fuse 6.1

Red Hat Enterprise Virtualization 3.6

Red Hat Enterprise Virtualization 3.6 Introduction to the User Portal

Red Hat Decision Manager 7.0 Migrating from Red Hat JBoss BRMS 6.4 to Red Hat Decision Manager 7.0

Red Hat OpenShift Application Runtimes 1

Red Hat Enterprise Linux Atomic Host 7 Getting Started with Cockpit

Red Hat JBoss Enterprise Application Platform 7.2

Red Hat JBoss Developer Studio Integration Stack 8.0

Red Hat Network Satellite 5.4

Red Hat CloudForms 4.2

Red Hat JBoss Developer Studio 9.1

Red Hat OpenStack Platform 13

Red Hat CloudForms 4.6

Red Hat Development Suite 2.2

Red Hat Certified Cloud and Service Provider Certification 1.0

Red Hat Decision Manager 7.0 Designing a decision service using guided rule templates

Red Hat Security Data API 1.0

Red Hat JBoss Data Grid 6.4

Red Hat JBoss Fuse 7.0-TP

OpenShift Dedicated 3 Release Notes

Red Hat JBoss Fuse 6.3

3.6. How to Use the Reports and Data Warehouse Capabilities of Red Hat Enterprise Virtualization. Last Updated:

Red Hat Decision Manager 7.0

Red Hat Enterprise Linux OpenStack Platform 7 Dell EqualLogic Back End Guide

Red Hat JBoss Developer Studio 9.0

Red Hat Process Automation Manager 7.0 Getting started with business processes

Red Hat Quay 2.9 Deploy Red Hat Quay - Basic

Red Hat Decision Manager 7.0 Migrating from Red Hat JBoss BRMS 6.4 to Red Hat Decision Manager 7.0

Red Hat JBoss BRMS 6.4

Red Hat Fuse 7.2 Fuse Online Sample Integration Tutorials

Red Hat Ceph Storage 3

Red Hat Enterprise Linux 5 Global Network Block Device

Red Hat Developer Studio 12.9

Transcription:

Red Hat CloudForms 4.1 Integration with ServiceNow Integrating ServiceNow CMDB with Red Hat CloudForms Last Updated: 2017-10-31

Red Hat CloudForms 4.1 Integration with ServiceNow Integrating ServiceNow CMDB with Red Hat CloudForms Red Hat CloudForms Documentation Team cloudforms-docs@redhat.com

Legal Notice Copyright 2017 Red Hat, Inc. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This guide provides instructions for using the CloudForms Management Engine features relevant to non-administrative users. It establishes basic system and operational concepts through taskbased scenarios and examples. If you have a suggestion for improving this guide or have found an error, please submit a Bugzilla report at http://bugzilla.redhat.com against Red Hat CloudForms Management Engine for the Documentation component. Please provide specific details, such as the section number, guide name, and CloudForms version so we can easily locate the content.

Integration with ServiceNow CMDB is available as a technology preview in this release of Red Hat CloudForms. For more information on the support scope for features marked as technology previews, see Technology Preview Features Support Scope.

Table of Contents Table of Contents. 1.. OVERVIEW........................................................................................................... 2.. 2... CONFIGURING............... SERVICENOW............... CONNECTION............................................................................ 2.. 3... MANAGING............ RECORD......... ATTRIBUTES..................................................................................... 3. 3.1. Create and Update (_patch) Record 3 3.1.1. Attribute 3 3.2. Get and Delete Record 4 3.3. Get All Records 4. 4... USE..... CASES..................................................................................................... 4. 4.1. Provisioning a Virtual Machine from a Template 4 4.2. Virtual Machine Retirement 4 4.3. Virtual Machine Reconfiguration (VMware Only) 5 1

Red Hat CloudForms 4.1 Integration with ServiceNow 1. OVERVIEW Red Hat CloudForms integration with ServiceNow enables authentication with an existing ServiceNow database and add/amend items in the ServiceNow database during state machine processing, such as the virtual machine provisioning state machine. Note that information in this guide assumes you have credentials and access to a ServiceNow database instance. The following new namespace and class delivers support for the management of ServiceNow Configuration Management Database (CMDB) records using ServiceNow s RESTful web service. /RedHat/Integration/ServiceNow/CMDB You can manage records in the CMDB_CI_SERVER table, including create, update, and/or delete. The following methods are included: Method Action create Create record in specified ServiceNow table. delete Delete record in specified ServiceNow table. get Get record from specified ServiceNow table and list its attributes. get_all Get all records in ServiceNow and list attributes. update Get specified record, update required attributes and post updated record. update_patch Post required attributes to specified record. NOTE Configuration item (CI) and record are used interchangeably and refer to items in a ServiceNow database table. 2. CONFIGURING SERVICENOW CONNECTION Configure the connection to the ServiceNow database by specifying the credentials in the CMDB schema or instances within. The following methods are included: snow_server ServiceNow database IP address or resolvable hostname. 2

3. MANAGING RECORD ATTRIBUTES snow_user ServiceNow user account with the necessary permissions. snow_password Associated user account password. The table name cannot be changed unless there is a specific requirement to manage records elsewhere. Entries in this table appear in the Configuration Base Items Servers menu in the ServiceNow web user interface. table_name ServiceNow cmdb_ci_server database table. 3. MANAGING RECORD ATTRIBUTES You can specify any attribute via the URI or CMDB class instance. If neither exists, the value is determined from the Red Hat CloudForms VM or miq_provision objects. The attributes can be reduced or extended as required by amending the Ruby methods. NOTE Some attributes are not free-text (variable) fields, that is, they must be specific values. For example, the vendor value must already exist in the ServiceNow Vendor table beforehand. 3.1. Create and Update (_patch) Record You can use the following attributes when creating and/or updating a record. 3.1.1. Attribute Attribute Value virtual Boolean true or false, set to true. name VMs Virtual infrastructure name. short_description Red Hat CloudForms virtual machine GUID. host_name The virtual machine s operating system hostname. cpu_count The virtual machine s CPU count. ram The virtual machine s memory. vendor The virtual machine s hardware vendor (provider). sys_id [a] ServiceNow record unique system ID. 3

Red Hat CloudForms 4.1 Integration with ServiceNow [a] sys_id attribute is not required during create. Its value is returned from the create request and the Red Hat CloudForms object custom attribute servicenow_sys_id is created and updated. 3.2. Get and Delete Record You can use the following attribute for getting or deleting a record. Attribute Value sys_id ServiceNow record unique system ID. 3.3. Get All Records There are no attributes required to get all records. This method gets all records in the specified ServiceNow table and writes their attributes to automation.log. 4. USE CASES The following examples show how ServiceNow can be integrated with automation workflows. 4.1. Provisioning a Virtual Machine from a Template The Cloud and Infrastructure Provision VM from Template State Machines contain RegisterCMDB and ActivateCMDB states. To create a new ServiceNow record during virtual machine provisioning, amend the ActiveCMDB state to call the create method, for example: /Integration/ServiceNow/CMDB/create 4.2. Virtual Machine Retirement The Cloud and Infrastructure default Retirement State Machines contain the DeactivateCMDB state. To update a virtual machine s ServiceNow record during virtual machine retirement, amend the DeactivateCMDB state to call the update_patch method, for example: Integration/ServiceNow/CMDB/update_patch? description=vm%20${/#vm.guid}%20retired%20from%20{productname_short} 4

4. USE CASES 4.3. Virtual Machine Reconfiguration (VMware Only) Create a new System Event instance to update the ServiceNow record after a virtual machine reconfiguration request has been approved and completed. Create a new /System/Event/ReconfigVM_Task_Complete instance with a relationship value: /Integration/ServiceNow/CMDB/update_patch 5