apigee / henchman

Orchestration and Automation tool
BSD 2-Clause "Simplified" License
109 stars 19 forks source link

Binary files are getting corrupted when template is used on folders. #106

Closed baskaran-md closed 8 years ago

baskaran-md commented 8 years ago
  - name: Setup provisioning folder
    template: src="files/provisioning/" dest="/tmp"
[ec2-user@instance001 home$ tree files/provisioning/
files/provisioning/
├── HttpBin.zip
├── org-provision.sh
├── ax-provision.sh
└── pg.sql

The zip file cannot be opened at the target.

[ec2-user@instance002 provisioning]$ unzip HttpBin.zip
Archive:  HttpBin.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of HttpBin.zip or
        HttpBin.zip.zip, and cannot find HttpBin.zip.ZIP, period.
[ec2-user@instance002 provisioning]$