KimNorgaard/KimNorgaard-httpfile

file already exists

RiaanPretorius opened this issue · 1 comments

I am not sure if this is a bug, but if the file already exists i get dependency error if used in the way:

httpfile { 'myfile': source => 'http://myfile'
}

file { "myfile":
owner => "myuser",
group => "myuser",
mode => 0755,
require => Httpfile['myfile']
}

Runs perfect the first time, but breaks on second run because the file already exists. something like a default overwrite might be usefull?

Sorry for the late reply. Somehow this issue slipped by me.

You can use the force => true option do always download the file.

This didn't work like it was supposed to in 0.1.7 so I've fixed the issue and uploaded a new version (0.1.8) to the forge.