[PUP-6033] Recursive file resource in static catalog creates empty directory when source has trailing "/" Created: 2016/03/09 Updated: 2017/03/31 Resolved: 2016/03/10
|Fix Version/s:||PUP 4.4.0|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|Epic Link:||(Burnside) Direct Puppet: Client Static Catalog|
|Release Notes:||Not Needed|
|Release Notes Summary:||Ensuring unreleased static catalogs behave the same as non-static catalogs when sources have trailing slashes.|
The agent strips trailing slashes when normalizing the source parameter, which causes it to not find the metadata in the catalog.
|Comment by Josh Cooper [ 2016/03/10 ]|
To verify, create a manifest with a file resource whose source parameter has a trailing slash, and contains subdirectories and files:
Verify puppet copies the tree as opposed to creating an empty directory.
|Comment by William Hopper [ 2016/03/10 ]|
FR: Verified on puppet#stable:
On the master, we have:
With a manifest,
Upon an agent run, the static catalog is generated on the master:
... and on the agent, a non-empty directory is produced, and contains all of the subdirectories and files from the master moduledir.
Also verified that the same happens when the trailing slash is removed in the manifest: