Commit 90323358 authored by Rafael Monnerat's avatar Rafael Monnerat

packer: Include playbook to upload images to shacache.

parent 80fbd6ac
[networkcache]
download-binary-cache-url = http://www.shacache.org/shacache
download-cache-url = https://www.shacache.org/shacache
download-binary-dir-url = http://www.shacache.org/shadir
download-dir-url = http://www.shacache.org/shadir
signature_private_key_file = shacache/signature.key
signature_certificate_file = shacache/signature.cert
upload-cache-url = https://www.shacache.org/shacache
shacache-cert-file = shacache/shacache.crt
shacache-key-file = shacache/shacache.key
upload-dir-url = https://www.shacache.org/shadir
shadir-cert-file = shacache/shacache.crt
shadir-key-file = shacache/shacache.key
shacache-ca-file = /etc/opt/ca.crt
shadir-ca-file = /etc/opt/ca.crt
signature-certificate-list =
-----BEGIN CERTIFICATE-----
MIIB8DCCAVmgAwIBAgIJAPFf61p8y809MA0GCSqGSIb3DQEBBQUAMBAxDjAMBgNV
BAMMBUNPTVAtMCAXDTE0MDIxNzE2NDgxN1oYDzIxMTQwMTI0MTY0ODE3WjAQMQ4w
DAYDVQQDDAVDT01QLTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAsiqCyuv1
HO9FmtwnMbEa1/u8Dn7T0k7hVKYXVQYof+59Ltbb3cA3nLjFSJDr/wQT6N89MccS
PneRzkWqZKL06Kmj+N+XJfRyVaTz1qQtNzjdbYkO6RgQq+fvq2CO0+PSnL6NttLU
/a9nQMcVm7wZ8kmY+AG5LbVo8lmxDD16Wq0CAwEAAaNQME4wHQYDVR0OBBYEFEVi
YyWHF3W7/O4NaTjn4lElLpp7MB8GA1UdIwQYMBaAFEViYyWHF3W7/O4NaTjn4lEl
Lpp7MAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAgIPGoxhUa16AgjZx
Jr1kUrs8Fg3ig8eRFQlBSLYfANIUxcQ2ScFAkmsvwXY3Md7uaSvMJsEl2jcjdmdi
eSreNkx85j9GtMLY/2cv0kF4yAQNRtibtDkbg6fRNkmUopDosJNVf79l1GKX8JFL
zZBOFdOaLYY/6dLRwiTUKHU6su8=
-----END CERTIFICATE-----
- name: Upload a list of images to shacache, be sure you know what you are doing.
hosts: 127.0.0.1
connection: local
tasks:
- name: Upload a list of images to shacache, there is no verification for now
shell: networkcache-upload --prefix-key packerimage- --url {{ item }} --file {{ item }} shacache/shacache.cfg
with_items:
- output-debian8/packer-debian8.gz
- output-debian7/packer-debian7.gz
- output-ubuntu-14-04-server/packer-ubuntu-14-04-server.gz
- output-ubuntu-15-04-server/packer-ubuntu-15-04-server.gz
- output-centos72/packer-centos72.gz
- output-centos67/packer-centos67.gz
- output-debian8-testing-version/packer-debian8-testing-version.gz
- output-debian7-testing-version/packer-debian7-testing-version.gz
- output-ubuntu-15-04-server-testing-version/packer-ubuntu-15-04-server-testing-version.gz
- output-ubuntu-14-04-server-testing-version/packer-ubuntu-14-04-server-testing-version.gz
- output-centos67-testing-version/packer-centos67-testing-version.gz
- output-centos72-testing-version/packer-centos72-testing-version.gz
- output-debian8-webrunner/packer-debian8-webrunner.gz
- output-debian8-erp5-standalone/packer-debian8-erp5-standalone.gz
- output-debian8-wendelin/packer-debian8-wendelin.gz
- output-debian8-vm-bootstrap/packer-debian8-vm-bootstrap.gz
- output-debian7-vm-bootstrap/packer-debian7-vm-bootstrap.gz
- output-ubuntu-14-04-server-vm-bootstrap/packer-ubuntu-14-04-server-vm-bootstrap.gz
- output-ubuntu-15-04-server-vm-bootstrap/packer-ubuntu-15-04-server-vm-bootstrap.gz
- output-centos68-vm-bootstrap/packer-centos68-vm-bootstrap.gz
- output-centos72-vm-bootstrap/packer-centos72-vm-bootstrap.gz
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment