I have a very simple Puppet (sub)module that should use Git to clone a repository from a remote location:
class wppuppet::git( $location = '/var/www/wp') { file { $location: ensure => 'directory', mode => '0755', } exec { 'git-wp': command => 'git clone https://github.com/WordPress/WordPress ${location}', require => Package['git'], } Package['git'] -> File[ $location ] -> Exec['git-wp']}
For some reason it constantly fails with the following error:
Error: git clone https://github.com/WordPress/WordPress ${location} returned 128 instead of one of [0]Error: /Stage[main]/Wppuppet::Git/Exec[git-wp]/returns: change from notrun to 0 failed: git clone https://github.com/WordPress/WordPress ${location} returned 128 instead one of [0]
I tried it with ${location}
as well as with $location
, but the result stays the same.