GithubHelp home page GithubHelp logo

Comments (23)

akomakom avatar akomakom commented on July 20, 2024

removing ".cycle" from letsencrypt certonly.pp and using a matching-size array of web roots makes this work... not sure why cycle() doesn't work the same way in puppet as it does in irb.

from puppet-letsencrypt.

tomgillett avatar tomgillett commented on July 20, 2024

I can +1 this issue with .cycle.

Master Puppet 3.7.5, Ruby 1.8.7
Agent Puppet 3.4.3, Ruby 2.1.5p273

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

@akomakom just want to confirm: you're running 1.8.7 on the agent but 2.1.2 on the master? It would make sense with 1.8.7 on the master. This module isn't tested against 1.8.7 and, to be quite honest, I have no desire to support such an old Ruby version.

from puppet-letsencrypt.

akomakom avatar akomakom commented on July 20, 2024

@danzilio You are right, the master is using 1.8.7, even though I have 2.1.2 installed also, my mistake. Most of our infrastructure is running on Centos 6 and that's the ruby you get, so I'll stick with my hack until we can test newer ruby.

Thanks!

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@akomakom Can you make a fork with that workaround?

from puppet-letsencrypt.

akomakom avatar akomakom commented on July 20, 2024

@ways I made a fork: https://github.com/akomakom/puppet-letsencrypt , but it reduces functionality (The two arrays must always be the same size).

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@akomakom Ok. I made one at https://github.com/copyleft/puppet-letsencrypt/ with a new plugin called cli, which just allows you to specify everything via additional_args.

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

@ways interesting. that's something I would consider merging. although I'd rather change the name from cli to something like none or manual to differentiate it from an actual letsencrypt plugin.

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@danzilio Cool. I'll be happy to change it. I started out calling it 'manual', but that can be confused with letsencrypts manual verification. 'none', 'noop' or 'ways_rulez!' sounds OK to me. Want a pull-request for one of those?

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

@ways I'm starting to wonder if we have too much indirection/abstraction around the command that gets run. Thoughts?

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@danzilio Hm. Not sure what you mean. After inserting this hack? I don't see any problem with it. As long as the documentation is solid. I think it's a short-lived solution for us stuck with old setups, and most people can ignore it.

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

@ways i'm just wondering if the more durable solution is to give the user more access to the command that gets run... Let me mull this over a bit!

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@danzilio Ah, understood. No rush.

from puppet-letsencrypt.

ways avatar ways commented on July 20, 2024

@danzilio Any progress?

from puppet-letsencrypt.

domcleal avatar domcleal commented on July 20, 2024

I opened #40 with a compatible equivalent of the existing #cycle call, though for my personal use of this module I'd also be happy removing cycle entirely and having a fixed domains -> webroot_paths list (per akomakom@bf99c26 which I'm currently using).

I like the existing abstraction over the webroot command, it makes writing wrappers much easier.

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

Hmm...I feel like @akomakom's solution is cleaner. Is this the more intuitive solution?

from puppet-letsencrypt.

domcleal avatar domcleal commented on July 20, 2024

I agree having the array lengths match is the cleaner interface - the zipping behaviour might be useful for some, but I think it's a minority feature. The downside is that it's an API change, but since the module's 0.x, perhaps you're OK accepting it?

from puppet-letsencrypt.

domcleal avatar domcleal commented on July 20, 2024

but since the module's 0.x, perhaps you're OK accepting it?

Correction, it's 1.x now, so it'd probably be considered a major version change.

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

I'm fine bumping the major version. There are some big changes coming in the next release, the major version bump will raise some awareness.

from puppet-letsencrypt.

pgassmann avatar pgassmann commented on July 20, 2024

The webroot_paths and domain array should not need to match. it's possible to specify one webroot path and multiple domains on the cli. This standard case should be reflected.

at least one-for-all and matching numbers should be supported. I don't know how mismatched lengths should be handled best. Just append the remaining domains with no webroot specified, perhaps? -w 1 -d 1 -w 2 -d 2 -d 3 -d 4

from puppet-letsencrypt.

domcleal avatar domcleal commented on July 20, 2024

@pgassmann ah nice, you're right - the CLI arguments don't need to match.

I don't know how mismatched lengths should be handled best. Just append the remaining domains with no webroot specified, perhaps? -w 1 -d 1 -w 2 -d 2 -d 3 -d 4

The docs show this format with mismatched lengths is supported, any additional domains use the last webroot path. The current behaviour of this module with the cycle is to repeat from the first webroot path, so we ought to just remove that and allow the regular certbot behaviour.

from puppet-letsencrypt.

domcleal avatar domcleal commented on July 20, 2024

master...domcleal:28-no-cycle for that last suggested change.

from puppet-letsencrypt.

danzilio avatar danzilio commented on July 20, 2024

@domcleal looks good to me! i'll pull this in

from puppet-letsencrypt.

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.