prun-ops 0.3.3 → 0.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206bf28d664f34f2b4a8a445208f153cf8a3d0997035e511686edc419b4ed843
4
- data.tar.gz: a35e887797566338c0b4b333854d5612356520de96b6a54254512cad20498a23
3
+ metadata.gz: c95ddf991d7158d0377b86777ba2da36bb59dd152ffcaed325a6dec1076a8ab9
4
+ data.tar.gz: cfa8ba60f3218caa35dfc18d97959c5b5a08676a2293bbaa75b1a2548d00b8e9
5
5
  SHA512:
6
- metadata.gz: 814f97e9446729737268609f01cd86d7454be4f3bfab7c7f8f9396279d1560a81f038f2a24163cbd092262d209cdd8e075a1b65a255aa6f10d1ddb833124c9df
7
- data.tar.gz: 38656a3d1bb311a2efdd76c48ffa6ae8f132a15dbd75bb8d4142c07b0a46badca136fa0bb8126bc67421f5dbc6051a3ff2afac2cf1a1563dc7878f62e7376ca4
6
+ metadata.gz: 02fb72ce346606fa541cbfb616932bd5fa31c52d656fcbb8112cc6d05b58fdfc6c149fb7470766d8814218503ebc2acabf725d34406f32c9acad59d78c3a8faf
7
+ data.tar.gz: d99c906b2724993def5752bbb7619d5ca93419fa304d92b80891e48545c2f53881ceba632f1d6819506aa59a4e80288e8ea173fb0763270b131e265239bc0f2d
@@ -13,8 +13,8 @@ namespace :nginx do
13
13
  on roles(:web, :api) do |host|
14
14
  run_locally do
15
15
  run_in host, <<-EOBLOCK
16
- sudo snap install --classic certbot
17
- sudo ln -s /snap/bin/certbot /usr/bin/certbot
16
+ sudo apt update
17
+ sudo apt install certbot python3-certbot-nginx -y
18
18
  sudo certbot --nginx -m admin@#{host.hostname} --non-interactive --agree-tos --domains #{host.hostname}
19
19
  EOBLOCK
20
20
  end
@@ -23,6 +23,10 @@ namespace :nginx do
23
23
 
24
24
  task :ssl do
25
25
  on roles(:web, :api) do |host|
26
+ execute <<-EOBLOCK
27
+ cd /etc/ssl/certs
28
+ openssl dhparam -out dhparam.pem 4096
29
+ EOBLOCK
26
30
  template 'vhost_ssl.conf', '/etc/nginx/conf.d/vhost.conf'
27
31
  invoke 'nginx:restart'
28
32
  end
@@ -1,3 +1,3 @@
1
1
  module PrunOps
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prun-ops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Lebrijo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-19 00:00:00.000000000 Z
11
+ date: 2024-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler