Additional Puppet code for vRealize Automation Plug-in Starter Content Pack for vRA 7.3 and Puppet plug-in for vRealize 3.0
This Puppet code adds additional Modules, Manifests, Profiles and Roles for deploying a LAMP stack using a multi-machine vRA 7.3 blueprint.
LAMP is an open source Web development platform that uses Linux as the operating system, Apache as the Web server, MySQL as the relational database management system and PHP as the object-oriented scripting language. Because the platform has four layers, LAMP is sometimes referred to as a LAMP stack. Stacks can be built on different operating systems.
The LAMP stack consists of two server Roles, mysql and webapp. One installs a MySQL database server and the other installs a Apache/PHP web server.
Use vRA Custom Properties to define database name, user and password during request. The default property naming used in site/profile/manifests/lamp/mysql.pp is:
After a succesful deployment, open a webbrowser and type in http://[IP adress/FQDN of your webapp server] to verify the database connection.
Prerequisites: For using this code you must have Puppet Enterprise 7.x and VMware vRealize Automation 7.3 with Puppet plug-in 3.0 installed. Also the Puppet-vRO-Starter_Content pack has to be installed because the LAMP stack depends on several Profiles available in this Starter_Content.
To use this code, download and add it your Puppet code repository.
Special thanks for creation and testing of this LAMP content to Jeremy Adams and Kevin Reeuwijk from Puppet!
Getting started with Puppet Enterprise and Puppet plug-in for vRealize Automation
Here's your high-level plan to get started with vRA 7.3 Enterprise to take advantage of the new GUI Puppet components:
- Create a Puppet Enterprise master and follow the instructions at the bottom of this page to install the starter content.
- Remove any previous Puppet plug-ins and install the Puppet plug-in for vRealize Automation 3.0 into vRO.
- Follow the vRA 7.3 docs to add a Puppet endpoint (points to your master), and create your Puppet Enterprise blueprints using code from this repo that is now on your PE master.
Note: if you are using vRealize 6.x or 7.0 through 7.2, then use the "iaas_eventbroker" branch of this repo.
vRA 7.3 Puppet docs:
- Create a Puppet Endpoint
- Creating Puppet Enabled vSphere Blueprints
- Add a Puppet Component to a vSphere Blueprint
- vRealize Automation 7.3 Release Notes
Please see the Puppet plug-in for vRealize documentation for more detailed information.
Install Starter Content on your PE Master
Installation with git
git clone https://github.com/puppetlabs/puppet-vro-starter_content.git cd puppet-vro-starter_content sudo bash scripts/vra_nc_setup.sh sudo /opt/puppetlabs/bin/puppet agent -t
Installation with curl
curl -sSL https://github.com/puppetlabs/puppet-vro-starter_content/archive/production.tar.gz | tar -zx cd puppet-vro-starter_content-production sudo bash scripts/vra_nc_setup.sh sudo /opt/puppetlabs/bin/puppet agent -t