Creating a vRealize Service Blueprint to create Infoblox DNS records

In my last post I described how to create Infoblox DNS host records using the vRealize Orchestartor (vRO) HTTP-REST plug-in.  One of the use cases I presented at the end of this post was to create a vRealize Automation (vRA) advanced service to provide creating Infoblox DNS records as a vRA catalog item.  A day after that post I was asked to present on vRA and since we’ve been working with Infoblox a lot lately, I thought that this is something I could show.

Modifying the original workflow

Since I’ve already detailed how to create the workflow, I’m not going to cover it again, but we will have to modify the inputs of the workflow so that it makes more sense when calling it from vRA.  We can start off at section Modifying the workflow in the previous post.  Instead of having a single input named content with the full payload of our REST request, let’s go ahead and change it so that we have two inputs: hostname & ipaddress.  I’m not going to cover in detail how to add/modify attributes and other changes to the workflow.  It’s pretty tedious, I’m in a hurry, you probably already know how or can find the info in one of the previous posts or online.

Right-click the workflow and select Edit.

Select the Inputs tab, highlight the content attribute and click delete.

2015-07-14_14-56-53

Select Add Parameter, select arg_in_0 and give the attribute a name of hostname.

2015-07-14_15-00-28

Enter Hostname in the description field.  Repeat this step for the ipaddress parameter so that it looks like:

2015-07-14_15-00-51

Now we need to bind these inputs to our Scripting workflow element.  Select the

  1. Schema tab
  2. Scripting workflow element
  3. In tab
  4. Check hostname and ipaddress and press Select.

2015-07-14_15-07-53

With the Scripting workflow element still active, select the Scripting tab and add the following line of code:

var content = ‘{“ipv4addrs”:[{“ipv4addr”:”‘ + ipaddress + ‘”}],”name”:”‘ + hostname + ‘”}’

The content variable is the REST payload we will be sending to the Infoblox server.  Previously this was passed in as an input in its entirety.  Now we are building the content variable up via the ipaddress and hostname inputs.   The rest of the code is the same as in the previous post.

Now you can save and close the workflow.

Creating the vRA Advanced Service

Access the vRA portal and select the Advanced Services tab.  If you don’t see this tab, perform the following:

  1. Select Administration
  2. Identity Store and Users & Groups
  3. Enter your user id.
  4. Select your user id.
  5. Select View Details

2015-07-14_15-20-56

On the next screen check Service Architect and press update.  If you reload the browser, you should see the Advanced Services tab.  I don’t know vRA permissions too well so if you still don’t see it, try to give yourself more permissions.

Select

  1. Advanced Services
  2. Service Blueprints
  3. Add

2015-07-14_15-26-11

From here we can browse to the vRO workflow we previously created and select next.

2015-07-14_15-31-26

Name the service and press next.

2015-07-14_15-29-14

You don’t have to do anything on the next screen, but notice how it created fields for the Hostname and IP Address that it pulled from the workflow’s inputs.

2015-07-14_15-32-14

On the next screen press Add.

Creating a Catalog Item

We need to publish the service blueprint so that it becomes visible as a catalog item.  Highlight the new blueprint and select Publish.

2015-07-14_15-34-48Select

  1. Administration
  2. Catalog Management
  3. Catalog Items

2015-07-14_15-35-452015-07-14_15-36-30

Now our service blueprint is available as a catalog item and has a source of Advanced Designer Service.  Select Configure.

Here I’ve added an Infoblox icon and added the catalog item to the Infrastructure service.

2015-07-14_15-40-09

You can manage services by clicking the Services menu item under the Administration tab.

Add an entitlement to the service/catalog item

If your user account doesn’t already have access to the service where you placed the catalog item or you did not place the catalog item into a service, you’ll need to add an entitlement.

Select.

  1. Administration
  2. Catalog Management
  3. Entitlements
  4. The business group your in
  5. Edit

2015-07-14_15-42-57

Either add the service where you placed the catalog item or add the catalog item individually:

2015-07-14_15-46-30

Requesting the catalog item

Now we are ready to request the catalog item from the Catalog tab.  Simply select Request on the Create DNS Record item.

2015-07-14_15-47-58

Give the request a description. Fill in the details and press submit.

2015-07-14_15-50-06

You can see the status of your request on the Requests tab.

2015-07-14_15-51-43

You will also see the workflow run in vRO:

2015-07-14_15-52-39

The new DNS record should now be in Infoblox.

Advertisements


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s