Comments (4)
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.
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.
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.
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)
- Require docker image for ARM64 platform HOT 3
- rugged segmentation fault HOT 2
- environment_name is undocumented HOT 5
- Pass changed modules list into the postrun command HOT 6
- Setting install_path on a module in an environment source errors
- Tarball module content will be unpacked into an subdirectory with tarball name HOT 2
- R10k canβt be installed with Ruby 3.x HOT 6
- Add a TOC to the configuration doc
- svn doesn't work any more HOT 5
- Yaml environments fails to deploy banch when commit sha is a number HOT 1
- r10k gem fails to install on windows without admin or Create symbolic links user rights HOT 2
- R10k should be able to use bare Git repository without authentication as conrol_repo HOT 4
- R10k container - cannot generate types (missing puppet binary) HOT 1
- $modifiedenvs does not pass environment to postrun hook on deletion HOT 1
- r10k should not depend on gettext as a runtime dependency HOT 1
- r10k puppetfile install fails with "ERROR -> wrong number of arguments (given 2, expected 1)" when pool_size set to 1 HOT 1
- Not sure about the hiera.yaml statement in common-patterns HOT 2
- Allow override of exclude_spec option with puppetfile install subcommand HOT 1
- r10k gem is not compatible with faraday 2.9.0 HOT 2
- environment deployments: postrun $modifiedenvs lists all environments rather than only those modified HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from r10k.