Thursday, July 02, 2015

Use Application Services Puppet Services on VMs with preinstalled Puppet Agent

Your are running Puppet Services on VMware vRealize Automation Application Services Application Blueprints but having trouble to get the service deployed cause Puppet Agent is already part of your VM build and already preinstalled?

With a preinstalled Puppet Agent on a VM provisioned you run into an following error in the Linux_Puppet_Agent-1_0_0-INSTALL phase.


This is how to "skip" the installation part of the Puppet Agent during deployment in vRealize Automation Application Services:


  • Login to the vRealize Automation Application Services Appliance using 'darwin_user'
ssh darwin_user@vrasappliance.domain
  • Switch to 'root' user and provide password
su -
  • Stop the vRealize Automation Application Services service
/etc/init.d/vmware-darwin-tcserver stop
  • Switch to 'darwin' user
su – darwin
  • Dump the PostgreSQL database
pg_dump > /var/tmp/pg_vras.out
  • Backup the PostgreSQL DB dump
cp /var/tmp/pg_vras.out /var/tmp/pg_vras.original.backup
  • Rewrite the installation function call to a simple echo command
perl -pi -e 's/el_repo\\n/echo "el-repo"\\n/' /var/tmp/pg_vras.out
  • Drop the original vRealize Automation Application Services PostgreSQL databse
dropdb darwin;
  • Create a new and empty PostgreSQL database
createdb darwin;
  • Write the modified PostgreSQL database dump to the PostgreSQL database
psql < /var/tmp/pg_vras.out
  • Switch back to the root user
exit
  • Start the vRealize Automation Application Services service again
/etc/init.d/vmware-darwin-tcserver start

Thats it, now the installation of the Puppet Agent should be "skipped" and you can use vRealize Automation Application Services to deploy Puppet Services to VMs with preinstalled Puppet Agent ;-)

5 comments:

  1. Chris you talk about using application services. I have read this post. I see that you writing style is very nice. I also share a resource for your checking about Article rewriting service http://www.rewritingservices.org/how-article-rewriting-service-works/

    ReplyDelete
  2. There are different types of writing. In this blog we will learn about the use of appliucation services. This service would be useful and we can open https://capstonewritingservice.com/top-10-it-capstone-project-titles/ to get these services. I just like this blog so much.

    ReplyDelete
  3. I am facing the installation issue when I try to install the Automation Application Services on the application paper rewriting. After reading this post I am sure to install the Application in seconds.

    ReplyDelete