GithubHelp home page GithubHelp logo

pombredanne / ansible-role-aptly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aioue/ansible-role-aptly

0.0 1.0 0.0 12 KB

Install aptly debian respository manager and enable the REST API

Home Page: https://galaxy.ansible.com/list#/roles/3898

License: MIT License

ansible-role-aptly's Introduction

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

ansible-role-aptly's People

Contributors

aioue avatar msabramo avatar retr0h avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.