subspace 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/ansible/roles/collectd/templates/delayed_job_postgres.conf +3 -2
- data/ansible/roles/nginx/tasks/main.yml +1 -1
- data/ansible/roles/nginx-rails/defaults/main.yml +1 -0
- data/ansible/roles/nginx-rails/templates/nginx-project-ssl +5 -0
- data/lib/subspace/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e42019d70233576032d1c5d3213507c81dd80e1915ddba0ec58f25cff414c6
|
4
|
+
data.tar.gz: 63a927ef5899ad64f6b8bd268705bab328082f6ebd7ee8c5a9b087e51fe2275b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ab07d182cb0454831ffc2ab02549859779b95dc013aff308ed592ab1117feca26d0128d3e08e387c1649f5f90924c58648fb46ec7a5697404c52eb0e880052a
|
7
|
+
data.tar.gz: 1ce04e587f1313a9dc62f79405ac28ad63490a506054f12e990cfa6f2a4e464100482a1e18d921888a6d5cb62a89c51d083b568fa882d7265bf24b98a1777290
|
data/README.md
CHANGED
@@ -63,7 +63,8 @@ e.g. To run only the alienvault tasks (all of which have been tagged with the
|
|
63
63
|
Role | Tags | Comment
|
64
64
|
---------- | ---- | -------
|
65
65
|
alienvault | alienvault | All tasks in the alienvault role have been tagged 'alienvault'
|
66
|
-
common | upgrade
|
66
|
+
common | upgrade | runs apt-get update and apt-get upgrade
|
67
|
+
common | authorized\_keys | updates the authorized\_keys file for the deploy user
|
67
68
|
rails | appyml |
|
68
69
|
monit | monit | All tasks in the monit role have been tagged 'monit'
|
69
70
|
|
@@ -98,7 +99,7 @@ Further, you can use the extremely command to create a local copy of `config/app
|
|
98
99
|
# Create a local copy of config/application.yml with the secrets encrypted in vars/development.yml
|
99
100
|
$ subspace vars development --create
|
100
101
|
|
101
|
-
This can get you up and running in development securely, the only thing you need to distribute to new team members is the vault password.
|
102
|
+
This can get you up and running in development securely, the only thing you need to distribute to new team members is the vault password. Grab it from a teammate and put it into `config/provision/.vault_pass`
|
102
103
|
|
103
104
|
NOTE: application.yml should be in the `.gitignore`, since subspace creates a new version on the server and symlinks it on top of whatever is checked in.
|
104
105
|
|
@@ -275,6 +276,8 @@ Optional variables:
|
|
275
276
|
|
276
277
|
nginx_proxy_read_timeout: Set [proxy_read_timeout](https://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_read_timeout). This is in seconds. You probably only want to change this if using rack-timeout (although I may be wrong). If using rack-timeout, it should be slightly higher than the rack-timeout timeout. I'm doing 5 seconds higher, but that was arbitrarily chosen.
|
277
278
|
|
279
|
+
ssl_force_redirect: redirect all HTTP traffic to HTTPS on the same host. Defaults to true and only applies if ssl_enabled is also true.
|
280
|
+
|
278
281
|
## nodejs
|
279
282
|
|
280
283
|
Used to install recent version of NodeJS. Must set `nodejs_version`. e.g. `nodejs_version: "8.x"`
|
@@ -393,4 +396,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/tenfor
|
|
393
396
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
394
397
|
|
395
398
|
# Roles and Variables
|
396
|
-
|
@@ -1,11 +1,12 @@
|
|
1
1
|
LoadPlugin postgresql
|
2
2
|
<Plugin postgresql>
|
3
3
|
<Query dj_count>
|
4
|
-
Statement "SELECT count(*) as count FROM delayed_jobs"
|
4
|
+
Statement "SELECT count(*) as count, queue FROM delayed_jobs GROUP BY queue"
|
5
5
|
<Result>
|
6
6
|
Type gauge
|
7
7
|
InstancePrefix "dj_count"
|
8
|
-
|
8
|
+
InstancesFrom "queue"
|
9
|
+
ValuesFrom "count"
|
9
10
|
</Result>
|
10
11
|
</Query>
|
11
12
|
|
@@ -5,7 +5,12 @@ server {
|
|
5
5
|
listen 80 default_server;
|
6
6
|
listen [::]:80 default_server;
|
7
7
|
server_name {{server_name}} {{server_aliases | join(" ")}};
|
8
|
+
|
9
|
+
{% if ssl_force_redirect == "true" %}
|
8
10
|
return 301 https://$host$request_uri;
|
11
|
+
{% else %}
|
12
|
+
{% include "_rails.conf" %}
|
13
|
+
{% endif %}
|
9
14
|
}
|
10
15
|
|
11
16
|
server {
|
data/lib/subspace/version.rb
CHANGED
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.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Samson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -298,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
300
|
rubyforge_project:
|
301
|
-
rubygems_version: 2.7.
|
301
|
+
rubygems_version: 2.7.9
|
302
302
|
signing_key:
|
303
303
|
specification_version: 4
|
304
304
|
summary: Ansible-based server provisioning for rails projects
|