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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16fdeb6665189ad86b0afed09a135d46d09ab3ce3a7fb50965d4aa739cc18fc6
4
- data.tar.gz: 28bc69bf843488eeb522f7eda442acd82c7c6c42deeb3ee235488d0d89f2a37f
3
+ metadata.gz: c0e42019d70233576032d1c5d3213507c81dd80e1915ddba0ec58f25cff414c6
4
+ data.tar.gz: 63a927ef5899ad64f6b8bd268705bab328082f6ebd7ee8c5a9b087e51fe2275b
5
5
  SHA512:
6
- metadata.gz: 2faf2f488e2db5b407ee49e70195ab9989cdb4ebdc58cb02082eba0d36105db900f8af5a1fb5337832ca4d1db99c887baa993bc4e02a02eef343e8465a1e3e46
7
- data.tar.gz: 56207ff0a0483b70baf34bbe7f131be492c8f9bf730a2d1da378ad543da782ef54221902864e3f494cfb4b2ba6c3bbbfe9951db0420491ceedc0212bac22b692
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, authorized\_keys | upgrade runs apt-get update and apt-get upgrade; authorized\_keys updates the authorized\_keys file for the deploy user
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
- ValuesFrom count
8
+ InstancesFrom "queue"
9
+ ValuesFrom "count"
9
10
  </Result>
10
11
  </Query>
11
12
 
@@ -9,7 +9,7 @@
9
9
  become: true
10
10
 
11
11
  - name: "Configure rails projects"
12
- include_role:
12
+ import_role:
13
13
  name: nginx-rails
14
14
 
15
15
  - name: create nginx status config
@@ -1,2 +1,3 @@
1
1
  ---
2
2
  client_max_body_size: 4G
3
+ ssl_force_redirect: true
@@ -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 {
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
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.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-04-10 00:00:00.000000000 Z
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.8
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