Took the __file parts from master.
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
Conflicts:
cdist/conf/type/__file/gencode-local
cdist/conf/type/__file/gencode-remote
- upload file in a safer way
- remove destination if it is not a file
- only set attributes if required
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>