Giter VIP home page Giter VIP logo

pcfup's Introduction

pcfup

Travis GitHub tag

In case your Pivotal Cloud Foundry is not fully automated, an upgrade can be a lot of work. Especially if in your production environment Internet is not easily accessible, it is a lot of work to download the products, upload them in the Operations Manager and stage them. Afterwards, you will figure out that you need to do the same for the necessary stemcell.

pcfup is trying to solve some of those issues. It is downloading products with the related stemcells to a local folder, figure out if you already installed the correct stemcell and upload it to the operations manager. In case you have no internet access, it is generating a local cache and you can reuse the cache for further uploads. An offline preparation environment is planned, but not fully implemented yet.

The suggested place to install this tool is the Operations Manager. From there you have the fastest access to the Operations Manager.

Preparation

For the usage it is required to either use a couple of arguments for authentication against the Operations Manager or just set the following environment variables:

export OM_TARGET="https://172.18.147.1/"
export OM_USERNAME="admin"
export OM_PASSWORD="secretPassword"

The credentials of the Operations Manager are the same as you are using for accessing the webinterface.

Quick Start

For start using pivnet, you need to download this repository and execute the bash script pcfup. Afterwards you can use pcfup to download all required tools or do it manually like described below. Another option is to download the repository and execute create-bundled-pcfup.sh. The result will be the script pcfup-bundle which includes everything what you need. It is recommended to move the pcfup-bundle to your bin folder and call it pcfup.

Dependencies

The following software should be installed to use pcfup:

  • ruby

Installation

For the setup there is a small preparation script which is combining this repository to an executable. Aftewards you can move the executable to a location in your PATH and run it. A sample how it can look like is the following:

# download this repository to a local folder
git clone https://github.com/mimacom/pcfup.git

# create the bundle
cd pcfup
./create-bundled-pcfup.sh

# copy the bundle to a location in the PATH and make it executable 
mv pcfup-bundle /usr/local/bin/pcfup
chmod +x /usr/local/bin/pcfup

# run pcfup help
pcfup help

Install Required Tools

For installation of the required tools you can also use pcfup. Therefore you can use the command pcfup download-tools which will download all necessary tools for you.

If you don't have internet access, download and install the following products:

Login to Pivotal Network

For the login to the pivotal network you need a token from the Pivotal Network. There you can go to the profile and request a token (the deprecated token). Afterwards you can use the pcfup cli to login:

pcfup pivnet-login <pivnet-auth-token>

Download and Install a Product

If you know the name and the version of a product, you can easily install it with the following command:

pcfup product <product> <version>

Otherwise there are two options to figure out the name of the product. First of all, you can go to the PivNet and select the product there. The name of the product is also in the URL. You can select the specific versions and just pick one. pcfup expects the full version, a prefix matching is not implemented yet.

Another possibility is to use pcfup to figure out which products are currently installed. Therefore you can use the command pcfup installed-products.

After figuring out the correct product, you can figure out which versions are available in the PivNet by using the following command:

pcfup available-product-versions <product>

Configuration and Stemcell

During the installation pcfup will automatically figure out if there is a new stemcell necessary. In that case pcfup downloads the stemcell automatically and installs it to your PCF installation.

In case the new product needs configuration, you need to go to the Ops Manager manually.

Download and Install a Stemcell

In case you upgrade for example the Operations Manager, you might get requested to install several new stemcells. For that pcfup has the stemcell command. You need to specify the full version of the stemcell there:

pcfup stemcell <version>

The stemcell is only downloaded and installed if it is not already installed for your Operations Manager

Further Commands

Execute pcfup help to see information about all commands. Alternatively, you can have a look to the commands folder inside this repository.

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.