Skip to content

Example Repository for using platform-automation

Notifications You must be signed in to change notification settings

ciberkleid/platform-automation

Repository files navigation

platform-automation

Repository for easily using PCF Platform Automation to install service tiles on Pivotal Cloud Foundry

Get started quickly

You will need:

  • The URL, username and password of the Ops Manager you want to target
  • Your Pivnet API token
  • The Pivnet details for the tile you wish to install (slug, version, file glob)
  • A private git repo, and a corresponding git private key
  • Access to Concourse to run the generated pipeline

Easy setup:

  1. Clone this repo, as well as your private repo, to your local machine, as follows:
git clone [email protected]:ciberkleid/platform-automation.git
git clone [email protected]:<YOUR-USERNAME>/<YOUR-PRIVATE-REPO>.git platform-automation-private
  1. Copy the sample config files from this repo to your private repo:
cp -ri platform-automation/config/samples/toolsmiths-pas platform-automation-private
  1. In your private repo, rename the toolsmiths-pas directory you just copied to an alias of your choice for your PCF foundation. Update the alias specified inside of the common.yml file as well.

  2. Edit the values in your common.yml and in any of the tile-specific config files you wish to use. See here for tips on changing ops_files and adding/removing parameters from section 3 of the tile-specific config files. Check your changes into your private git repo:

cd platform-automation-private
git add .
git commit -m "updated config files"
git push
cd ..
  1. Log in to Concourse using "w" as your Concourse target alias and set your pipeline:
fly --target w login --team-name <YOUR-CONCOURSE-TEAM-NAME> --concourse-url <YOUR-CONCOURSE-URL>
  1. Set the pipeline for a given tile using the fly-set-pipeline.sh script. The script will prompt you for the required input. You can also accept the defaults in shown in brackets. The script will also prompt to ask if you wish to unpause and trigger the pipeline.
. ./fly-set-pipeline
  1. The apply-changes job is configured to require a manual trigger. Keep an eye on the pipeline's progress and kick off the apply-changes job manually. Edit the file pipeline-parameterized.yml to make the trigger(s) automatic rather than manual.

That's it! You're done.

The next section provides guidance on determining the list of params for section 3 of the tile-specific config files based on changes to the choice of ops_files.

Build Out Your Tile Config

If the sample config files do not reflect the configuration you wish to use, or if you want to create config files for tiles not represented in the samples, this section is for you.

Steps:

  1. Run the design-config.sh script to produce the parameters you will need to set for a given tile installation. The script will prompt you for the required input. You can also accept the defaults in shown in brackets.
. ./design-config.sh
  1. Edit the ops_files in your tile config file.

Repeat steps 1 and 2 until you are satisfied with your configuration.

  1. Copy parameters provided by design-config.sh to your tile config file and assign values as needed. Remember to add a ":" to all parameters, even if you are leaving the value empty.

About

Example Repository for using platform-automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published