subspace 2.2.2 → 2.2.3
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/ansible/roles/common/tasks/main.yml +1 -0
- data/ansible/roles/common/templates/motd +1 -1
- data/ansible/roles/letsencrypt/tasks/main.yml +12 -6
- data/ansible/roles/rails/tasks/main.yml +1 -10
- data/lib/subspace/version.rb +1 -1
- data/subspace.gemspec +1 -1
- data/template/provision/group_vars/all.erb +9 -6
- data/template/provision/templates/application.yml.template +11 -11
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a986a32d45258059489792b7da873b584d4b90ae67c94d3e3e96dc8075c5f6e8
|
4
|
+
data.tar.gz: b0169f7307a741609e6bba7c3cfd18ef0d6b8316d1c168eeea39c1bd2ac9234e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8103b832b31b022559e5a2b41117bb573fb564ab6895e451ee2f8d793d872057eaad680ad36a96cb56acb5471913e5c4048d2e5ce9868f912afa8d6de6cf518f
|
7
|
+
data.tar.gz: 19cafc562c26440dc90e60e2e83c49d168518c4ee151267625a03e403b28c2545e5c6c15fc176d3e2d64bf64b6510291eb741c1fb4260fe48fff377fdc67db3a
|
data/CHANGELOG.md
CHANGED
@@ -10,6 +10,11 @@ This project attempts to follow [semantic versioning](https://semver.org/)
|
|
10
10
|
* Not working on OSX - macs don't read from /etc/profile.d/
|
11
11
|
* Stops showing color if you `sudo su`
|
12
12
|
|
13
|
+
## 2.2.3
|
14
|
+
* Add PATH to crontab for letsencrypt auto renewal
|
15
|
+
* log letsencrypt crontab to /var/log/cron.log
|
16
|
+
* fix setting hostname with systemd
|
17
|
+
|
13
18
|
## 2.2.2
|
14
19
|
* Use state: "present" instead of "installed"
|
15
20
|
|
@@ -4,7 +4,7 @@ This server brought to you by:
|
|
4
4
|
\___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
|
5
5
|
___) | |_| | |_) |__) | |_) | (_| | (_| __/
|
6
6
|
|____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
|
7
|
-
|_| v2.
|
7
|
+
|_| v2.2.3
|
8
8
|
~~~ https://github.com/tenforwardconsulting/subspace ~~~
|
9
9
|
|
10
10
|
If you need to make configuration changes to the server, please modify the
|
@@ -74,14 +74,20 @@
|
|
74
74
|
notify: start webserver
|
75
75
|
changed_when: true
|
76
76
|
|
77
|
+
- name: Set path at top of crontab
|
78
|
+
cron:
|
79
|
+
name: PATH
|
80
|
+
env: yes
|
81
|
+
job: /usr/bin:/bin:/usr/sbin
|
82
|
+
|
77
83
|
- name: Setup cron job to auto renew
|
78
84
|
become: true
|
79
85
|
when: "'apache' in role_names"
|
80
86
|
cron:
|
81
87
|
name: Auto-renew SSL
|
82
|
-
job: "{{certbot_dir}}/certbot-auto renew --
|
83
|
-
hour: 0
|
84
|
-
minute: 33
|
88
|
+
job: "{{certbot_dir}}/certbot-auto renew --no-self-upgrade --apache >> /var/log/cron.log 2>&1"
|
89
|
+
hour: "0"
|
90
|
+
minute: "33"
|
85
91
|
state: present
|
86
92
|
|
87
93
|
- name: Setup cron job to auto renew
|
@@ -89,7 +95,7 @@
|
|
89
95
|
when: "'nginx' in role_names"
|
90
96
|
cron:
|
91
97
|
name: Auto-renew SSL
|
92
|
-
job: "{{certbot_dir}}/certbot-auto renew --
|
93
|
-
hour: 0
|
94
|
-
minute: 33
|
98
|
+
job: "{{certbot_dir}}/certbot-auto renew --no-self-upgrade --nginx >> /var/log/cron.log 2>&1"
|
99
|
+
hour: "0"
|
100
|
+
minute: "33"
|
95
101
|
state: present
|
@@ -1,16 +1,7 @@
|
|
1
1
|
---
|
2
2
|
- name: Install rails apt dependencies
|
3
3
|
apt:
|
4
|
-
name:
|
5
|
-
with_items:
|
6
|
-
- git
|
7
|
-
- libffi-dev
|
8
|
-
- libgmp3-dev
|
9
|
-
- libpq-dev
|
10
|
-
- libxslt-dev
|
11
|
-
- nodejs
|
12
|
-
- zlib1g-dev
|
13
|
-
- ffmpeg
|
4
|
+
name: ['git', 'libffi-dev', 'libgmp3-dev', 'libpq-dev', 'libxslt-dev', 'nodejs', 'zlib1g-dev' ,'ffmpeg']
|
14
5
|
become: true
|
15
6
|
when: ('Ubuntu' in ansible_distribution)
|
16
7
|
tags:
|
data/lib/subspace/version.rb
CHANGED
data/subspace.gemspec
CHANGED
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
30
|
spec.add_development_dependency "bundler", "~> 1.12"
|
31
|
-
spec.add_development_dependency "rake", "~>
|
31
|
+
spec.add_development_dependency "rake", "~> 12.3.3"
|
32
32
|
spec.add_development_dependency "rspec", "~> 3.0"
|
33
33
|
|
34
34
|
spec.add_runtime_dependency "commander", "~>4.2"
|
@@ -5,10 +5,13 @@ use_sudo: true
|
|
5
5
|
|
6
6
|
# ruby-common
|
7
7
|
# pull the checksum/url from https://www.ruby-lang.org/en/downloads/
|
8
|
-
ruby_version: ruby-2.
|
9
|
-
ruby_checksum:
|
10
|
-
ruby_download_location:
|
8
|
+
ruby_version: ruby-2.7.1
|
9
|
+
ruby_checksum: d418483bdd0000576c1370571121a6eb24582116db0b7bb2005e90e250eae418
|
10
|
+
ruby_download_location: https://cache.ruby-lang.org/pub/ruby/2.7/ruby-2.7.1.tar.gz
|
11
|
+
bundler_version: 2.1.4
|
11
12
|
|
12
|
-
#
|
13
|
-
|
14
|
-
|
13
|
+
# Other stuff
|
14
|
+
letsencrypt_email:
|
15
|
+
nodejs_version: 13.x
|
16
|
+
ssl_enabled: true
|
17
|
+
postgresql_version: 11.7
|
@@ -4,24 +4,24 @@
|
|
4
4
|
# These environment variables are available to all environments, and can be secret or not:
|
5
5
|
|
6
6
|
# These are secret and can be changed per environment easily by using subspace vars <env> --edit
|
7
|
-
SECRET_KEY_BASE: {{SECRET_KEY_BASE}}
|
8
|
-
AWS_SECRET_KEY: {{AWS_SECRET_KEY}}
|
7
|
+
# SECRET_KEY_BASE: {{SECRET_KEY_BASE}}
|
8
|
+
# AWS_SECRET_KEY: {{AWS_SECRET_KEY}}
|
9
9
|
|
10
10
|
# These are not secret, and have the same value for all environments
|
11
|
-
ENABLE_SOME_FEATURE: false
|
12
|
-
MAX_USER_INVITES: 20
|
13
|
-
DEFAULT_EMAIL_ADDRESS: test@example.com
|
11
|
+
# ENABLE_SOME_FEATURE: false
|
12
|
+
# MAX_USER_INVITES: 20
|
13
|
+
# DEFAULT_EMAIL_ADDRESS: test@example.com
|
14
14
|
|
15
15
|
|
16
16
|
# These variable are not secret, but have different, static values for all environments
|
17
17
|
development:
|
18
|
-
INSECURE_VARIABLE: "this isn't secret"
|
19
|
-
AWS_BUCKET: my-app-development
|
18
|
+
# INSECURE_VARIABLE: "this isn't secret"
|
19
|
+
# AWS_BUCKET: my-app-development
|
20
20
|
|
21
21
|
dev:
|
22
|
-
INSECURE_VARIABLE: "but it changes"
|
23
|
-
AWS_BUCKET: my-app-dev
|
22
|
+
# INSECURE_VARIABLE: "but it changes"
|
23
|
+
# AWS_BUCKET: my-app-dev
|
24
24
|
|
25
25
|
production:
|
26
|
-
INSECURE_VARIABLE: "on different servers"
|
27
|
-
AWS_BUCKET: my-app-production
|
26
|
+
# INSECURE_VARIABLE: "on different servers"
|
27
|
+
# AWS_BUCKET: my-app-production
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -288,7 +288,7 @@ licenses:
|
|
288
288
|
- MIT
|
289
289
|
metadata:
|
290
290
|
allowed_push_host: https://rubygems.org
|
291
|
-
post_install_message:
|
291
|
+
post_install_message:
|
292
292
|
rdoc_options: []
|
293
293
|
require_paths:
|
294
294
|
- lib
|
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
304
304
|
version: '0'
|
305
305
|
requirements: []
|
306
306
|
rubygems_version: 3.0.3
|
307
|
-
signing_key:
|
307
|
+
signing_key:
|
308
308
|
specification_version: 4
|
309
309
|
summary: Ansible-based server provisioning for rails projects
|
310
310
|
test_files: []
|