Comments (11)
Yep, I need to have better handling of feature detection. There's no good way to say "this issue is accepted," so... this issue is accepted. :)
I'm wrapping up some work on puppet-network and then I should be able to hop to this ticket shortly.
from r10k.
Oh, I was just looking to fix this. Unfortunately this seems to be an issue with puppet as it returns 0 no matter what the face does. :( (see https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/command_line.rb)
from r10k.
There's an upstream bug for this at http://projects.puppetlabs.com/issues/15642
from r10k.
I'm going to target this bug at 1.1.0 so that 1.0.0 can get into RC.
from r10k.
1.1.0 has been blocked for a while, so I'm going to untarget this issue in the naive hope that 1.1.0 will get out the door sooner, and I can come back to this then.
from r10k.
Adrien, bump for status, I think it can be closed.
from r10k.
This is still an issue, we run entirely on hopes and dreams when calling puppet module $command
. I think that this can be closed out when #1 is implemented but if that doesn't get done then we need to make sure that the puppet
executable is present and the puppet module
subcommand is functional.
from r10k.
@adrienthebo perhaps checking for an exit code of 1 versus 127 will be helpful. For example, puppet module vs the not-present pupppet module:
[rnelson0@puppet ~]$ puppet module
Error: 'module' has no default action. See `puppet help module`.
[rnelson0@puppet ~]$ echo $?
1
[rnelson0@puppet ~]$ pupppet module
-bash: pupppet: command not found
[rnelson0@puppet ~]$ echo $?
127
from r10k.
The original case the problems was that of this was a version of puppet that did not include the pmt, the exit code would be zero. I could just drop support for 2.7 and be done with it though.
from r10k.
I think that gives you three values for the return code of "puppet module":
0 - puppet module isn't there at all, and puppet returns 0 for invalid faces
1 - puppet module exists but it returns a 1 when not provided a valid
command
127 - she'll can't find puppet at all
I would think dropping 2.7 is probably okay for most but I believe this
would be backwards compatible.
On Saturday, October 18, 2014, Adrien Thebo [email protected]
wrote:
The original case the problems was that of this was a version of puppet
that did not include the pmt, the exit code would be zero. I could just
drop support for 2.7 and be done with it though.β
Reply to this email directly or view it on GitHub
#8 (comment).
Rob Nelson
[email protected]
from r10k.
Since #1 is closed, this issue is no longer applicable.
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.