subspace 2.5.5 → 2.5.6
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/README.md +2 -2
- data/ansible/roles/common/tasks/main.yml +7 -2
- 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: 24d9413d60da10fc4e89a7a07acdee04a663d0ce45a1bf3c666d27b0b4b867ba
|
|
4
|
+
data.tar.gz: 5c6acea9ad2dd19abd20355764a3e6b5febc9281875ce0e4c5026cb86de5f3bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57e1b9ea34bb641ac71f2f38297b7f1b80c2a97b7aa7c734d44826f5d252b4ead6e9cf0aa74359dd728802527848f36953c871ac37e05ebac770e506f5db8cc7
|
|
7
|
+
data.tar.gz: f7632eb404a54a3f034ee5dab75854d3109f97d34e9850f1886097bfe70c1e5e3d0621ef1d15cf25e8052fb0d8fe7f24317f5bedd947070039bed17094c11f3e
|
data/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,10 @@ This project attempts to follow [semantic versioning](https://semver.org/).
|
|
|
12
12
|
|
|
13
13
|
## Unreleased
|
|
14
14
|
|
|
15
|
+
## 2.5.6
|
|
16
|
+
* Fix sending security stats
|
|
17
|
+
* Make sure apt package acl is installed in common role so ansible can become a non-privileged user
|
|
18
|
+
|
|
15
19
|
## 2.5.5
|
|
16
20
|
* Remove duplicate nginx role from playbook templates
|
|
17
21
|
* Don't send stats if there have been no upgrades
|
data/README.md
CHANGED
|
@@ -428,8 +428,8 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
|
428
428
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version:
|
|
429
429
|
|
|
430
430
|
1. update the version number in `version.rb`
|
|
431
|
-
2.
|
|
432
|
-
3.
|
|
431
|
+
2. `gem build subspace.gemspec`
|
|
432
|
+
3. `gem push subspace-x.y.z.gem`
|
|
433
433
|
|
|
434
434
|
This will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
435
435
|
|
|
@@ -125,6 +125,12 @@
|
|
|
125
125
|
- maintenance
|
|
126
126
|
- upgrade
|
|
127
127
|
|
|
128
|
+
- name: Install acl so ansible can become a non-privileged user
|
|
129
|
+
apt:
|
|
130
|
+
pkg: acl
|
|
131
|
+
state: present
|
|
132
|
+
become: true
|
|
133
|
+
|
|
128
134
|
- name: Get os_upgrades stats
|
|
129
135
|
shell:
|
|
130
136
|
cmd: |
|
|
@@ -197,9 +203,8 @@
|
|
|
197
203
|
- name: Get os_security_upgrades stats
|
|
198
204
|
shell:
|
|
199
205
|
cmd: |
|
|
200
|
-
|
|
206
|
+
grep -A 1 $(date +%Y-%m) updates.log | # Groups of lines from the current month
|
|
201
207
|
grep 'security' | # Only lines matching 'security'
|
|
202
|
-
grep -P -o '(^\d+)' | #Extract the numbers at the beginning of the lines
|
|
203
208
|
awk '{s+=$1} END {print s}' # Sum all the lines
|
|
204
209
|
args:
|
|
205
210
|
chdir: /opt/subspace
|
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.5.
|
|
4
|
+
version: 2.5.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brian Samson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-07-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|