itamae-plugin-recipe-letsencrypt 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -0
- data/lib/itamae/plugin/recipe/letsencrypt/get.rb +3 -2
- data/lib/itamae/plugin/recipe/letsencrypt/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5cab6a96bbe1a652752f51cb5c8a2dda729de71d
|
|
4
|
+
data.tar.gz: f53c61dc7425fda6aa0ed4fddb26559d24c5af97
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee99ff4816c384bbfa7723a497bfbf3cc1598c318f7ada5bfa0899b1ffc7431e53494f0b6f1eef1ef5cf17d674a3f7a23492a5de3ea81cd75918c89c61f00c81
|
|
7
|
+
data.tar.gz: e2557da0e30933b3ef02b44a9b19d0f792af5ed6d04885592d336fdad8a30dbf9cc3ae7005a2e1896efbc752350c6d63108ec1054ddba256cf3a10fa4598ad71
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -44,12 +44,14 @@ letsencrypt:
|
|
|
44
44
|
cron_user: root
|
|
45
45
|
cron_file_path: /etc/cron.d/itamae-letsencrypt
|
|
46
46
|
cron_configuration: true
|
|
47
|
+
challenge_type: 'http-01' # port80 is http-01, port443 is tls-sni-01
|
|
47
48
|
domains:
|
|
48
49
|
- test.example.com
|
|
49
50
|
- test2.example.com
|
|
50
51
|
```
|
|
51
52
|
|
|
52
53
|
|
|
54
|
+
|
|
53
55
|
## Contributing
|
|
54
56
|
|
|
55
57
|
1. Fork it ( https://github.com/hatappi/itamae-plugin-recipe-letsencrypt/fork )
|
|
@@ -3,7 +3,8 @@ node.reverse_merge!(
|
|
|
3
3
|
certbot_auto_path: '/usr/bin/certbot-auto',
|
|
4
4
|
cron_user: 'root',
|
|
5
5
|
cron_file_path: '/etc/cron.d/itamae-letsencrypt',
|
|
6
|
-
cron_configuration: true
|
|
6
|
+
cron_configuration: true,
|
|
7
|
+
challenge_type: 'http-01'
|
|
7
8
|
}
|
|
8
9
|
)
|
|
9
10
|
|
|
@@ -22,7 +23,7 @@ end
|
|
|
22
23
|
# get each domain certificate
|
|
23
24
|
node[:letsencrypt][:domains].each do |domain|
|
|
24
25
|
execute "get #{domain} certificate" do
|
|
25
|
-
command "#{node[:letsencrypt][:certbot_auto_path]} certonly --agree-tos -d #{domain} -m #{node[:letsencrypt][:email]} -a standalone --keep -n"
|
|
26
|
+
command "#{node[:letsencrypt][:certbot_auto_path]} certonly --agree-tos -d #{domain} -m #{node[:letsencrypt][:email]} -a standalone --keep -n --standalone-supported-challenges #{node[:letsencrypt][:challenge_type]}"
|
|
26
27
|
end
|
|
27
28
|
end
|
|
28
29
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: itamae-plugin-recipe-letsencrypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yusaku Hatanaka (hatappi)
|
|
@@ -60,6 +60,7 @@ extensions: []
|
|
|
60
60
|
extra_rdoc_files: []
|
|
61
61
|
files:
|
|
62
62
|
- ".gitignore"
|
|
63
|
+
- CHANGELOG.md
|
|
63
64
|
- CODE_OF_CONDUCT.md
|
|
64
65
|
- Gemfile
|
|
65
66
|
- LICENSE
|