«

»

Feb 09

Due to high demand, here’s the combined AAA deployment!

I think this may be the highest requested post I’ve had so far. After creating the Dynamic deployment of the App Authoring Agent (AAA for the rest of this post) on Linux using SSH, the demand for a windows, or more importantly combined solution was flooding my inbox.

 

Quick DISCLAIMER based on internal tests by colleagues this works well but does open up two key points.

  1. You must have access to port 5480 on your vRA Virtual Appliance from the guest operating systems that you are planning to use.
  2. This also requires that if you are using in a load balanced vRA Virtual Appliance environment that you will need to choose a single VA to pull the agent installs from.

As you might imagine windows was a bit more difficult to over come the remote execution and had a number of manual steps. If you haven’t checked it out yet I highly recommend you take a look at my automation script remove the need for those manual steps. That automation script is what enabled me to complete this post!

So let’s get the pre-req/assumptions out of the way.

  • First you must be running vRA 7
  • The supported windows version with the script is 2012 R2 only
  • Have a working knowledge of vRO and how to import packages
  • Internet access for your guests and vRA (the scripts used actually pull down the latest ps1 script)
  • This guide already has way too many screenshots so I expect you can check boxes, click next, click finish, and entitle catalog items

Step 1. Download and Import the following package into your vRO environment

This includes both my ExtendingClouds workflows as well as the Guest Script Manager package that we use to execute our scripts inside the guests. I highly recommend using this instead of the standard run program in guest workflows.

Step 2. Log into vRO and expand Extendingclouds Examples -> helpers
Edit the GSM – Linux workflow
01-full-aaa-recordingmp4.png

Step 3. In the General tab
Edit the vmUsername and vmPassword
02-full-aaa-recordingmp4.png

 

Step 4. Repeat steps 2 and 3 for the GSM – Windows extendingclouds workflow
Edit the GSM – Windows workflow
03-full-aaa-recordingmp4.png

 

Step 5. In the General tab
Edit the vmUsername and vmPassword
04-full-aaa-recordingmp4.png

 

Step 6. Edit the AAA onBuildSuccess workflow
05-full-aaa-recordingmp4.png

 

Step 7. In the General tab
Verify the linScriptConfigurationResource points to the AAA for Linux
Verify the winScriptConfigurationResource points to the AAA for Windows
06-full-aaa-recordingmp4.png

 

Step 8. Go to the Schema tab
Edit the logic scriptable task
07-full-aaa-recordingmp4.png

 

Step 9. Go to the Scripting tab
Alter the password variable

The agent uses a service user to initiate the bootstrap service. This user is named darwin and this variable will define the password for that service user.
08-full-aaa-recordingmp4.png

 

We have now completed all of the tasks in vRA, time to jump into vRA with a privledged user.

Step 10. Go to Administration -> Property Dictionary
09-full-aaa-recordingmp4.png

 

Step 11. Property Groups -> Add New
10-full-aaa-recordingmp4.png

 

Step 12. Assign a name (id will be auto populated)
We will have to create 3 new entries, none of which should be overridable.
custom.appliance.fqdn with a value of your fully qualified vRA Appliance
custom.iaas.fqdn with a value of your IaaS/Model Manager windows server
Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.VMPSMasterWorkflow32 with a value of *

The last one is needed to pass these properties to vRA for the logic to execute during the onBuildSuccess event.
11-full-aaa-recordingmp4.png

 

Step 13. Go to design tab
Select your blueprint and copy
12-full-aaa-recordingmp4.png

 

Step 14. Enter the new name you would like for this blueprint
13-full-aaa-recordingmp4.png

 

Step 15. Properties -> Property Groups -> + New
14-full-aaa-recordingmp4.png

 

Step 16. Select the Group you created in Step 1215-full-aaa-recordingmp4.png

 

Step 17. Go to Custom Properties

custom.os with a value of linux or windows and not overridable

16-full-aaa-recordingmp4.png

 

Step 18. Drag software component onto your OS, if you don’t have a software component defined yet just go check out the sample exchange

This is our growing community driven place where you can download and upload content like blueprints.
17-full-aaa-recordingmp4.png

 

Step 19. Don’t forget to Publish
18-full-aaa-recordingmp4.png

 

Step 20. Go to Administration -> Events19-full-aaa-recordingmp4.png

 

