chef-provisioning-vsphere 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +7 -3
- data/.rubocop.yml +8 -0
- data/.rubocop_todo.yml +143 -0
- data/.travis.yml +8 -0
- data/CHANGELOG.md +111 -0
- data/Gemfile +2 -3
- data/LICENSE +19 -19
- data/LICENSE-Rally +20 -20
- data/README.md +29 -19
- data/Rakefile +34 -22
- data/chef-provisioning-vsphere.gemspec +9 -7
- data/contribution-notice +7 -7
- data/lib/chef/provisioning/driver_init/vsphere.rb +4 -3
- data/lib/chef/provisioning/vsphere_driver.rb +16 -14
- data/lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb +68 -53
- data/lib/chef/provisioning/vsphere_driver/driver.rb +96 -70
- data/lib/chef/provisioning/vsphere_driver/version.rb +2 -1
- data/lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb +98 -99
- data/lib/chef/provisioning/vsphere_driver/vsphere_url.rb +46 -45
- data/lib/kitchen/driver/vsphere.rb +27 -27
- data/spec/integration_tests/.gitignore +1 -1
- data/spec/integration_tests/vsphere_driver_spec.rb +50 -51
- data/spec/unit_tests/VsphereDriver_spec.rb +133 -132
- data/spec/unit_tests/VsphereUrl_spec.rb +67 -66
- data/spec/unit_tests/clone_spec_builder_spec.rb +162 -161
- data/spec/unit_tests/support/fake_action_handler.rb +6 -7
- data/spec/unit_tests/support/vsphere_helper_stub.rb +51 -52
- metadata +29 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12ba7fbf37a51f31c3b8b68e89f3a51e34bf4f0d
|
4
|
+
data.tar.gz: 9b9811130753d077b67621f679c6270bab93599f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 308c22bf77b75fc8edb36110ebc200cdc1df69efa690ab56290f616323b1b7d19e071e644ae3cb18510457778b6d3afbcfbe6cb3b6502e9cb21a8766176b667a
|
7
|
+
data.tar.gz: dbdac821a238acf564e0902a9c352ab97dfd9a70942986d4c3530a8c51edd1ee4f93a82a8dbff496c4e47f6bddab5962df84153922cdd224dd35952737924615
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,143 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2017-04-17 14:46:47 -0500 using RuboCop version 0.47.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 1
|
10
|
+
# Configuration parameters: AllowSafeAssignment.
|
11
|
+
Lint/AssignmentInCondition:
|
12
|
+
Exclude:
|
13
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
14
|
+
|
15
|
+
# Offense count: 2
|
16
|
+
# Cop supports --auto-correct.
|
17
|
+
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
18
|
+
# SupportedStylesAlignWith: start_of_line, def
|
19
|
+
Lint/DefEndAlignment:
|
20
|
+
Exclude:
|
21
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
22
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
23
|
+
|
24
|
+
# Offense count: 1
|
25
|
+
# Cop supports --auto-correct.
|
26
|
+
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
27
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
28
|
+
Lint/EndAlignment:
|
29
|
+
Exclude:
|
30
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
31
|
+
|
32
|
+
# Offense count: 4
|
33
|
+
Lint/UselessAssignment:
|
34
|
+
Exclude:
|
35
|
+
- 'lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb'
|
36
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
37
|
+
- 'lib/kitchen/driver/vsphere.rb'
|
38
|
+
|
39
|
+
# Offense count: 30
|
40
|
+
Metrics/AbcSize:
|
41
|
+
Max: 47
|
42
|
+
|
43
|
+
# Offense count: 1
|
44
|
+
# Configuration parameters: CountBlocks.
|
45
|
+
Metrics/BlockNesting:
|
46
|
+
Max: 4
|
47
|
+
|
48
|
+
# Offense count: 3
|
49
|
+
# Configuration parameters: CountComments.
|
50
|
+
Metrics/ClassLength:
|
51
|
+
Max: 571
|
52
|
+
|
53
|
+
# Offense count: 6
|
54
|
+
Metrics/CyclomaticComplexity:
|
55
|
+
Max: 12
|
56
|
+
|
57
|
+
# Offense count: 87
|
58
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
59
|
+
# URISchemes: http, https
|
60
|
+
Metrics/LineLength:
|
61
|
+
Max: 189
|
62
|
+
|
63
|
+
# Offense count: 38
|
64
|
+
# Configuration parameters: CountComments.
|
65
|
+
Metrics/MethodLength:
|
66
|
+
Max: 62
|
67
|
+
|
68
|
+
# Offense count: 5
|
69
|
+
Metrics/PerceivedComplexity:
|
70
|
+
Max: 14
|
71
|
+
|
72
|
+
# Offense count: 1
|
73
|
+
Style/CaseEquality:
|
74
|
+
Exclude:
|
75
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
76
|
+
|
77
|
+
# Offense count: 3
|
78
|
+
Style/ClassVars:
|
79
|
+
Exclude:
|
80
|
+
- 'lib/kitchen/driver/vsphere.rb'
|
81
|
+
|
82
|
+
# Offense count: 6
|
83
|
+
Style/Documentation:
|
84
|
+
Exclude:
|
85
|
+
- 'spec/**/*'
|
86
|
+
- 'test/**/*'
|
87
|
+
- 'lib/chef/provisioning/vsphere_driver.rb'
|
88
|
+
- 'lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb'
|
89
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
90
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_url.rb'
|
91
|
+
- 'lib/kitchen/driver/vsphere.rb'
|
92
|
+
|
93
|
+
# Offense count: 5
|
94
|
+
# Configuration parameters: AllowedVariables.
|
95
|
+
Style/GlobalVars:
|
96
|
+
Exclude:
|
97
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
98
|
+
|
99
|
+
# Offense count: 12
|
100
|
+
# Configuration parameters: MinBodyLength.
|
101
|
+
Style/GuardClause:
|
102
|
+
Exclude:
|
103
|
+
- 'lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb'
|
104
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
105
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
106
|
+
|
107
|
+
# Offense count: 1
|
108
|
+
Style/MultilineTernaryOperator:
|
109
|
+
Exclude:
|
110
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
111
|
+
|
112
|
+
# Offense count: 1
|
113
|
+
Style/NestedTernaryOperator:
|
114
|
+
Exclude:
|
115
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
116
|
+
|
117
|
+
# Offense count: 5
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
120
|
+
# SupportedStyles: predicate, comparison
|
121
|
+
Style/NumericPredicate:
|
122
|
+
Exclude:
|
123
|
+
- 'spec/**/*'
|
124
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
125
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
126
|
+
|
127
|
+
# Offense count: 3
|
128
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
129
|
+
# NamePrefix: is_, has_, have_
|
130
|
+
# NamePrefixBlacklist: is_, has_, have_
|
131
|
+
# NameWhitelist: is_a?
|
132
|
+
Style/PredicateName:
|
133
|
+
Exclude:
|
134
|
+
- 'spec/**/*'
|
135
|
+
- 'lib/chef/provisioning/vsphere_driver/driver.rb'
|
136
|
+
|
137
|
+
# Offense count: 3
|
138
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
139
|
+
# SupportedStyles: snake_case, camelCase
|
140
|
+
Style/VariableName:
|
141
|
+
Exclude:
|
142
|
+
- 'lib/chef/provisioning/vsphere_driver/clone_spec_builder.rb'
|
143
|
+
- 'lib/chef/provisioning/vsphere_driver/vsphere_helpers.rb'
|
data/.travis.yml
ADDED
data/CHANGELOG.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [1.0.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/1.0.0) (2017-04-17)
|
4
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.8.1...1.0.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- Added links to the README [\#3](https://github.com/chef-partners/chef-provisioning-vsphere/pull/3) ([jjasghar](https://github.com/jjasghar))
|
9
|
+
- Cleanup for new release [\#2](https://github.com/chef-partners/chef-provisioning-vsphere/pull/2) ([jjasghar](https://github.com/jjasghar))
|
10
|
+
- ensure machine\_options and configs are symbolised for chef13 [\#1](https://github.com/chef-partners/chef-provisioning-vsphere/pull/1) ([jjlimepoint](https://github.com/jjlimepoint))
|
11
|
+
|
12
|
+
## [v0.8.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.8.1) (2015-08-25)
|
13
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.8.0...v0.8.1)
|
14
|
+
|
15
|
+
## [v0.8.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.8.0) (2015-08-20)
|
16
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.7.2...v0.8.0)
|
17
|
+
|
18
|
+
## [v0.7.2](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.7.2) (2015-08-19)
|
19
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.7.1...v0.7.2)
|
20
|
+
|
21
|
+
## [v0.7.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.7.1) (2015-07-27)
|
22
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.7.0...v0.7.1)
|
23
|
+
|
24
|
+
## [v0.7.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.7.0) (2015-07-21)
|
25
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.6.0...v0.7.0)
|
26
|
+
|
27
|
+
## [v0.6.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.6.0) (2015-07-01)
|
28
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.6.0.dev.1...v0.6.0)
|
29
|
+
|
30
|
+
## [v0.6.0.dev.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.6.0.dev.1) (2015-06-28)
|
31
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.8...v0.6.0.dev.1)
|
32
|
+
|
33
|
+
## [v0.5.8](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.8) (2015-06-19)
|
34
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev6...v0.5.8)
|
35
|
+
|
36
|
+
## [v0.5.7.dev6](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev6) (2015-06-15)
|
37
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev5...v0.5.7.dev6)
|
38
|
+
|
39
|
+
## [v0.5.7.dev5](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev5) (2015-06-14)
|
40
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev4...v0.5.7.dev5)
|
41
|
+
|
42
|
+
## [v0.5.7.dev4](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev4) (2015-06-14)
|
43
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev3...v0.5.7.dev4)
|
44
|
+
|
45
|
+
## [v0.5.7.dev3](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev3) (2015-06-14)
|
46
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev2...v0.5.7.dev3)
|
47
|
+
|
48
|
+
## [v0.5.7.dev2](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev2) (2015-06-13)
|
49
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev1...v0.5.7.dev2)
|
50
|
+
|
51
|
+
## [v0.5.7.dev1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev1) (2015-06-13)
|
52
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7.dev...v0.5.7.dev1)
|
53
|
+
|
54
|
+
## [v0.5.7.dev](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7.dev) (2015-06-13)
|
55
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.7...v0.5.7.dev)
|
56
|
+
|
57
|
+
## [v0.5.7](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.7) (2015-06-09)
|
58
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.6...v0.5.7)
|
59
|
+
|
60
|
+
## [v0.5.6](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.6) (2015-06-09)
|
61
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.5...v0.5.6)
|
62
|
+
|
63
|
+
## [v0.5.5](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.5) (2015-05-29)
|
64
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.4...v0.5.5)
|
65
|
+
|
66
|
+
## [v0.5.4](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.4) (2015-05-27)
|
67
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.3...v0.5.4)
|
68
|
+
|
69
|
+
## [v0.5.3](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.3) (2015-05-20)
|
70
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.1...v0.5.3)
|
71
|
+
|
72
|
+
## [v0.5.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.1) (2015-05-20)
|
73
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.5.0...v0.5.1)
|
74
|
+
|
75
|
+
## [v0.5.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.5.0) (2015-05-16)
|
76
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.4.2...v0.5.0)
|
77
|
+
|
78
|
+
## [v0.4.2](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.4.2) (2015-04-27)
|
79
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.4.1...v0.4.2)
|
80
|
+
|
81
|
+
## [v0.4.1](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.4.1) (2015-04-25)
|
82
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.4.0...v0.4.1)
|
83
|
+
|
84
|
+
## [v0.4.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.4.0) (2015-04-23)
|
85
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.3.77...v0.4.0)
|
86
|
+
|
87
|
+
## [v0.3.77](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.3.77) (2015-04-18)
|
88
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.3.76...v0.3.77)
|
89
|
+
|
90
|
+
## [v0.3.76](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.3.76) (2015-03-18)
|
91
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.3.75...v0.3.76)
|
92
|
+
|
93
|
+
## [v0.3.75](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.3.75) (2015-03-06)
|
94
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.3.74...v0.3.75)
|
95
|
+
|
96
|
+
## [v0.3.74](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.3.74) (2015-03-04)
|
97
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.3.73...v0.3.74)
|
98
|
+
|
99
|
+
## [v0.3.73](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.3.73) (2015-02-13)
|
100
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.2.0...v0.3.73)
|
101
|
+
|
102
|
+
## [v0.2.0](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.2.0) (2014-05-22)
|
103
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.1.4...v0.2.0)
|
104
|
+
|
105
|
+
## [v0.1.4](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.1.4) (2014-05-10)
|
106
|
+
[Full Changelog](https://github.com/chef-partners/chef-provisioning-vsphere/compare/v0.1.3...v0.1.4)
|
107
|
+
|
108
|
+
## [v0.1.3](https://github.com/chef-partners/chef-provisioning-vsphere/tree/v0.1.3) (2014-05-09)
|
109
|
+
|
110
|
+
|
111
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Gemfile
CHANGED
data/LICENSE
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright (c) 2015 CenturyLink
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
1
|
+
Copyright (c) 2015 CenturyLink
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
20
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/LICENSE-Rally
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
Copyright (c) 2014 Rally Software Development Corp
|
2
|
-
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
-
a copy of this software and associated documentation files (the
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
9
|
-
the following conditions:
|
10
|
-
|
11
|
-
The above copyright notice and this permission notice shall be
|
12
|
-
included in all copies or substantial portions of the Software.
|
13
|
-
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1
|
+
Copyright (c) 2014 Rally Software Development Corp
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
chef-provisioning-vsphere
|
2
|
-
==================
|
1
|
+
# chef-provisioning-vsphere
|
3
2
|
|
4
|
-
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/chef-provisioning-vsphere.svg)][gem]
|
4
|
+
[![Build Status](https://travis-ci.org/chef-partners/chef-provisioning-vsphere.svg?branch=master)][travis]
|
5
5
|
|
6
|
-
chef-provisioning-
|
6
|
+
This is a [chef-provisioning](https://github.com/chef/chef-provisioning) provisioner for [VMware vSphere](http://www.vmware.com/products/vsphere).
|
7
|
+
|
8
|
+
chef-provisioning-vsphere supports provisioning Unix/ssh and Windows/WinRMrm guest VMs.
|
7
9
|
|
8
10
|
## Prerequisites
|
9
11
|
|
10
|
-
###
|
12
|
+
### vSphere infrastructure
|
11
13
|
|
12
|
-
A
|
14
|
+
A vCenter and valid login credentials.
|
13
15
|
|
14
16
|
### VM Template
|
15
17
|
|
@@ -17,13 +19,13 @@ A VM template capable of installing Chef 11.8 or newer. This can be either windo
|
|
17
19
|
|
18
20
|
### A provisioning node (can be local)
|
19
21
|
|
20
|
-
An environment equipped with the chef
|
22
|
+
An environment equipped with the `chef-client` and the `chef-provisioning-vsphere` gem.
|
21
23
|
|
22
24
|
## A basic provisioning recipe
|
23
25
|
|
24
26
|
This is a minimal machine definition that will use a dhcp assigned ip (it assumes the presense of a dhcp server). For test purposes this uses a linked clone for a faster provisioning time. This recipe should be used with a linux template. Windows provisioned servers need to point to a chef server for the cookbooks since winrm does not support port forwarding and there fore cannot reach back on the chef-zero port to get the local cookbooks. See examples below.
|
25
27
|
|
26
|
-
```
|
28
|
+
```ruby
|
27
29
|
chef_gem 'chef-provisioning-vsphere' do
|
28
30
|
action :install
|
29
31
|
compile_time true
|
@@ -65,8 +67,8 @@ end
|
|
65
67
|
|
66
68
|
## Provision!
|
67
69
|
|
68
|
-
```
|
69
|
-
chef-client -z -o 'my_cookbook::provision'
|
70
|
+
```shell
|
71
|
+
$ chef-client -z -o 'my_cookbook::provision'
|
70
72
|
```
|
71
73
|
|
72
74
|
This will use chef-zero and needs no chef server (only works for ssh). Note that chef-zero does not support berkshelf style cookbook dependency resolution. So this works if the cookbook in the machine's runlist has no external dependencies. If it needs to reach out to supermarket or another berkshelf API server, perform a `berks vendor` to pull down the dependencies first.
|
@@ -118,7 +120,7 @@ These are settings set at the root of `machine_options`. Chances are the default
|
|
118
120
|
|
119
121
|
### Static IP and two additional disks of 20 and 50GB
|
120
122
|
|
121
|
-
```
|
123
|
+
```ruby
|
122
124
|
with_machine_options :bootstrap_options => {
|
123
125
|
use_linked_clone: true,
|
124
126
|
num_cpus: 2,
|
@@ -148,7 +150,7 @@ with_machine_options :bootstrap_options => {
|
|
148
150
|
|
149
151
|
### Domain joined windows machine
|
150
152
|
|
151
|
-
```
|
153
|
+
```ruby
|
152
154
|
with_machine_options :bootstrap_options => {
|
153
155
|
use_linked_clone: true,
|
154
156
|
num_cpus: 2,
|
@@ -178,16 +180,17 @@ with_machine_options :bootstrap_options => {
|
|
178
180
|
:ssl_verify_mode => :verify_none
|
179
181
|
}
|
180
182
|
```
|
183
|
+
|
181
184
|
Note: You must run chef-client against a server for a windows box. You can do this locally since the provisioning recipe should not change the state of the provisioner. You will need to upload the cookbook (both the one doing the provisioning and the one used in the provisioned machine's runlist) before running `chef-client`.
|
182
185
|
|
183
|
-
```
|
184
|
-
knife cookbook upload my_cookbook
|
185
|
-
chef-client -o 'my_cookbook::provision' -c .chef/knife.rb
|
186
|
+
```shell
|
187
|
+
$ knife cookbook upload my_cookbook
|
188
|
+
$ chef-client -o 'my_cookbook::provision' -c .chef/knife.rb
|
186
189
|
```
|
187
190
|
|
188
191
|
### Prefix all SSH commands with 'sudo ', for installing on hosts where options[:bootstrap_options][:ssh][:user] is not 'root'. The user must have 'NOPASSWD:ALL' in /etc/sudoers. This is compatible with chef-provisioning-fog functionality
|
189
192
|
|
190
|
-
```
|
193
|
+
```ruby
|
191
194
|
chef_gem 'chef-provisioning-vsphere' do
|
192
195
|
action :install
|
193
196
|
compile_time true
|
@@ -231,7 +234,7 @@ end
|
|
231
234
|
|
232
235
|
This chef-provisioning-driver comes with a test-kitchen driver. Here are example driver options you can add to your `kitchen.yml`.
|
233
236
|
|
234
|
-
```
|
237
|
+
```yaml
|
235
238
|
driver:
|
236
239
|
name: vsphere
|
237
240
|
driver_options:
|
@@ -267,6 +270,13 @@ driver:
|
|
267
270
|
- 8.8.4.4
|
268
271
|
```
|
269
272
|
|
270
|
-
##
|
273
|
+
## Contributing
|
274
|
+
|
275
|
+
1. Fork it ( https://github.com/[my-github-username]/chef-provisioning-vsphere/fork )
|
276
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
277
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
278
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
279
|
+
5. Create a new Pull Request
|
271
280
|
|
272
|
-
|
281
|
+
[gem]: https://rubygems.org/gems/chef-provisioning-vsphere
|
282
|
+
[travis]: https://travis-ci.org/chef-partners/chef-provisioning-vsphere
|