Configure GitLab integration in vRealize Automation 8.1 and Sync vRA Blueprint

vRealize Automation Cloud Assembly supports integration with GitLab and GitHub repositories so that you can manage blueprints and action scripts under source control. In the post I’ll demonstrate steps to integrate GitLab and sync vRA Blueprints. Let’s get started..

We must have an appropriate local Git repository configured with access to set up Git integration with vRealize Automation Cloud Assembly. Also, we must save our blueprints in a specific structure in order for them to be detected by Git.

There are few prerequisites to consider before we begin Gitlab Integration.

  • We must have access to GitLab & Access Tokens created & saved.
  • Configure and store Blueprints to be integrated with GitLab correctly. Only valid blueprint are imported into GitLab.
  • The following guidelines must be observed for all blueprints used with Git integration.

    • Each blueprint must reside in a separate folder.
    • All blueprints must be named blueprint.yaml.
    • All blueprint YAML files must use name and version fields.
    • Only valid blueprint are imported.
    • If you update a draft blueprint imported from Git, and its content differs from that in the top version, the draft will not be updated in subsequent syncs and a new version is created. If you want to update a blueprint and also allow further sync’s from Git, then you must create a new version after final changes.

Procedure to generate Access Token in GitLab.

  • In your Git account, select your login in the upper right corner, and navigate to the Settings menu

  • Select Access Tokens, then name your token, set an expiration date then, select API and create the token

  • Copy the resulting value and save it.

Procedure to Integrate Gitlab

  • To create an integration with GitLab select Infrastructure > Connections > Integrations in Cloud Assembly and then select +Add Integration

  • From the integration types select GitLab

  • Fill details like Name, URL and token and click validate, upon successful validation click Add.

  • Now you can see that Gitlab Integration has been done successfully.

Configure the GitLab connection to accept blueprints

  • Go to Cloud Assembly > Infrastructure > Integrations > Open GitLab integration from list and select the Project and click on Add Project.
  • Select the project and click Next.

  • Fill all the detail like, Type, Repository, Branch & Folder and click Add.

  • Once you click on Add the Synchronization task is initiated that imports blueprints into the platform

  • In the History tab we can see the synchronization successfully.

  • In the Design > Blueprint you can see the blueprints sync from GitLab.

  • Now we can release this blueprint and import in Content Source under Service broker.
  • Now you can see those blueprints are available in Catalog for deployment.

That’s it for this post.

Hope you liked this post. If you think this post is helpful to you, please like & share also comment if you need any further discussion.

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.