Giter Club home page Giter Club logo

pcf-useful-scripts's Introduction

Useful Scripts

A collection of scripts that I have used or find useful when working with Pivotal Cloud Foundry (PCF).

Backup

A collection of backup scripts are documented here.

tile-install

The tile-install.sh script is intended to hekp with the import of tiles into Ops Manger.

Usage

You will need to know the FQDN/IP of your Ops manager (target), the user name and password you need to access it. I provided three options to pass this information;

  • ./tile-install <target> <user> <password>
  • Using environment variables $OpsMgr_Target, $OpsMgr_User and $OpsMgr_Pass
  • Follow the prompts on the screen (example below uses this method)

I uploaded two tiles (cf-1.9.5 and p-mysql-1.8.2) to a directory on my Ops Manager (~/tiles) server along with the tile-install.sh script from here.

.
├── cf-1.9.5-build.3.pivotal
├── om-linux
├── p-mysql-1.8.2.pivotal
├── README.md
└── tile-install.sh

0 directories, 5 files

The Ops Manager UI at this point doesn't have any additional tiles available (ERT and MySQL in my example here).

Ops Manager

I then executed the script;

redwards@om-pcf-1b:~/tiles$ ./tile-install.sh
 [ OK ] Discovered OM command set in local directory!
Enter Ops Manager target: opsmgr.gcp.#######.com
Enter Ops Manager Username: admin
 [ OK ] User input of params!

 	Tiles found in the directory;
	 ./p-mysql-1.8.2.pivotal
	 ./cf-1.9.5-build.3.pivotal

 [ ? ] Do you want to proceed and install the listed tiles? (y/n)  y
processing product
beginning product upload to Ops Manager
 1.02 GB / 1.02 GB [===================================================================================] 100.00% 18s
2m27s elapsed, waiting for response from Ops Manager...
finished upload
 [ OK ] Install tile ./p-mysql-1.8.2.pivotal
processing product
beginning product upload to Ops Manager
 4.96 GB / 4.96 GB [=================================================================================] 100.00% 2m33s
8m15s elapsed, waiting for response from Ops Manager...
finished upload
 [ OK ] Install tile ./cf-1.9.5-build.3.pivotal
 [ OK ] Completed Script

Imported Tiles

pcf-useful-scripts's People

Contributors

sapientcoffee avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.