Giter Site home page Giter Site logo

Comments (5)

herlo avatar herlo commented on June 16, 2024

A better approach here might be to think in terms of the topologies and layouts. Something like:

linchpin topology create|get|list
linchpin layout create|get|list

In terms of linchpin topology get, it seems having a --remote option is not needed. Consider that anything with file:// would imply local (or just with a /path/to/topo), whereas http://, git://, ssh:// would imply remote protocols.

Also, it might be advantageous to have a component in the Pinfile which identifies the remote registry as indicated previously in PR #88. Something like:

topology_registry: git://github.com/CentOS-PaaS-SIG/linchpin_topologies.git
layout_registry: git://github.com/CentOS-PaaS-SIG/linchpin_layouts.git

across2clouds:
 topology_name: openshift_aws_5node
 inventory_layout_file: openshift_layout_with_5nodes

dockercontainer:
 topology: herlo_docker_stuff

If this were in place, one could provide the command:

linchpin topology get openshift_aws_5node

which would look at the topology registry and pull down the given topology and put it in the proper place (probably the topologies directory at PWD). Additionally, one could override the config file by passing --topology_registry=file://path/to/local/registry.

Configuring like this could also allow for push actions, given a file://, git@, or ssh:// location.

from linchpin.

herlo avatar herlo commented on June 16, 2024

Please note, I did use topology instead of topo. The linchpin command could provide an alias called topo in addition to the full name. I find this an important thing as typing a lot of characters is annoying, but semantics are also important.

from linchpin.

herlo avatar herlo commented on June 16, 2024

Please NOTE: topology_registry and layout_registry are optional parameters.

from linchpin.

herlo avatar herlo commented on June 16, 2024

see issue #210

from linchpin.

samvarankashyap avatar samvarankashyap commented on June 16, 2024

#333 fixes the issue

from linchpin.

Related Issues (20)

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.