Skip to content

aioue/ansible-role-aptly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3e23b00 · Nov 17, 2016

History

18 Commits
Jul 11, 2016
May 22, 2015
May 22, 2015
Jul 13, 2016
Nov 17, 2016
Apr 22, 2016
May 22, 2015
Apr 28, 2016

Repository files navigation

aptly

  • Installs the aptly repository manager and enables the REST API

  • Includes test tasks which perform common actions on the repository using curl requests

  • Generates its own keypair used for signing

Role Variables

  • vars/main.yml: aptly_key_email email used to create your gpg key
  • vars/main.yml: aptly_company_name name used to create your gpg key

Setup clients to use the repo

apt-key add {public.key generated on server}
echo 'deb http://{server_name}/{respository_name} trusty main' > /etc/apt/sources.list.d/<respository_name>.list

Upload a new package using the REST API

curl -v -X POST -F file=@<package_name>.deb http://localhost:8080/api/files/<package_name>
curl -v -X POST http://localhost:8080/api/repos/<repository_name>/file/<package_name>
curl -v -X PUT -H 'Content-Type: application/json' --data '{}' http://localhost:8080/api/publish/<repository_name>/trusty

License

MIT

Author Information