Giter Club home page Giter Club logo

Comments (8)

nanliu avatar nanliu commented on June 24, 2024
  1. ftp:////filename.txt isn't really valid path.
  2. the content method is only implemented for HTTP(s), not FTP.

If you wish to support ftp protocol as a remote_url, please implement content fetching for ftp.

from puppet-archive.

dannythk avatar dannythk commented on June 24, 2024

I am not familiar with RUBY script, but I was looking at the puppet_x/bodeco/util.rb and noticed there is a class for FTP. That is why I thought FTP was supported.

I tried to go down HTTP path as well, but it failed due to failed certificate check. We usually provide "no-check-certificate" option which is not an option in the module.

For now, I am just going with passing the checksum as a hiera data. Then I will evaluate with my team whether to implement the FTP or resolve the HTTP issue that I am facing right now.

from puppet-archive.

dannythk avatar dannythk commented on June 24, 2024

Able to retrieve the checksum file using checksum_url now. But it still does not work for me because all of my checksum file has a "EOF" character at the end. I am relatively new, how could I create a checksum file without a EOF character?
For now, my workaround is to use checksum field instead. But using the checksum file is ideal because I do not have to update the hieradata every time we release a new file.

from puppet-archive.

nanliu avatar nanliu commented on June 24, 2024

If there's a whitespace char, maybe a .chomp will clean it up. An example file would be helpful.

from puppet-archive.

glenjamin avatar glenjamin commented on June 24, 2024

I've just run into the newline-at-EOF issue.

Would it be feasible to add a .strip inside the code which fetches the remote checksum?

from puppet-archive.

igalic avatar igalic commented on June 24, 2024

@glenjamin could you, as @nanliu suggests, provide that checksum file as example?
either here in this issue, or perhaps in a pull request that fixes the issue ;)

from puppet-archive.

dannythk avatar dannythk commented on June 24, 2024

thanks, I'll test it out to check if that fix my issue as well.

from puppet-archive.

igalic avatar igalic commented on June 24, 2024

\o/

from puppet-archive.

Related Issues (20)

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.