GithubHelp home page GithubHelp logo

isabella232 / concourse-deploy-rabbitmq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmware-archive/concourse-deploy-rabbitmq

0.0 0.0 0.0 16 KB

License: Apache License 2.0

Shell 100.00%

concourse-deploy-rabbitmq's Introduction

concourse-deploy-rabbitmq

Deploy RabbitMQ with omg in a Concourse pipeline.

Prerequisites

  1. Git
  2. Vault
  3. Concourse

Steps to use this pipeline

  1. Clone this repository.

    git clone https://github.com/enaml-ops/concourse-deploy-rabbitmq.git
    
  2. Copy the sample config file deployment-props-sample.json.

    cd concourse-deploy-rabbitmq
    cp deployment-props-sample.json deployment-props.json
    
  3. Edit deployment-props.json, adding the appropriate values.

    This file is used to populate a vault hash. It holds the BOSH credentials for both omg (username/password) and the Concourse bosh-deployment (UAA client) resource.

    $EDITOR deployment-props.json
    

    omg will also read other key/value pairs added here, matching them to command-line arguments. For example, to add the omg plugin parameter --syslog-address, you could add "syslog-address": "10.150.12.10" here rather than modifying the manifest generation script in ci/tasks.

    All available parameters/keys can be listed by querying the plugin. If not specified in deployment-props.json, default values will be used where possible.

    omg-linux deploy-product p-rabbitmq-plugin-linux --help
    
  4. Load your deployment properties into vault. VAULT_HASH you define here and vault_hash_misc in pipeline-vars.yml below must match. You may consider using the vault hash here to hold common settings, referenced by multiple omg-based deployments. In such a case, you might name the hash something like secret/nonprod-common-props.

    export VAULT_ADDR=http://YOUR_VAULT_ADDR:8200
    export VAULT_HASH=secret/rabbitmq-nonprod-props
    vault write $VAULT_HASH @deployment-props.json
    
  5. Delete or move deployment-props.json to a secure location.

  6. Copy the pipeline variables template.

    cp pipeline-vars-template.yml pipeline-vars.yml
    
  7. Edit pipeline-vars.yml, adding appropriate values.

    $EDITOR pipeline-vars.yml
    

    Note: When you are deploying Pivotal RabbitMQ, you must add your API Token found at the bottom of your Pivotal Profile page.

  8. Create or update the pipeline.

    fly -t TARGET set-pipeline -p deploy-rabbitmq -c ci/pivotal-rabbitmq-service-pipeline.yml -l pipeline-vars.yml
    

    or

    fly -t TARGET set-pipeline -p deploy-rabbitmq -c ci/pivotal-rabbitmq-service-pipeline.yml -l pipeline-vars.yml
    
  9. Delete or move pipeline-vars.yml to a secure location.

  10. Unpause the pipeline

    fly -t TARGET unpause-pipeline -p deploy-rabbitmq
    
  11. Trigger the deployment job and observe the output.

    fly -t TARGET trigger-job -j deploy-rabbitmq/get-product-version -w
    fly -t TARGET trigger-job -j deploy-rabbitmq/deploy -w
    

concourse-deploy-rabbitmq's People

Contributors

dlinsley avatar xchapter7x 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.