GithubHelp home page GithubHelp logo

Comments (10)

ekohl avatar ekohl commented on August 20, 2024

You should probably use [manage_install](https://github.com/voxpupuli/puppet-letsencrypt/blob/master/REFERENCE.md#manage_install. install_method can also be used to install from VCS. It does pull in a virtualenv as well, but I think that might actually be a nice thing to isolate the system.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

Thank you for a quick response. Just so that I understand, install_method will install it's own virtual environment? Do I still need to install letsencrypt with pip or it'll take care of it?

Thank you!

from puppet-letsencrypt.

ekohl avatar ekohl commented on August 20, 2024

That should take care of it all.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

Thank you. Now It's looking for an epel module, even though I have specified not to.

class { 'letsencrypt':
  config         =>   {
    configure_epel => false,
    manage_install => false,
    install_method => 'vcs',
    server         => 'https://acme-staging.api.letsencrypt.org/directory',
  }

Does it need epel in order to install using vcs?

Again, thank you for helping me during a holiday week.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

Sorry, I forgot to include an error message. Thank you.

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Function Call, Could not find class ::epel for (file: /etc/puppetlabs/code/environments/puppet6/modules/letsencrypt/manifests/install.pp, line: 45, column: 7)

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

For testing purposes, I did add epel to Puppetfile and ran puppet --noop.

Notice: /Stage[main]/Letsencrypt::Install/Package[letsencrypt]/ensure: current_value 'purged', should be 'present' (noop)

Does it mean it will attempt to install letsencrypt as a package from epel?

Also, do I need to specify config_dir? With a virtual environment, I assume everything will be isolated to a specific directory (not /etc/letsencrypt).

class { 'letsencrypt::plugin::dns_rfc2136':
  config_dir => '/etc/letsencrypt',

Without it, I was getting an error:

Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown variable: 'letsencrypt::config_dir'.

I'm sorry for so many questions and thank you for your help.

from puppet-letsencrypt.

ekohl avatar ekohl commented on August 20, 2024

I personally don't use the VCS method so I can't really say. If you don't want to pull in EPEL, I'd prefer to still use packages. There's configure_epel. This is also how Fedora is supported: the packages are just available.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

As I have mentioned, we have our own RedHat based OS, thus build our own packages. Building our own letsencrypt is a big project (has multiple requirements), so using letsencrypt python module sounds like a good alternative... Thank you.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

Hello. I was able to create a local letsencrypt package and changed the code to the following:

    class { 'letsencrypt':
      config         =>   {
        email          => '[email protected],
        configure_epel => false,
        server         => 'https://acme-staging.api.letsencrypt.org/directory',
      }
    }

Unfortunately, I am still getting an error message

Could not find class ::epel

I am wondering if I am missing something and would appreciate your advice. Thank you.

from puppet-letsencrypt.

advorkin avatar advorkin commented on August 20, 2024

I think it was my syntax mistake. I will close the ticket for now. I went back to vcs and was able to get it to work. I've also created my own letsencrypt package, but I think vcs will be a better solution in this case.

Thank you for all your help.

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.