Skip to content

Install certbot through pip#85

Merged
javierbertoli merged 8 commits intosaltstack-formulas:masterfrom
XeryusTC:feature/179582_certbot_via_pip_installeren
Nov 18, 2021
Merged

Install certbot through pip#85
javierbertoli merged 8 commits intosaltstack-formulas:masterfrom
XeryusTC:feature/179582_certbot_via_pip_installeren

Conversation

@XeryusTC
Copy link

@XeryusTC XeryusTC commented Aug 2, 2021

PR progress checklist (to be filled in by reviewers)

  • Changes to documentation are appropriate (or tick if not required)
  • Changes to tests are appropriate (or tick if not required)
  • Reviews completed

What type of PR is this?

Primary type

  • [build] Changes related to the build system
  • [chore] Changes to the build process or auxiliary tools and libraries such as documentation generation
  • [ci] Changes to the continuous integration configuration
  • [feat] A new feature
  • [fix] A bug fix
  • [perf] A code change that improves performance
  • [refactor] A code change that neither fixes a bug nor adds a feature
  • [revert] A change used to revert a previous commit
  • [style] Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)

Secondary type

  • [docs] Documentation changes
  • [test] Adding missing or correcting existing tests

Does this PR introduce a BREAKING CHANGE?

No. Although configuration has changed backwards compatibility has been preserved by adding some logic in letsencrypt/map.jinja.

Related issues and/or pull requests

Describe the changes you're proposing

Install certbot by using pip. This is similar to using git except that it will download and install through pip. A virtualenv is created (default: /opt/letsencrypt).

Pillar / config required to test the proposed changes

The use_package pillar variable is replaced by install_method. So for the system package installation method

letsencrypt:
  use_package: true

becomes

letsencrypt:
  install_method: package

Likewise for the git installation method. Additionally one can now do

letsencrypt:
  install_method: pip

To use the new pip installation method.

Debug log showing how the proposed changes work

Documentation checklist

  • Updated the README (e.g. Available states).
  • Updated pillar.example.

Testing checklist

  • Included in Kitchen (i.e. under state_top).
  • Covered by new/existing tests (e.g. InSpec, Serverspec, etc.).
  • Updated the relevant test pillar.

Additional context

Xeryus Stokkel added 2 commits August 2, 2021 13:39
Change the use_package boolean to install_method string. This will allow
different installation methods besides system packages and git in the
future.
Offer alternative method of installing certbot with pip. Currently
untested on most supported platforms.
@XeryusTC XeryusTC changed the title Feature/179582 certbot via pip installeren Install certbot through pip Aug 2, 2021
@XeryusTC XeryusTC marked this pull request as ready for review August 3, 2021 13:04
@XeryusTC XeryusTC requested review from a team and javierbertoli as code owners August 3, 2021 13:04
@myii
Copy link

myii commented Sep 14, 2021

Apologies for the delay, @XeryusTC. I'm going to ask @javierbertoli to have a look at this, since there may be a breaking change in this. The good thing is that all the CI instances are passing, including the new suite that you have provided.

litnialex pushed a commit to litnialex/letsencrypt-formula that referenced this pull request Oct 1, 2021
Copy link
Member

@javierbertoli javierbertoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@XeryusTC, It LGTM, nice addition.

I see there are a few conflicts now.

If you fix them, I think it's OK to merge.

@javierbertoli javierbertoli merged commit 9f60703 into saltstack-formulas:master Nov 18, 2021
@saltstack-formulas-travis

🎉 This PR is included in version 3.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

myii added a commit to myii/ssf-formula that referenced this pull request Nov 23, 2021
@XeryusTC XeryusTC deleted the feature/179582_certbot_via_pip_installeren branch April 14, 2022 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants