-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Describe the Bug
R10K documentation indicates that it is possible to specify git coordinates in the Puppetfile for each module. However, when attempting this, an error occurs and git checkout does not happen.
Expected Behavior
r10k should pull the requested git ref for the module
Steps to Reproduce
Steps to reproduce the behavior:
- Install r10k as per documentation
- Create a Puppetfile, eg:
# I know that this is redundant, but it also doesn't work with forks
mod 'puppetlabs-java',
:git => 'https://github.com/puppetlabs/puppetlabs-java.git'
:branch => 'main'or
# Specifying a hash also does not work
mod 'puppetlabs-java',
:git => 'https://github.com/puppetlabs/puppetlabs-java.git'
:commit => '9255a978bc362f21654b9f9edd9d3d94002208f8' # Also does not workr10k puppetfile install
ERROR -> :branch: "main" === :branch does not return true
or
ERROR -> :commit: "9255a978bc362f21654b9f9edd9d3d94002208f8" === :commit does not return true
Environment
- r10k Version: tested with 5.0.0, 4.1.0 (installed at /opt/puppetlabs/puppet/bin)
- Platform: Redhat 9.4
- Puppet 8.10.0
Additional Context
Metadata
Metadata
Assignees
Labels
No labels