subspace 2.2.3 → 2.3.0
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 +4 -0
- data/ansible/roles/common/tasks/main.yml +26 -0
- data/ansible/roles/common/templates/motd +1 -1
- data/ansible/roles/postgresql-client/tasks/main.yml +26 -0
- data/ansible/roles/postgresql/tasks/main.yml +26 -0
- data/lib/subspace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c1bb8ea735bdf17e01f7941b5ca6d19c33cdb7c6e28b9715001eaa4f6c357e6
|
|
4
|
+
data.tar.gz: bdd11bf25939821875624dfcc8124247f7f1f9eadeae1e271e5bdab7a26799a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c1b5a144b9dfa225858940a1fde22d66790183f4fd10b26fcc9920b0a8e609555760985e0e476d201cebb88c466881f8d3397a95447409a2e4ed64b54fafa4b7
|
|
7
|
+
data.tar.gz: 5bdb929682b534293f6f91a7a6deab520ccbe8e7711bf2253c713e2bb7391fef271133aee3cf171317e8ecb8a106bdb0a7f58921b465883099ccadff75bb905e
|
data/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,10 @@ 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.3.0
|
|
14
|
+
* Grab linux kernel to send as stats
|
|
15
|
+
* Grab psql version to send as stats
|
|
16
|
+
|
|
13
17
|
## 2.2.3
|
|
14
18
|
* Add PATH to crontab for letsencrypt auto renewal
|
|
15
19
|
* log letsencrypt crontab to /var/log/cron.log
|
|
@@ -252,4 +252,30 @@
|
|
|
252
252
|
tags:
|
|
253
253
|
- maintenance
|
|
254
254
|
|
|
255
|
+
- name: Grab OS version
|
|
256
|
+
shell: uname --kernel-release
|
|
257
|
+
register: stats_os_version
|
|
258
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
259
|
+
tags:
|
|
260
|
+
- maintenance
|
|
261
|
+
- stats
|
|
262
|
+
|
|
263
|
+
- name: Send OS stats to URL
|
|
264
|
+
uri:
|
|
265
|
+
url: "{{stats_url}}"
|
|
266
|
+
method: POST
|
|
267
|
+
headers:
|
|
268
|
+
X-API-Version: 1
|
|
269
|
+
X-Client-Api-key: "{{stats_api_key}}"
|
|
270
|
+
body_format: json
|
|
271
|
+
body:
|
|
272
|
+
client_stat:
|
|
273
|
+
key: os_version
|
|
274
|
+
value: "{{stats_os_version.stdout}}"
|
|
275
|
+
hostname: "{{hostname}}"
|
|
276
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
277
|
+
tags:
|
|
278
|
+
- maintenance
|
|
279
|
+
- stats
|
|
280
|
+
|
|
255
281
|
- import_tasks: swap.yml
|
|
@@ -4,7 +4,7 @@ This server brought to you by:
|
|
|
4
4
|
\___ \| | | | '_ \___ \| '_ \ / _` |/ __/ _ \
|
|
5
5
|
___) | |_| | |_) |__) | |_) | (_| | (_| __/
|
|
6
6
|
|____/ \__,_|_.__/____/| .__/ \__,_|\___\___|
|
|
7
|
-
|_| v2.
|
|
7
|
+
|_| v2.3.0
|
|
8
8
|
~~~ https://github.com/tenforwardconsulting/subspace ~~~
|
|
9
9
|
|
|
10
10
|
If you need to make configuration changes to the server, please modify the
|
|
@@ -47,3 +47,29 @@
|
|
|
47
47
|
- postgresql
|
|
48
48
|
- db
|
|
49
49
|
- deps
|
|
50
|
+
|
|
51
|
+
- name: Grab Psql version
|
|
52
|
+
shell: psql --version
|
|
53
|
+
register: stats_psql_version
|
|
54
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
55
|
+
tags:
|
|
56
|
+
- maintenance
|
|
57
|
+
- stats
|
|
58
|
+
|
|
59
|
+
- name: Send Psql stats to URL
|
|
60
|
+
uri:
|
|
61
|
+
url: "{{stats_url}}"
|
|
62
|
+
method: POST
|
|
63
|
+
headers:
|
|
64
|
+
X-API-Version: 1
|
|
65
|
+
X-Client-Api-key: "{{stats_api_key}}"
|
|
66
|
+
body_format: json
|
|
67
|
+
body:
|
|
68
|
+
client_stat:
|
|
69
|
+
key: psql_version
|
|
70
|
+
value: "{{stats_psql_version.stdout}}"
|
|
71
|
+
hostname: "{{hostname}}"
|
|
72
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
73
|
+
tags:
|
|
74
|
+
- maintenance
|
|
75
|
+
- stats
|
|
@@ -38,3 +38,29 @@
|
|
|
38
38
|
|
|
39
39
|
- include: backups.yml
|
|
40
40
|
become: true
|
|
41
|
+
|
|
42
|
+
- name: Grab Psql version
|
|
43
|
+
shell: psql --version
|
|
44
|
+
register: stats_psql_version
|
|
45
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
46
|
+
tags:
|
|
47
|
+
- maintenance
|
|
48
|
+
- stats
|
|
49
|
+
|
|
50
|
+
- name: Send Psql stats to URL
|
|
51
|
+
uri:
|
|
52
|
+
url: "{{stats_url}}"
|
|
53
|
+
method: POST
|
|
54
|
+
headers:
|
|
55
|
+
X-API-Version: 1
|
|
56
|
+
X-Client-Api-key: "{{stats_api_key}}"
|
|
57
|
+
body_format: json
|
|
58
|
+
body:
|
|
59
|
+
client_stat:
|
|
60
|
+
key: psql_version
|
|
61
|
+
value: "{{stats_psql_version.stdout}}"
|
|
62
|
+
hostname: "{{hostname}}"
|
|
63
|
+
when: send_stats == true and stats_url is defined and stats_api_key is defined
|
|
64
|
+
tags:
|
|
65
|
+
- maintenance
|
|
66
|
+
- stats
|
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.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Samson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-08-
|
|
11
|
+
date: 2020-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|