subspace 0.5.15 → 0.6.15

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
  SHA1:
3
- metadata.gz: 1385856eec9059353b8de985b61712f987f16e54
4
- data.tar.gz: e7885584a297c3f332d7b0904407892fbb393e63
3
+ metadata.gz: 42e80d0103ba572639f75442c374fa988c50d5b7
4
+ data.tar.gz: bb46e90302c646e5bfef916b55a8a013c0141ee1
5
5
  SHA512:
6
- metadata.gz: 6e7c3a38ca6702389b7c913906cdabd167d0c83628beb9662d72bd1c78ef4ac974dfffe2bbf027d8c7a67194b99c60db29add0542fb30fb1199075d5a4dc0454
7
- data.tar.gz: 67034239d1a64fe0da90ce9be4997d80844186e88d4a4d8ea1aa42ce7561da0db0e278e3a30572f542250bdb3afc5a903ccb3ed2d7692243b276650e18751623
6
+ metadata.gz: 1ff42416a19df23c9f4ef3dfa37d581c995cce1c9c969ab2cf5c02ca819e5c5b7aee89f2d45f341a9976186631a4d140da060b943719c3df52aa5866792ac472
7
+ data.tar.gz: 7828e0667d414cedbe71922eedef425a3bd995ba48cbe24f681eecfa6a323e3fa46b09be019e6137c32ded31d668162e10642a92cecd5fed6052552a7de6c9b2
data/CHANGELOG.md CHANGED
@@ -6,7 +6,19 @@ This project attempts to follow [semantic versioning](https://semver.org/)
6
6
 
7
7
  ## Unreleased
8
8
 
9
- * _nada_
9
+ * nada
10
+
11
+ ## 0.6.15 - 2018-07-17
12
+
13
+ * features
14
+ * The nginx collectd configuration now reports number of errors (500-503),
15
+ timeouts (504) and successes (200, 302, 304)
16
+ * Add alienvault role that can configure ubuntu to send syslog to a sensor.
17
+ * nginx-rails role: Add ability to set nginx's `proxy_read_timeout`.
18
+
19
+ * bug fixes
20
+ * Don't have rails role install yarn -- it's not needed by default, and if the
21
+ project does need it, it should explicitly use the yarn role.
10
22
 
11
23
  ## 0.5.15 - 2018-06-15
12
24
 
data/README.md CHANGED
@@ -225,6 +225,8 @@ Optional variables:
225
225
  asset_cors_allow_origin: Set this to set the Access-Control-Allow-Origin for
226
226
  everything in /assets.
227
227
 
228
+ 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.
229
+
228
230
  ## nodejs
229
231
 
230
232
  Used to install recent version of NodeJS. Must set `nodejs_version`. e.g. `nodejs_version: "8.x"`
@@ -0,0 +1,13 @@
1
+ ---
2
+ - name: Enable syslog communication to sensor
3
+ lineinfile:
4
+ dest: "/etc/rsyslog.d/50-default.conf"
5
+ line: "*.* @{{alienvault_usm_anywhere_sensor_ip}}:514"
6
+ state: present
7
+ become: true
8
+
9
+ - name: Restart rsyslog
10
+ service:
11
+ name: rsyslog
12
+ enabled: yes
13
+ state: restarted
@@ -2,3 +2,27 @@ LoadPlugin "nginx"
2
2
  <Plugin "nginx">
3
3
  URL "http://localhost:{{status_port}}"
4
4
  </Plugin>
5
+ LoadPlugin "tail"
6
+ <Plugin "tail">
7
+ <File "/var/log/nginx/access.log">
8
+ Instance "nginx"
9
+ <Match>
10
+ Regex " (200|30[24]) "
11
+ DSType "CounterInc"
12
+ Type "counter"
13
+ Instance "status-ok"
14
+ </Match>
15
+ <Match>
16
+ Regex " 504 "
17
+ DSType "CounterInc"
18
+ Type "counter"
19
+ Instance "status-timeout"
20
+ </Match>
21
+ <Match>
22
+ Regex " 50[0-3] "
23
+ DSType "CounterInc"
24
+ Type "counter"
25
+ Instance "status-error"
26
+ </Match>
27
+ </File>
28
+ </Plugin>
@@ -4,7 +4,7 @@ This server brought to you by:
4
4
  \___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
5
5
  ___) | |_| | |_) |__) | |_) | (_| | (_| __/
6
6
  |____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
7
- |_| v0.5.15
7
+ |_| v0.6.15
8
8
  ~~~ https://github.com/tenforwardconsulting/subspace ~~~
9
9
 
10
10
  If you need to make configuration changes to the server, please modify the
@@ -9,6 +9,9 @@
9
9
  proxy_set_header Upgrade $http_upgrade;
10
10
  proxy_set_header Connection "upgrade";
11
11
  proxy_redirect off;
12
+ {% if nginx_proxy_read_timeout is defined %}
13
+ proxy_read_timeout {{nginx_proxy_read_timeout}};
14
+ {% endif %}
12
15
  }
13
16
 
14
17
  location /cable {
@@ -1,14 +1,4 @@
1
1
  ---
2
- - name: Add yarn apt key
3
- apt_key:
4
- url: https://dl.yarnpkg.com/debian/pubkey.gpg
5
- state: present
6
-
7
- - name: Add yarn apt repo
8
- apt_repository:
9
- repo: deb https://dl.yarnpkg.com/debian/ stable main
10
- state: present
11
-
12
2
  - name: Install rails apt dependencies
13
3
  apt:
14
4
  name: "{{item}}"
@@ -22,7 +12,6 @@
22
12
  - libxslt-dev
23
13
  - nodejs
24
14
  - zlib1g-dev
25
- - yarn
26
15
  become: true
27
16
 
28
17
  - name: Create /u/apps/{{project_name}}/shared/config
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "0.5.15"
2
+ VERSION = "0.6.15"
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: 0.5.15
4
+ version: 0.6.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Samson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-15 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -101,6 +101,7 @@ files:
101
101
  - Rakefile
102
102
  - TODO
103
103
  - ansible/playbooks/local_template.yml
104
+ - ansible/roles/alienvault/tasks/main.yml
104
105
  - ansible/roles/apache-rails/tasks/main.yml
105
106
  - ansible/roles/apache-rails/templates/_canonical_domain.conf
106
107
  - ansible/roles/apache-rails/templates/_rails.conf