Step 21. Subscriptions -> +New
20-full-aaa-recordingmp4.png

 

Step 22. Select Machine provisioning
21-full-aaa-recordingmp4.png

 

Step 23. Select Run based on conditions

All of the following

Expand Data->Lifecycle state-> Select Lifecycle state event
22-full-aaa-recordingmp4.png

 

Step 24. Select Equals
23-full-aaa-recordingmp4.png

 

Step 25. Select VMPSMasterWorkflow32.VMPSMasterWorkflow32.EVENT.onBuildSuccess
24-full-aaa-recordingmp4.png

 

Step 26. Add a condition

Type out in the text field data~machine~properties~agent.download.url

This looks for the specific property, which is only available when a software component is present on the request.

Check the green check mark to apply
25-full-aaa-recordingmp4.png

 

Step 27. Select Contains
26-full-aaa-recordingmp4.png

 

Step 28. Enter http in the text field.

The url always contains an http if that property is defined
27-full-aaa-recordingmp4.png

 

Step 29. Select the AAA onBuildSuccess workflow
28-full-aaa-recordingmp4.png

 

Step 30. Check the Blocking box and set a timeout of 20 minutes
29-full-aaa-recordingmp4.png

 

Step 31. Don’t forget to Publish
30-full-aaa-recordingmp4.png

With this complete you can utilize any software component and you won’t need to maintain any separate template in vCenter. Welcome to the nirvana that vRA 7 and EB have opened up!

If you would like to see exactly how I built this out I’ve got a step by step video available here.

6 comments

5 pings

Skip to comment form

  1. Amir A.

    Hi Gary, thanks a lot for such detailed documentation on this topic. I have found your previous blogs very useful as well. One quick question that I have is – does this install the Guest Agent as well or do we still have to install the that initially on the Windows template. Thanks,

    1. gary.coburn

      This will download and install both the gugent (guest agent) and the software components agents.

  2. Justin Turver

    HI,

    The download link you provide seems to point to an older linux-only version of the workflow. Can you post a link to the version as shown in the screenshots above?

    Many thanks
    Justin

    1. gary.coburn

      Justin, Try now. I’ve updated the package in sample exchange. If it still doesn’t work use this link.

      https://www.dropbox.com/s/uhxyz5hyzzdl00w/extendingclouds.eb.aaa.gsm.package?dl=0

  3. Ron Perron

    Great post, Gary. Thx..

    Just reviewing the logic of this now and without a bit of reverse-engineering, am wondering if there was an easy way to introduce or configure the script to simply use a locally available copy of the “prepare_vra_template.ps1” file?

    The issue I have is none of the Guest Machines have internet access which conflicts with your pre-req statement, “Internet access for your guests and vRA (the scripts used actually pull down the latest ps1 script)”.

    Apologize if this is covered off somewhere else..like I said…just reviewing this now..

    Thx. Ron

  1. Newsletter: February 12, 2016 | Notes from MWhite

    […] AAA deployment Here is an article about deploying the App Authoring Agent of vRA v7.  Quite handy […]

  2. vRA 7 - Windows templates for Software Deployments - VMware Cloud Management - VMware Blogs

    […] At the end of the day this script will provide you with a very quick entry point into utilizing software components on Windows. Please download, or fork and play with the script! Additionally if you want an example of how you can install the Application Authoring agents on Windows or Linux at request time please take a look at ExtendingClouds.com […]

  3. vRealize Automation 7 – Enabling the Event Broker part 2 » Extending Clouds

    […] powerful use cases as you can see by reviewing other more advanced Event Broker postings like Due to high demand, here’s the combined AAA deployment!, and New disk on a new SCSI adapter at request time. The issue is that it came to my attention by […]

  4. vRA 7 - Windows templates for Software Deployments - VMware Cloud Management

    […] At the end of the day this script will provide you with a very quick entry point into utilizing software components on Windows. Please download, or fork and play with the script! Additionally if you want an example of how you can install the Application Authoring agents on Windows or Linux at request time please take a look at ExtendingClouds.com […]

  5. vRealize Automation 7 – vRA Windows Agents Deployment Script » Extending Clouds

    […] I build out the logic for either linux or windows with the AAA. Feeling accomplished I say that was some good work now on to the next […]

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>