Coder Social home page Coder Social logo

learnmiq / miq-flow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thomasbuchinger/miq-flow

0.0 2.0 0.0 145 KB

This command line utility enables the use of git feature branches on top of the default ManageIQ Automate Export/Import scripts.

License: Apache License 2.0

Ruby 97.28% Shell 2.72%

miq-flow's Introduction

ManageIQ Workflow Automate Importer

Build Status

This command line utility enables the use of git feature branches on top of the default ManageIQ Automate Export/Import scripts.

The Problem

ManageIQ handles multiple code trees (Automate Domains) using a priority based lookup, this limits the codebase to one master and one shared develop branch for all developers.

At the same time it is common for ManageIQ deployments to have a shared DEV environment, as custom Automate Methods often depend on:

  • External services called via REST
  • Additional permissions (e.g. firewall clearing, administrative accounts, ...)

How does miq-flow help?

miq-flow uses the version history in git to enable "feature-domains", which avoid the lookup problem (Details).

  • Multiple people can work on the same appliance at the same time (but not on the same method)
  • Promoting code is no longer a all-or-nothing decision
  • Pull-Requests and Commit-Squashing work the way you expect them to work
  • Code is cloned from a remote repository, if it is not already on the appliance
  • Manual changes on the WebUI are still possible (Details)

How do I use it?

  • Download and install the miq_flow gem from GitHub
  • Configure miq-flow:
    • Use CLI parameter (see miq-flow help) or environment variables
    • Download and edit the configuration file: curl -o ~/.miqflow.yaml https://raw.githubusercontent.com/ThomasBuchinger/miq-flow/master/config.yaml
  • Run ./bin/miq-flow deploy BRANCH with the correct --provider option:
    • local: This provider assumes running on a ManageIQ Appliance and uses the evm:automate:import rake task (you want to use this one)
    • noop: Preview what the miq-flow would do, without modifying ManageIQ

For additional instructions see the full installation guide or run miq-flow from source

Commands

See miq-flow help for details. Basic Commands are:

  • branch list - lists a summary for each branch in git
  • branch inspect BRANCH - show details of a given branch
  • domain list - lists Automate Domains found in ManageIQ
  • deploy BRANCH - deploys the code in a feature-branch

Notes

  • miq-flow assumes to run on a ManageIQ appliance, since there is no way to remotely import Automate Domains
  • Make sure you have Rugged, RestClient and Thor installed (it is on the ManageIQ Appliances).
  • miq-flow may checkout a different branch, when used with a local repository

miq-flow's People

Contributors

thomasbuchinger avatar

Watchers

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