kitchen-dsc 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/lint.yml +9 -0
- data/.github/workflows/publish.yaml +35 -0
- data/.gitignore +26 -0
- data/.markdownlint.yaml +9 -0
- data/.rubocop.yml +11 -0
- data/CHANGELOG.md +140 -0
- data/Gemfile +24 -0
- data/LICENSE +201 -0
- data/README.md +118 -108
- data/Rakefile +21 -0
- data/kitchen-dsc.gemspec +21 -48
- data/lib/kitchen/provisioner/dsc.rb +25 -22
- data/lib/kitchen/provisioner/dsc_lcm/lcm_base.rb +86 -88
- data/lib/kitchen/provisioner/dsc_lcm/lcm_v4.rb +52 -53
- data/lib/kitchen/provisioner/dsc_lcm/lcm_v5.rb +53 -54
- data/lib/kitchen-dsc/version.rb +1 -3
- data/renovate.json +8 -0
- data/spec/spec_helper.rb +20 -0
- metadata +28 -192
@@ -1,53 +1,52 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
module
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:
|
26
|
-
:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
end
|
1
|
+
#
|
2
|
+
# Author:: Steven Murawski (<steven.murawski@gmail.com>)
|
3
|
+
#
|
4
|
+
# Copyright (C) 2014 Steven Murawski
|
5
|
+
#
|
6
|
+
# Licensed under the Apache 2 License.
|
7
|
+
# See LICENSE for more details
|
8
|
+
|
9
|
+
require_relative "lcm_base"
|
10
|
+
|
11
|
+
module Kitchen
|
12
|
+
module Provisioner
|
13
|
+
module DscLcm
|
14
|
+
class LcmV4 < LcmBase
|
15
|
+
|
16
|
+
def lcm_properties
|
17
|
+
{
|
18
|
+
action_after_reboot: "StopConfiguration",
|
19
|
+
allow_module_overwrite: false,
|
20
|
+
certificate_id: nil,
|
21
|
+
configuration_mode: "ApplyAndAutoCorrect",
|
22
|
+
configuration_mode_frequency_mins: 30,
|
23
|
+
debug_mode: "All",
|
24
|
+
reboot_if_needed: false,
|
25
|
+
refresh_mode: "PUSH",
|
26
|
+
refresh_frequency_mins: 15,
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
def lcm_configuration_script
|
31
|
+
<<-LCMSETUP
|
32
|
+
configuration SetupLCM
|
33
|
+
{
|
34
|
+
LocalConfigurationManager
|
35
|
+
{
|
36
|
+
ActionAfterReboot = '#{action_after_reboot}'
|
37
|
+
AllowModuleOverwrite = [bool]::Parse('#{allow_module_overwrite}')
|
38
|
+
CertificateID = #{certificate_id}
|
39
|
+
ConfigurationMode = '#{configuration_mode}'
|
40
|
+
ConfigurationModeFrequencyMins = #{configuration_mode_frequency_mins}
|
41
|
+
DebugMode = '#{debug_mode}'
|
42
|
+
RebootNodeIfNeeded = [bool]::Parse('#{reboot_if_needed}')
|
43
|
+
RefreshFrequencyMins = #{refresh_frequency_mins}
|
44
|
+
RefreshMode = '#{refresh_mode}'
|
45
|
+
}
|
46
|
+
}
|
47
|
+
LCMSETUP
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
@@ -1,54 +1,53 @@
|
|
1
|
-
#
|
2
|
-
#
|
3
|
-
#
|
4
|
-
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
module
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
:
|
20
|
-
:
|
21
|
-
:
|
22
|
-
:
|
23
|
-
:
|
24
|
-
:
|
25
|
-
:
|
26
|
-
:
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
end
|
1
|
+
#
|
2
|
+
# Author:: Steven Murawski (<steven.murawski@gmail.com>)
|
3
|
+
#
|
4
|
+
# Copyright (C) 2014 Steven Murawski
|
5
|
+
#
|
6
|
+
# Licensed under the Apache 2 License.
|
7
|
+
# See LICENSE for more details
|
8
|
+
|
9
|
+
require_relative "lcm_base"
|
10
|
+
|
11
|
+
module Kitchen
|
12
|
+
module Provisioner
|
13
|
+
module DscLcm
|
14
|
+
class LcmV5 < LcmBase
|
15
|
+
|
16
|
+
def lcm_properties
|
17
|
+
{
|
18
|
+
action_after_reboot: "StopConfiguration",
|
19
|
+
allow_module_overwrite: false,
|
20
|
+
certificate_id: nil,
|
21
|
+
configuration_mode: "ApplyAndAutoCorrect",
|
22
|
+
configuration_mode_frequency_mins: 15,
|
23
|
+
debug_mode: "All",
|
24
|
+
reboot_if_needed: false,
|
25
|
+
refresh_mode: "PUSH",
|
26
|
+
refresh_frequency_mins: 30,
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
def lcm_configuration_script
|
31
|
+
<<-LCMSETUP
|
32
|
+
[DSCLocalConfigurationManager()]
|
33
|
+
configuration SetupLCM
|
34
|
+
{
|
35
|
+
Settings
|
36
|
+
{
|
37
|
+
ActionAfterReboot = '#{action_after_reboot}'
|
38
|
+
AllowModuleOverwrite = [bool]::Parse('#{allow_module_overwrite}')
|
39
|
+
CertificateID = #{certificate_id}
|
40
|
+
ConfigurationMode = '#{configuration_mode}'
|
41
|
+
ConfigurationModeFrequencyMins = #{configuration_mode_frequency_mins}
|
42
|
+
DebugMode = '#{debug_mode}'
|
43
|
+
RebootNodeIfNeeded = [bool]::Parse('#{reboot_if_needed}')
|
44
|
+
RefreshFrequencyMins = #{refresh_frequency_mins}
|
45
|
+
RefreshMode = '#{refresh_mode}'
|
46
|
+
}
|
47
|
+
}
|
48
|
+
LCMSETUP
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
data/lib/kitchen-dsc/version.rb
CHANGED
data/renovate.json
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#
|
2
|
+
# Author:: Fletcher Nichol (<fnichol@nichol.ca>)
|
3
|
+
#
|
4
|
+
# Copyright (C) 2012, Fletcher Nichol
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
|
18
|
+
gem "minitest"
|
19
|
+
|
20
|
+
require "minitest/autorun"
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-dsc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
8
|
-
autorequire:
|
7
|
+
- Test Kitchen Team
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: test-kitchen
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.9'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.9'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: dsc_lcm_configuration
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,200 +25,50 @@ dependencies:
|
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.4'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.4'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.2'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.2'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: simplecov
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0.9'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0.9'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: minitest
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '5.3'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '5.3'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: yard
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0.8'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0.8'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: pry
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: pry-stack_explorer
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: pry-byebug
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: rb-readline
|
28
|
+
name: test-kitchen
|
169
29
|
requirement: !ruby/object:Gem::Requirement
|
170
30
|
requirements:
|
171
31
|
- - ">="
|
172
32
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
174
|
-
type: :
|
33
|
+
version: '1.9'
|
34
|
+
type: :runtime
|
175
35
|
prerelease: false
|
176
36
|
version_requirements: !ruby/object:Gem::Requirement
|
177
37
|
requirements:
|
178
38
|
- - ">="
|
179
39
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
181
|
-
-
|
182
|
-
name: finstyle
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - '='
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 1.4.0
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - '='
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: 1.4.0
|
195
|
-
- !ruby/object:Gem::Dependency
|
196
|
-
name: cane
|
197
|
-
requirement: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - '='
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: 2.6.2
|
202
|
-
type: :development
|
203
|
-
prerelease: false
|
204
|
-
version_requirements: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - '='
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: 2.6.2
|
209
|
-
description: |+
|
210
|
-
== DESCRIPTION:
|
211
|
-
|
212
|
-
DSC Provisioner for Test Kitchen
|
213
|
-
|
214
|
-
== FEATURES:
|
215
|
-
|
216
|
-
TBD
|
217
|
-
|
40
|
+
version: '1.9'
|
41
|
+
description: PowerShell DSC provisioner for test-kitchen
|
218
42
|
email:
|
219
|
-
-
|
43
|
+
- help@sous-chefs.org
|
220
44
|
executables: []
|
221
45
|
extensions: []
|
222
46
|
extra_rdoc_files: []
|
223
47
|
files:
|
48
|
+
- ".github/dependabot.yml"
|
49
|
+
- ".github/workflows/lint.yml"
|
50
|
+
- ".github/workflows/publish.yaml"
|
51
|
+
- ".gitignore"
|
52
|
+
- ".markdownlint.yaml"
|
53
|
+
- ".rubocop.yml"
|
54
|
+
- CHANGELOG.md
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE
|
224
57
|
- README.md
|
58
|
+
- Rakefile
|
225
59
|
- kitchen-dsc.gemspec
|
226
60
|
- lib/kitchen-dsc/version.rb
|
227
61
|
- lib/kitchen/provisioner/dsc.rb
|
228
62
|
- lib/kitchen/provisioner/dsc_lcm/lcm_base.rb
|
229
63
|
- lib/kitchen/provisioner/dsc_lcm/lcm_v4.rb
|
230
64
|
- lib/kitchen/provisioner/dsc_lcm/lcm_v5.rb
|
65
|
+
- renovate.json
|
66
|
+
- spec/spec_helper.rb
|
231
67
|
homepage: https://github.com/test-kitchen/kitchen-dsc
|
232
68
|
licenses:
|
233
|
-
- Apache
|
69
|
+
- Apache-2.0
|
234
70
|
metadata: {}
|
235
|
-
post_install_message:
|
71
|
+
post_install_message:
|
236
72
|
rdoc_options: []
|
237
73
|
require_paths:
|
238
74
|
- lib
|
@@ -247,9 +83,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
247
83
|
- !ruby/object:Gem::Version
|
248
84
|
version: '0'
|
249
85
|
requirements: []
|
250
|
-
|
251
|
-
|
252
|
-
signing_key:
|
86
|
+
rubygems_version: 3.4.10
|
87
|
+
signing_key:
|
253
88
|
specification_version: 4
|
254
89
|
summary: PowerShell DSC provisioner for test-kitchen
|
255
|
-
test_files:
|
90
|
+
test_files:
|
91
|
+
- spec/spec_helper.rb
|