GithubHelp home page GithubHelp logo

aptly-role's People

Contributors

dortegau avatar jmonterrubio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aptly-role's Issues

Install task fails with 404 error accessing your bintray

After working through 2-3 other bugs on a branch of my fork of your role, I've now run into this error, and seek some explanation about your installation method. Is this role really depending on a personal bintray resource? Is anyone using this role successfully?

TASK [APTLY | Untar aptly] **************************************************************************************************************************************************fatal: [aptly]: FAILED! => changed=false
  msg: 'Failure downloading https://bintray.com/artifact/download/smira/aptly/aptly_1.4.0_linux_amd64.tar.gz, HTTP Error 404: Not Found'

Publish repositories fails bc gpg key creation and key ids aren't tracked correctly

When running your role on a fresh Debian Buster machine (after working through several earlier errors), I'm now getting the below error in the "Publish repositories" task:

TASK [aptly : APTLY | Publish repositories] **************************************************************************************************failed: [aptly] (item=biamp-stretch) => changed=true                                                                                            ansible_loop_var: item
  cmd:                                                                                                                                          - aptly
  - publish
  - repo                                                                                                                                        - -config=/etc/aptly.conf
  - -component=main
  - -gpg-key=pub
  - biamp-stretch                                                                                                                               - biamp-stretch                                                                                                                               delta: '0:00:00.033917'
  end: '2020-11-10 10:38:10.176240'
  item: biamp-stretch                                                                                                                           msg: non-zero return code                                                                                                                     rc: 1
  start: '2020-11-10 10:38:10.142323'
  stderr: |-                                                                                                                                      gpg: skipped "pub": No secret key
    gpg: signing failed: No secret key
    ERROR: unable to publish: unable to detached sign file: exit status 2                                                                       stderr_lines: <omitted>
  stdout: |-
    Warning: publishing from empty source, architectures list should be complete, it can't be changed after publishing (use -architectures flag)
    Loading packages...
    Generating metadata files and linking package files...                                                                                        Finalizing metadata files...
    Signing file 'Release' with gpg, please enter your passphrase when prompted:
  stdout_lines: <omitted>                                                                                                                     ...ignoring

I believe the problem (gpg: skipped "pub": No secret key) is that the gpg key id used in the aptly publish repo command ("pub") isn't the key id you should be using. This key id is found from taking the last one reported from your gpg --list-keys command in tasks/config.yml:

gpg --list-keys | grep 'pub ' | tail -1 | sed 's/pub   2048D\///g' | cut -d' ' -f1

Aside from the gpgkey generation and usage not working in this role, I'm genuinely confused about what you're trying to accomplish by grabbing the last key from the list. Seems to me that you'd want to use the one associated with the email addr..

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.