Skip to content

r10k puppetfile install does not adhere to global exclude_spec false #1392

@vicinus

Description

@vicinus

Describe the Bug

r10k puppetfile install removes the spec directories of the modules even if in the r10k.yaml configuration file is globally set, that the spec directories should not be removed:

deploy:
  exclude_spec: false

It works if in the Puppetfile for every module exclude_spec: false is set.

Expected Behavior

r10k puppetfile install should not remove the spec directories if in the r10k.yaml configuration file is globally set, that the spec directories should not be removed.

Steps to Reproduce

  1. Setup a Puppetfile with a module, that has a spec directory:
mod 'puppetlabs/apache',
  :git => 'https://github.com/puppetlabs/puppetlabs-apache.git',
  :ref => 'v12.1.0'
  1. Setup a r10k.yaml file which disabled spec directory removal:
deploy:
  exclude_spec: false
  1. Run r10k puppetfile install --config=r10k.yaml

Environment

r10k version 4.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions