config_o_mat 0.5.2 → 0.5.4

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: ab3fb3f2169c4bc1cda555a516de6ca07434870eceb4da1a69ae76a309fd4bb2
4
- data.tar.gz: 79cdff6227b77cf747eb33cd3b08a2031c0657347f69e2e3e335fcf6a2b61146
3
+ metadata.gz: 3b3414c849135a66fea1407043da3f911eb46911799000b1a44753ef614417f1
4
+ data.tar.gz: d7b6e3414749ee965abea133c0c8b7430de38fc4c586d1acd68153d885a079d7
5
5
  SHA512:
6
- metadata.gz: '08ed12b4a0aa016b8fe9f003219bfa7f8a01ff6d3e9cfdc12ee6b7238d3648a59472825b93abfbcaf1df0ffb9173207184f2953850c0f617d22e24210fdb6412'
7
- data.tar.gz: 991b84dcbad406faa7da15775f0c8aa0ea5454a6cfbcdaa221309edc7eeca3e6cf8df2081fc481db6ca9371873afc8c49555df49878995f1456e9412755345c2
6
+ metadata.gz: f1d67f095d0678943df10718c89e21934397a6cc76034c74fcd6885d7813b839cf9ce504867bbc88aa5d14be58f199a5581eed5e0cbbf01462ca7e6395b785af
7
+ data.tar.gz: 9bb8962c1c1e09cfe5cc17e91d43189f9338a998cad126e7ceafb8b2109566e253e797c781fab509fe51eaf88eb7f398d4d37583c617449eba1ce1b0a2c227f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.5.4
2
+
3
+ ENHACEMENTS:
4
+
5
+ * Update to ruby-dbus 0.19.0, from 0.16.0.
6
+
7
+ ## 0.5.3
8
+
9
+ BUG FIXES:
10
+
11
+ * When restart_mode: none, output dropins to load credentials for services.
12
+
1
13
  ## 0.5.2
2
14
 
3
15
  * Rerelease of 0.5.1 with merged PRs.
data/Gemfile.lock CHANGED
@@ -1,66 +1,68 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- config_o_mat (0.5.2)
4
+ config_o_mat (0.5.3)
5
5
  aws-sdk-appconfig (~> 1.18)
6
6
  aws-sdk-s3 (~> 1.114)
7
7
  aws-sdk-secretsmanager (~> 1.57)
8
8
  facter (~> 4.2, >= 4.2.8)
9
9
  lifecycle_vm (~> 0.1.1)
10
10
  logsformyfamily (~> 0.2)
11
- ruby-dbus (~> 0.16.0)
11
+ ruby-dbus (~> 0.19.0)
12
12
  sd_notify (~> 0.1.1)
13
13
 
14
14
  GEM
15
15
  remote: https://rubygems.org/
16
16
  specs:
17
17
  aws-eventstream (1.2.0)
18
- aws-partitions (1.615.0)
19
- aws-sdk-appconfig (1.26.0)
20
- aws-sdk-core (~> 3, >= 3.127.0)
18
+ aws-partitions (1.719.0)
19
+ aws-sdk-appconfig (1.30.0)
20
+ aws-sdk-core (~> 3, >= 3.165.0)
21
21
  aws-sigv4 (~> 1.1)
22
- aws-sdk-core (3.131.6)
22
+ aws-sdk-core (3.170.0)
23
23
  aws-eventstream (~> 1, >= 1.0.2)
24
- aws-partitions (~> 1, >= 1.525.0)
25
- aws-sigv4 (~> 1.1)
24
+ aws-partitions (~> 1, >= 1.651.0)
25
+ aws-sigv4 (~> 1.5)
26
26
  jmespath (~> 1, >= 1.6.1)
27
- aws-sdk-kms (1.58.0)
28
- aws-sdk-core (~> 3, >= 3.127.0)
27
+ aws-sdk-kms (1.63.0)
28
+ aws-sdk-core (~> 3, >= 3.165.0)
29
29
  aws-sigv4 (~> 1.1)
30
- aws-sdk-s3 (1.114.0)
31
- aws-sdk-core (~> 3, >= 3.127.0)
30
+ aws-sdk-s3 (1.119.1)
31
+ aws-sdk-core (~> 3, >= 3.165.0)
32
32
  aws-sdk-kms (~> 1)
33
33
  aws-sigv4 (~> 1.4)
34
- aws-sdk-secretsmanager (1.64.0)
35
- aws-sdk-core (~> 3, >= 3.127.0)
34
+ aws-sdk-secretsmanager (1.72.0)
35
+ aws-sdk-core (~> 3, >= 3.165.0)
36
36
  aws-sigv4 (~> 1.1)
37
- aws-sigv4 (1.5.1)
37
+ aws-sigv4 (1.5.2)
38
38
  aws-eventstream (~> 1, >= 1.0.2)
39
39
  diff-lcs (1.5.0)
40
40
  docile (1.4.0)
41
- facter (4.2.11)
41
+ facter (4.3.0)
42
42
  hocon (~> 1.3)
43
43
  thor (>= 1.0.1, < 2.0)
44
44
  hocon (1.3.1)
45
- jmespath (1.6.1)
45
+ jmespath (1.6.2)
46
46
  lifecycle_vm (0.1.3)
47
47
  logsformyfamily (0.3.0)
48
- rspec (3.11.0)
49
- rspec-core (~> 3.11.0)
50
- rspec-expectations (~> 3.11.0)
51
- rspec-mocks (~> 3.11.0)
52
- rspec-core (3.11.0)
53
- rspec-support (~> 3.11.0)
54
- rspec-expectations (3.11.0)
48
+ rexml (3.2.5)
49
+ rspec (3.12.0)
50
+ rspec-core (~> 3.12.0)
51
+ rspec-expectations (~> 3.12.0)
52
+ rspec-mocks (~> 3.12.0)
53
+ rspec-core (3.12.1)
54
+ rspec-support (~> 3.12.0)
55
+ rspec-expectations (3.12.2)
55
56
  diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.11.0)
57
- rspec-mocks (3.11.0)
57
+ rspec-support (~> 3.12.0)
58
+ rspec-mocks (3.12.3)
58
59
  diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.11.0)
60
- rspec-support (3.11.0)
61
- ruby-dbus (0.16.0)
60
+ rspec-support (~> 3.12.0)
61
+ rspec-support (3.12.0)
62
+ ruby-dbus (0.19.0)
63
+ rexml
62
64
  sd_notify (0.1.1)
63
- simplecov (0.21.2)
65
+ simplecov (0.22.0)
64
66
  docile (~> 1.1)
65
67
  simplecov-html (~> 0.11)
66
68
  simplecov_json_formatter (~> 0.1)
@@ -74,7 +76,7 @@ PLATFORMS
74
76
  DEPENDENCIES
75
77
  config_o_mat!
76
78
  rspec (~> 3.10)
77
- simplecov (~> 0.21.2)
79
+ simplecov (~> 0.22.0)
78
80
 
79
81
  BUNDLED WITH
80
82
  2.1.4
data/config_o_mat.gemspec CHANGED
@@ -43,10 +43,10 @@ Gem::Specification.new do |spec|
43
43
  spec.add_dependency('aws-sdk-secretsmanager', '~> 1.57')
44
44
  spec.add_dependency('logsformyfamily', '~> 0.2')
45
45
  spec.add_dependency('lifecycle_vm', '~> 0.1.1')
46
- spec.add_dependency('ruby-dbus', '~> 0.16.0')
46
+ spec.add_dependency('ruby-dbus', '~> 0.19.0')
47
47
  spec.add_dependency('sd_notify', '~> 0.1.1')
48
48
  spec.add_dependency('facter', ['~> 4.2', '>= 4.2.8'])
49
49
 
50
- spec.add_development_dependency('simplecov', '~> 0.21.2')
50
+ spec.add_development_dependency('simplecov', '~> 0.22.0')
51
51
  spec.add_development_dependency('rspec', '~> 3.10')
52
52
  end
@@ -29,9 +29,11 @@ module ConfigOMat
29
29
  grouped_restart_modes = service_defs.values.group_by(&:restart_mode)
30
30
  restarts = grouped_restart_modes.fetch(:restart, []) + grouped_restart_modes.fetch(:restart_all, [])
31
31
  flip_flops = grouped_restart_modes[:flip_flop]
32
+ nones = grouped_restart_modes[:none]
32
33
 
33
34
  enable_restarts(restarts) if !restarts.empty?
34
35
  enable_flip_flops(flip_flops) if flip_flops
36
+ enable_nones(nones) if nones
35
37
 
36
38
  systemd_interface.daemon_reload
37
39
  end
@@ -51,6 +53,16 @@ module ConfigOMat
51
53
  File.open(File.join(dropin_dir, DROPIN_FILE_NAME), 'w') { |f| f.write(dropin) }
52
54
  end
53
55
 
56
+ def enable_nones(services)
57
+ services.each do |service|
58
+ unit = service.systemd_unit.delete_suffix('@')
59
+ write_dropin(unit, service)
60
+
61
+ unit = "#{unit}@"
62
+ write_dropin(unit, service)
63
+ end
64
+ end
65
+
54
66
  def enable_restarts(services)
55
67
  units = []
56
68
  services.each do |service|
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module ConfigOMat
18
- VERSION = "0.5.2"
18
+ VERSION = "0.5.4"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_o_mat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Scarborough
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-06 00:00:00.000000000 Z
11
+ date: 2023-03-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-appconfig
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 0.16.0
89
+ version: 0.19.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 0.16.0
96
+ version: 0.19.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sd_notify
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -134,14 +134,14 @@ dependencies:
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: 0.21.2
137
+ version: 0.22.0
138
138
  type: :development
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: 0.21.2
144
+ version: 0.22.0
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: rspec
147
147
  requirement: !ruby/object:Gem::Requirement