Skip to content

Commit

Permalink
solves issue saltstack-formulas#34
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicole Scherfenber committed Oct 27, 2018
1 parent 8b3102b commit fc662bb
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 14 deletions.
1 change: 1 addition & 0 deletions .kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ suites:
letsencrypt.sls:
letsencrypt:
use_package: false
version: 0.26.x
config: |
server = https://acme-staging.api.letsencrypt.org/directory
email = [email protected]
Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ env:
- INSTANCE=git-ubuntu-1604
- INSTANCE=git-ubuntu-1804
- INSTANCE=git-centos-7
- INSTANCE=debian-9
- INSTANCE=centos-7
- INSTANCE=deb-debian-9
- INSTANCE=rpm-centos-7

before_install:
- bundle install
Expand Down
6 changes: 0 additions & 6 deletions CHANGELOG.rst

This file was deleted.

5 changes: 1 addition & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
source "http://rubygems.org"
source "https://rubygems.org"

gem "unf"
gem 'rake'
gem "test-kitchen", '>=1.23.2'
gem "kitchen-docker"
gem "kitchen-salt", ">=0.3.3"
gem "kitchen-inspec"
gem 'inspec'

2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ letsencrypt-formula

Creates certificates and manages renewal using the letsencrypt service.

.. image:: https://travis-ci.org/saltstack-formulas/letsencrypt-formula.svg?branch=master

.. note::

See the full `Salt Formulas installation and usage instructions
Expand Down
1 change: 1 addition & 0 deletions letsencrypt/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ letsencrypt:
- python-certbot-apache
service: certbot.timer
cli_install_dir: /opt/letsencrypt
# version: 0.26.x # if use_packe false and if you want to have specific version of certbot you can enable it
config_dir:
path: /etc/letsencrypt
user: root
Expand Down
8 changes: 7 additions & 1 deletion letsencrypt/install.sls
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ letsencrypt-client:
{% else %}
pkg.installed:
- name: git
{% if letsencrypt.version is defined and letsencrypt.version|length %}
git.cloned:
- name: https://github.com/letsencrypt/letsencrypt
- branch: {{ letsencrypt.version }}
- target: {{ letsencrypt.cli_install_dir }}
{% else %}
git.latest:
- name: https://github.com/letsencrypt/letsencrypt
- target: {{ letsencrypt.cli_install_dir }}
- force_reset: True
{% endif %}
{% endif %}
2 changes: 2 additions & 0 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ letsencrypt:
# need a single one, but you can also add other plugins here

cli_install_dir: /opt/letsencrypt # Only used for the git install method
version: 0.26.x # if use_packe false and if you want to have specific version
# of certbot you can enable it without version git.latest is used

config: |
server = https://acme-v01.api.letsencrypt.org/directory
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
it { should be_executable }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
end

0 comments on commit fc662bb

Please sign in to comment.