git - Overwrite index file in /var/www with vcsrepo -


i trying make puppet module overwrite default index.file (which comes apaceh2) in /var/www/ index file have in git repository. using puppet plugin vcsrepo clone repository.

 vcsrepo { "/var/www/":                 provider => git,                 source => "git@git.*****/testing.git",                 identity => '/root/.ssh/id_rsa',                 require => package['git'],         } 

i right getting error:

error: /stage[main]/web::repository/vcsrepo[/var/www/]: not evaluate: undefined method `include?' nil:nilclass 

i have tried force=>"true", without managing solve problem.

the easiest way of doing clone git repository location, , use file resource make index.file either copy or symlink version in checkout.

vcsrepo { "/tmp/apacherepo":   provider => git,   source   => "git@git.*****/testing.git",   identity => '/root/.ssh/id_rsa',   require  => package['git'], }  file { '/var/www/index.file':   ensure  => present,   source  => '/tmp/apacherepo/index.file',   require => vcsrepo['/tmp/apacherepo'] } 

Comments

Popular posts from this blog

tcpdump - How to check if server received packet (acknowledged) -