Giter Club home page Giter Club logo

Comments (4)

adrienthebo avatar adrienthebo commented on June 18, 2024

By default r10k deploy environment doesn't deploy modules in the Puppetfile, because that can be an incredibly long process. For instance, the repository that I'm testing against has over 2000 modules deployed into the environments. To enable updating modules from the Puppetfile you can pass the -p flag to r10k deploy environment which will deploy all modules in all Puppetfiles. This is equivalent to the old behavior of r10k synchronize.

This is definitely an issue because I haven't made this distinction terribly clear in the documentation. How would you like this behavior to be displayed? Would you like to have a specific command equivalent to the old synchronize command that would do the recursive deployment? Would documentation be sufficient? What would be the most clear way to handle recursive deployments like this?

from r10k.

larstobi avatar larstobi commented on June 18, 2024

Ah, I see. The reason I didn't catch the -p flag was that I didn't realize that there was another level of help text at "r10k deploy environment --help", where it is nicely explained, and it works nicely. I don't require any more documentation than that.

By the way, did you notice that the OPTIONS section alternates randomly between being right after the USAGE section and being last? Not really a problem, but it is surprising.

root@master:/etc/puppetlabs/puppet/environments# r10k deploy environment --help
NAME
environment - deploy environments and their dependent modules

USAGE
    r10k deploy environment <options> <environment>
    <...>

OPTIONS
    -p --puppetfile    Deploy modules from a puppetfile

OPTIONS FOR DEPLOY
    -c --config        Specify a configuration file
    -c --config        Specify a configuration file
    -h --help          show help for this command
    -t --trace         Display stack traces on application crash
    -v --verbose       Set verbosity level
root@master:/etc/puppetlabs/puppet/environments# r10k deploy environment --help
NAME
    environment - deploy environments and their dependent modules

USAGE
    r10k deploy environment <options> <environment>
    <...>

OPTIONS FOR DEPLOY
    -c --config        Specify a configuration file
    -c --config        Specify a configuration file
    -h --help          show help for this command
    -t --trace         Display stack traces on application crash
    -v --verbose       Set verbosity level

OPTIONS
    -p --puppetfile    Deploy modules from a puppetfile
root@master:/etc/puppetlabs/puppet/environments#

from r10k.

adrienthebo avatar adrienthebo commented on June 18, 2024

Well, that's really weird that those fields are flip-flopping. This will probably have to be fixed in upstream; I'll see if I can get that worked out before 1.1.0. Thanks for noting that!

from r10k.

adrienthebo avatar adrienthebo commented on June 18, 2024

I've reported this upstream in denisdefreyne/cri#14, since this is an upstream issue I'm going to close this issue in favor of the upstream one. @larstobi thanks again for reporting this!

from r10k.

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.