Set ensure => 'latest' and vcsrepo => 'git' for tp::dir,
then clone source or keep it latest if the directory exist.
Actual Behavior
ensure => 'latest' makes an error like:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation
Error: Error while evaluating a Resource Statement, Evaluation Error: No matching entry for selector
parameter with value 'latest' (file:
/etc/puppetlabs/code/environments/production/modules/tp/manifests/dir.pp, line: 211, column: 20)
(file: /etc/puppetlabs/code/environments/production/modules/tp/manifests/init.pp, line: 69) on node example.com
Expected Behavior
Set
ensure => 'latest'
andvcsrepo => 'git'
fortp::dir
, then clone source or keep it latest if the directory exist.Actual Behavior
ensure => 'latest'
makes an error like:Steps to Reproduce the Problem
Apply manifest:
puppet apply git_test.pp
Specifications
vcsrepo
can managelatest
forensure
(puppetlabs/vcsrepo · Puppet Forge).