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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffa8bc859573f1bd22a6223e3063e63146ff7f3e30f390f0673ae81e47b6f299
4
- data.tar.gz: 792ed07fbfd88ce81d0915e7cdff6b6fb03815d210778959e21d5e29ca93574c
3
+ metadata.gz: 24d9413d60da10fc4e89a7a07acdee04a663d0ce45a1bf3c666d27b0b4b867ba
4
+ data.tar.gz: 5c6acea9ad2dd19abd20355764a3e6b5febc9281875ce0e4c5026cb86de5f3bf
5
5
  SHA512:
6
- metadata.gz: 44103861cd1471f3cff70769d55525d0363af40727208462ddd98d531120e9eb53504d0e52ed82b0ae26fcad391237e5e6a506db1442cccbf76607d88d4edc75
7
- data.tar.gz: 474014c40915e493b5111a548c28f7cb5a0a3e482a5ace75e512f5cfc83e2f469228374419df2e479beef8e223005de73db14b3d3e6905dc73d850e01825a53c
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. update the version number in motds
432
- 3. run `bundle exec rake release`
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
- sed -n "/$(date '+%Y-%m')/,+2p" updates.log | # Groups of lines from the current month
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
@@ -1,3 +1,3 @@
1
1
  module Subspace
2
- VERSION = "2.5.5"
2
+ VERSION = "2.5.6"
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.5.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-05-28 00:00:00.000000000 Z
11
+ date: 2021-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler