knife-vrealize 3.0.0 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,23 +0,0 @@
1
- ### Versions:
2
- <!--- Version of the software where you are encountering the issue --->
3
- <!-- You should probably update in this is not newest release.--->
4
- * Version of knife-vrealize:
5
- * Version of chef:
6
-
7
- ### Platform Details
8
- <!--- What version of vRA or vRO are you running? What version of ESXi are you using too?--->
9
- * Version of vRA:
10
- * Version of vRO:
11
- * Version of ESXi:
12
-
13
- ### Scenario:
14
- <!--- What you are trying to achieve and you can't?--->
15
-
16
- ### Steps to Reproduce:
17
- <!--- If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?--->
18
-
19
- ### Expected Result:
20
- <!--- What are you expecting to happen as the consequence of above reproduction steps?--->
21
-
22
- ### Actual Result:
23
- <!--- What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.--->
@@ -1,14 +0,0 @@
1
- ### Description
2
-
3
- <!--- Describe what this change achieves--->
4
-
5
- ### Issues Resolved
6
-
7
- <!--- List any existing issues this PR resolves--->
8
-
9
- ### Check List
10
-
11
- - [ ] All tests pass.
12
- - [ ] All style checks pass.
13
- - [ ] Functionality includes testing.
14
- - [ ] Functionality has been documented in the README if applicable
data/.gitignore DELETED
@@ -1,17 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
- *.bundle
11
- *.so
12
- *.o
13
- *.a
14
- mkmf.log
15
- .direnv/
16
- .envrc
17
- .ruby-version
@@ -1,19 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - 'spec/**/*'
4
- - 'vendor/**/*'
5
- TargetRubyVersion: 2.4.1
6
- Metrics/AbcSize:
7
- Max: 30
8
- Metrics/LineLength:
9
- Max: 150
10
- Metrics/MethodLength:
11
- Max: 30
12
- Style/Documentation:
13
- Enabled: false
14
- Style/SignalException:
15
- Enabled: false
16
- Layout/SpaceAroundEqualsInParameterDefault:
17
- EnforcedStyle: no_space
18
- Layout/SpaceInsideBrackets:
19
- Enabled: false
@@ -1,27 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
-
5
- rvm:
6
- - 2.3.4
7
- - 2.4.1
8
- - ruby-head
9
-
10
- branches:
11
- only:
12
- - master
13
-
14
- matrix:
15
- allow_failures:
16
- - rvm: ruby-head
17
-
18
- script:
19
- - bundle exec rake style
20
- - bundle exec rake spec
21
-
22
- notifications:
23
- slack:
24
- on_success: change
25
- on_failure: always
26
- rooms:
27
- secure: fu2EAP4pBts00ofX/5WWPevugan8gqhbTnR3peQ6AHD89JrCyBPfhk3LJk2Nk8OzChHLETIjm9n1CvnnFIXZw+dRidN/lY47WFHPAIWBWfooS9eHR9liKqfnFodn6sJR+eifbOPGd3SMEdPdUIN8M/8/XhHvP4iZ6CjHwvTpWBZ6XAJY8RGtTfIM5Eup1de5bdHpolazGoydRgrP0biQKTMvVG6McyS3VXbZgoXof7Y78uBpEeJKqwUDPCdvCDR3ulcz/AkitlmAaotkU4k/CTR+VSRhYYSqRMRvVU0QYP/wSgf6es8g0YzkAs1KJrhV//OH5Y7w2Fsrr8rOKrFoXmMvqzw8KEGmIUwMzMJwizud7Mz5scCuDaGt5btQjMZcHS/i5s7iU2bxb2dFfQYs18t8s2xAWaFs2bytNc8G5+vObjY5ZAa3uS1YINZCuMeiclmK3mGCcMUS5xqIy6+dURmqoyPNPJcODh6XdX4VAXvTorb7eOxDCO0fgWL3qO6eRpMIcnMm3/UZznroYiWWH2LZHV9GqYG4ePRUCQFWQzp92Fzsl9j1aAthG11JOJpSjKt+jlM3HZTm55IC+jkHW37+ULOkLuzKzvu24R0wdVjgyKr8SIhI5OGV2NQAl86JJeY1ptxOiJEAldrsfgpzFJ9ZriDahVxBAhRnqgo6jTo=
@@ -1,118 +0,0 @@
1
- # Change Log
2
-
3
- ## [3.0.0](https://github.com/chef-partners/knife-vrealize/tree/3.0.0) (2017-09-15)
4
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.1...3.0.0)
5
-
6
- **Merged pull requests:**
7
-
8
- - Removed the chef 12 dependency [\#34](https://github.com/chef-partners/knife-vrealize/pull/34) ([jjasghar](https://github.com/jjasghar))
9
-
10
- ## [v2.1.1](https://github.com/chef-partners/knife-vrealize/tree/v2.1.1) (2017-08-21)
11
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.1.0...v2.1.1)
12
-
13
- **Closed issues:**
14
-
15
- - Driver doesn't appear to support windows yet [\#29](https://github.com/chef-partners/knife-vrealize/issues/29)
16
- - knife\[:vra\_base\_url\] causes an error if URL has a trailing slash [\#24](https://github.com/chef-partners/knife-vrealize/issues/24)
17
-
18
- **Merged pull requests:**
19
-
20
- - added more useful/required parameters to readme [\#32](https://github.com/chef-partners/knife-vrealize/pull/32) ([mcascone](https://github.com/mcascone))
21
- - Initial Jenkinsfile [\#28](https://github.com/chef-partners/knife-vrealize/pull/28) ([jjasghar](https://github.com/jjasghar))
22
- - Fixes \#24 [\#27](https://github.com/chef-partners/knife-vrealize/pull/27) ([jjasghar](https://github.com/jjasghar))
23
- - Updating travis and new versions of ruby [\#26](https://github.com/chef-partners/knife-vrealize/pull/26) ([jjasghar](https://github.com/jjasghar))
24
-
25
- ## [v2.1.0](https://github.com/chef-partners/knife-vrealize/tree/v2.1.0) (2017-02-09)
26
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.0.1...v2.1.0)
27
-
28
- **Merged pull requests:**
29
-
30
- - 2.1.0 release [\#23](https://github.com/chef-partners/knife-vrealize/pull/23) ([jjasghar](https://github.com/jjasghar))
31
- - Added ssl-mode verify [\#22](https://github.com/chef-partners/knife-vrealize/pull/22) ([jjasghar](https://github.com/jjasghar))
32
-
33
- ## [v2.0.1](https://github.com/chef-partners/knife-vrealize/tree/v2.0.1) (2017-01-10)
34
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v2.0.0...v2.0.1)
35
-
36
- **Merged pull requests:**
37
-
38
- - Add --vra-tenant command line option [\#21](https://github.com/chef-partners/knife-vrealize/pull/21) ([bdiringer](https://github.com/bdiringer))
39
-
40
- ## [v2.0.0](https://github.com/chef-partners/knife-vrealize/tree/v2.0.0) (2016-12-15)
41
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.5.0...v2.0.0)
42
-
43
- **Closed issues:**
44
-
45
- - certificate verify failure [\#16](https://github.com/chef-partners/knife-vrealize/issues/16)
46
-
47
- **Merged pull requests:**
48
-
49
- - v1.5.1 [\#18](https://github.com/chef-partners/knife-vrealize/pull/18) ([jjasghar](https://github.com/jjasghar))
50
-
51
- ## [v1.5.0](https://github.com/chef-partners/knife-vrealize/tree/v1.5.0) (2016-08-02)
52
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.4.0...v1.5.0)
53
-
54
- **Closed issues:**
55
-
56
- - Provide a --noboostrap option [\#15](https://github.com/chef-partners/knife-vrealize/issues/15)
57
- - Prompt for password if not supplied [\#14](https://github.com/chef-partners/knife-vrealize/issues/14)
58
- - Can't create new servers [\#13](https://github.com/chef-partners/knife-vrealize/issues/13)
59
- - --extra-param option continually failing with Unknown field error [\#11](https://github.com/chef-partners/knife-vrealize/issues/11)
60
-
61
- **Merged pull requests:**
62
-
63
- - bumped vra gem [\#17](https://github.com/chef-partners/knife-vrealize/pull/17) ([jjasghar](https://github.com/jjasghar))
64
- - fixing travis notifications [\#12](https://github.com/chef-partners/knife-vrealize/pull/12) ([adamleff](https://github.com/adamleff))
65
-
66
- ## [v1.4.0](https://github.com/chef-partners/knife-vrealize/tree/v1.4.0) (2015-10-30)
67
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.3.1...v1.4.0)
68
-
69
- **Merged pull requests:**
70
-
71
- - Adding logic to fall back to the vRA resource/server name [\#10](https://github.com/chef-partners/knife-vrealize/pull/10) ([adamleff](https://github.com/adamleff))
72
-
73
- ## [v1.3.1](https://github.com/chef-partners/knife-vrealize/tree/v1.3.1) (2015-10-29)
74
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.3.0...v1.3.1)
75
-
76
- **Merged pull requests:**
77
-
78
- - Bug-fix for handling extra parameters [\#9](https://github.com/chef-partners/knife-vrealize/pull/9) ([adamleff](https://github.com/adamleff))
79
-
80
- ## [v1.3.0](https://github.com/chef-partners/knife-vrealize/tree/v1.3.0) (2015-10-26)
81
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.2.0...v1.3.0)
82
-
83
- **Merged pull requests:**
84
-
85
- - Added pagination size option and a higher-than-normal default. [\#8](https://github.com/chef-partners/knife-vrealize/pull/8) ([adamleff](https://github.com/adamleff))
86
- - Correct homepage in gemspec [\#7](https://github.com/chef-partners/knife-vrealize/pull/7) ([philoserf](https://github.com/philoserf))
87
-
88
- ## [v1.2.0](https://github.com/chef-partners/knife-vrealize/tree/v1.2.0) (2015-09-17)
89
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.1.0...v1.2.0)
90
-
91
- **Merged pull requests:**
92
-
93
- - Enable `--server-create-timeout` option [\#6](https://github.com/chef-partners/knife-vrealize/pull/6) ([afiune](https://github.com/afiune))
94
-
95
- ## [v1.1.0](https://github.com/chef-partners/knife-vrealize/tree/v1.1.0) (2015-08-14)
96
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.0.0...v1.1.0)
97
-
98
- **Merged pull requests:**
99
-
100
- - New "vro workflow execute" command [\#5](https://github.com/chef-partners/knife-vrealize/pull/5) ([adamleff](https://github.com/adamleff))
101
- - remove release candidate restriction from vmware-vra, add changelog [\#4](https://github.com/chef-partners/knife-vrealize/pull/4) ([adamleff](https://github.com/adamleff))
102
- - changing from 2-spaces-after-period to 1 space [\#3](https://github.com/chef-partners/knife-vrealize/pull/3) ([adamleff](https://github.com/adamleff))
103
-
104
- ## [v1.0.0](https://github.com/chef-partners/knife-vrealize/tree/v1.0.0) (2015-08-07)
105
- [Full Changelog](https://github.com/chef-partners/knife-vrealize/compare/v1.0.0.rc1...v1.0.0)
106
-
107
- **Merged pull requests:**
108
-
109
- - Release v1.0.0 [\#2](https://github.com/chef-partners/knife-vrealize/pull/2) ([adamleff](https://github.com/adamleff))
110
-
111
- ## [v1.0.0.rc1](https://github.com/chef-partners/knife-vrealize/tree/v1.0.0.rc1) (2015-07-30)
112
- **Merged pull requests:**
113
-
114
- - Initial release of the knife-vrealize plugin [\#1](https://github.com/chef-partners/knife-vrealize/pull/1) ([adamleff](https://github.com/adamleff))
115
-
116
-
117
-
118
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
- gemspec
@@ -1,28 +0,0 @@
1
- pipeline {
2
- agent {
3
- docker {
4
- image 'localhost:5000/jjkeysv3'
5
- args '-u root'
6
- }
7
-
8
- }
9
- stages {
10
- stage('Pull down the ChefDK') {
11
- steps {
12
- sh '''apt-get update
13
- apt-get install -y curl sudo git build-essential
14
- curl -L https://chef.io/chef/install.sh | sudo bash -s -- -P chefdk -c current'''
15
- }
16
- }
17
- stage('Bundle') {
18
- steps {
19
- sh 'chef exec bundle install'
20
- }
21
- }
22
- stage('Rake') {
23
- steps {
24
- sh 'chef exec rake'
25
- }
26
- }
27
- }
28
- }
data/README.md DELETED
@@ -1,217 +0,0 @@
1
- # knife-vrealize
2
-
3
- This is a Knife plugin that will allow you to interact with
4
- VMware vRealize products, such as vRA and vRO, from Chef's Knife command.
5
-
6
- ## Installation
7
-
8
- Add this line to your application's Gemfile:
9
-
10
- ```ruby
11
- gem 'knife-vrealize'
12
- ```
13
-
14
- And then execute:
15
-
16
- $ bundle install
17
-
18
- Or install it yourself as:
19
-
20
- $ gem install knife-vrealize
21
-
22
- ... or, even better, from within ChefDK:
23
-
24
- $ chef gem install knife-vrealize
25
-
26
- ## vRealize Automation (vRA)
27
-
28
- ### Configuration
29
-
30
- In order to communicate with vRA, you must specify your user credentials. You can specify them in your knife.rb:
31
-
32
- ```ruby
33
- knife[:vra_username] = 'myuser'
34
- knife[:vra_password] = 'mypassword'
35
- knife[:vra_base_url] = 'https://vra.corp.local'
36
- knife[:vra_tenant] = 'mytenant'
37
- knife[:vra_disable_ssl_verify] = true # if you want to disable SSL checking.
38
- ```
39
-
40
- ... or you can supply them on the command-line:
41
-
42
- ```
43
- knife vra command --vra-username myuser --vra-tenant mytenant ...
44
- ```
45
-
46
- ### Usage
47
-
48
- #### knife vra catalog list
49
-
50
- Lists catalog items that can be used to submit machine requests. By default, it will list all catalog items that your user has permission to see. To limit it to only items to which you are entitled, supply the `--entitled` flag.
51
-
52
- ```
53
- $ knife vra catalog list
54
- Catalog ID Name Description Status Subtenant
55
- a9cd6148-6e0b-4a80-ac47-f5255c52b43d CentOS 6.6 Blueprint for deploying a CentOS Linux development server published
56
- 5dcd1900-3b89-433d-8563-9606ae1249b8 CentOS 6.6 - business group Blueprint for deploying a CentOS Linux development server published Rainpole Developers
57
- d29efd6b-3cd6-4f8d-b1d8-da4ddd4e52b1 WindowsServer2012 Windows Server 2012 with the latest updates and patches. published
58
- ```
59
-
60
- #### knife vra server list
61
-
62
- Lists all machine resources that your user has permission to see. The "resource ID" is needed for other commands, such as `knife vra server show` and `knife vra server destroy`
63
-
64
- ```
65
- $ knife vra server list
66
- Resource ID Name Status Catalog Name
67
- 2e1f6632-1613-41d1-a07c-6137c9639609 hol-dev-43 active CentOS 6.6
68
- 43898686-7395-468a-99b3-b0b18a8abc1b hol-dev-44 active CentOS 6.6
69
- 0977f98b-d927-4e71-8b5b-b27c7deda097 hol-dev-45 active CentOS 6.6
70
- ```
71
-
72
- #### knife vra server show RESOURCE_ID
73
-
74
- Displays additional information about an individual server, such as its IP addresses.
75
-
76
- ```
77
- $ knife vra server show 2e1f6632-1613-41d1-a07c-6137c9639609
78
- Server ID: 2e1f6632-1613-41d1-a07c-6137c9639609
79
- Server Name: hol-dev-43
80
- IP Addresses: 192.168.110.203
81
- Status: ACTIVE
82
- Catalog Name: CentOS 6.6
83
- ```
84
-
85
- #### knife vra server create CATALOG_ID (options)
86
-
87
- Creates a server from a catalog blueprint. Find the catalog ID with the `knife vra catalog list` command. After the resource is created, knife will attempt to bootstrap it (install chef, run chef-client for the first time, etc.).
88
-
89
- Each blueprint may require different parameters to successfully complete provisioning. See your vRA administrator with questions. We'll do our best to give you any helpful error messages from vRA if they're available to us.
90
-
91
- Common parameters to specify are:
92
-
93
- * `--cpus`: number of CPUs
94
- * `--memory`: amount of RAM in MB
95
- * `--requested-for`: vRA login that should be listed as the owner
96
- * `--lease-days`: number of days for the resource lease
97
- * `--notes`: any optional notes you'd like to be logged with your request
98
- * `--subtenant-id`: all resources must be tied back to a Business Group, or "subtenant." If your catalog item is tied to a specific Business Group, you do not need to specify this. However, if your catalog item is a global catalog item, then the subtenant ID is not available to us; you will need to provide it. It usually looks like a UUID. See your vRA administrator for assistance in determining your subtenant ID.
99
- * `--ssh-password`: if a linux host, the password to use during bootstrap
100
- * `--winrm-password`: if a windows host, the password to use during bootstrap
101
- * `--image-os-type`: windows/linux
102
- * `--bootstrap-protocol`: winrm/ssh
103
- * `--server-create-timeout`: increase this if your vRa environments takes more than 10 minutes to give you a server.
104
- * `--bootstrap-version`: use to tie to a specific chefdk version if your group is not current
105
- * `-N`: node-name of the chef node to create. The gem will automatically create a node name with prefix `vra-` if not specified
106
-
107
- Most of these can be set in your `knife.rb` to simplify the command:
108
- ```ruby
109
- knife[:vra_username] = 'your-username'
110
- knife[:vra_password] = 'your-pass'
111
- knife[:vra_base_url] = 'https://cloud.yourcompany.com'
112
- knife[:vra_tenant] = 'your-tenant-name'
113
- knife[:vra_disable_ssl_verify] = true # if you want to disable SSL checking.
114
- knife[:subtenant_id] = 'your-subtenant-ID'
115
- knife[:cpus] = '2'
116
- knife[:memory] = '4096'
117
- knife[:server_create_timeout] = '1800'
118
- knife[:bootstrap_version] = '12.18.31' # pinning to an older version
119
- knife[:server_url] = chef_server_url
120
- knife[:requested_for] = 'your-username'
121
- knife[:winrm_user] = 'machine-account-name'
122
- knife[:winrm_password] = 'machine-account-pass'
123
- ```
124
-
125
-
126
- ```
127
- $ knife vra server create 5dcd1900-3b89-433d-8563-9606ae1249b8 --cpus 1 --memory 512 --requested-for devmgr@corp.local --ssh-password 'mypassword' --lease-days 5
128
- Catalog request d282fde8-6fd2-406c-998e-328d1b659078 submitted.
129
- Waiting for request to complete.
130
- Current request status: PENDING_PRE_APPROVAL.
131
- Current request status: IN_PROGRESS..
132
- ...
133
- ```
134
-
135
- #### knife vra server delete RESOURCE_ID
136
-
137
- Deletes a server from vRA. If you supply `--purge`, the server will also be removed from the Chef Server.
138
-
139
- ```
140
- $ knife vra server delete 2e1f6632-1613-41d1-a07c-6137c9639609 --purge
141
- Server ID: 2e1f6632-1613-41d1-a07c-6137c9639609
142
- Server Name: hol-dev-43
143
- IP Addresses: 192.168.110.203
144
- Status: ACTIVE
145
- Catalog Name: CentOS 6.6
146
-
147
- Do you really want to delete this server? (Y/N) Y
148
- Destroy request f2aa716b-ab24-4232-ac4a-07635a03b4d4 submitted.
149
- Waiting for request to complete.
150
- Current request status: PENDING_PRE_APPROVAL.
151
- Current request status: IN_PROGRESS...
152
- ...
153
- ```
154
-
155
- ### Known Issue: Pagination
156
-
157
- A bug in vRA v6 (as late as v6.2.1) causes resource/server lists to potentially return duplicate items and omit items in the returned data. This appears to be a bug in the pagination code in vRA and was initially discovered and discussed [in this GitHub issue](https://github.com/chef-partners/vmware-vra-gem/issues/10). `knife-vrealize` tries to work around this by setting a higher-than-normal page size of 200 items. However, if you have more items in your returned data than this, you can attempt to work around this further by using:
158
-
159
- ```
160
- --page-size NUMBER_OF_ITEMS_PER_PAGE
161
- ```
162
-
163
-
164
- ## vRealize Orchestrator (vRO)
165
-
166
- ### Configuration
167
-
168
- In order to communicate with vRA, you must specify your user credentials. You can specify them in your knife.rb:
169
-
170
- ```ruby
171
- knife[:vro_username] = 'myuser'
172
- knife[:vro_password] = 'mypassword'
173
- knife[:vro_base_url] = 'https://vra.corp.local:8281'
174
- ```
175
-
176
- ... or you can supply them on the command-line:
177
-
178
- ```
179
- knife vro command --vro-username myuser ...
180
- ```
181
-
182
- ### Usage
183
-
184
- ### knife vro workflow execute
185
-
186
- Executes a vRO workflow. Requires the workflow name. You may supply any input parameters, as well.
187
-
188
- ```
189
- $ knife vro workflow execute "knife testing" key1=value1
190
- Starting workflow execution...
191
- Workflow execution 4028eece4effc046014f27da864d0187 started. Waiting for it to complete...
192
- Workflow execution complete.
193
-
194
- Output Parameters:
195
- outkey1: some value (string)
196
-
197
- Workflow Execution Log:
198
- 2015-08-13 09:17:57 -0700 info: cloudadmin: Workflow 'Knife Testing' has started
199
- 2015-08-13 09:17:58 -0700 info: cloudadmin: Workflow 'Knife Testing' has completed
200
- ```
201
-
202
- If your workflow name is not unique in your vRO workflow list, you can specify
203
- a specific workflow to use with `--vro-workflow-id ID`. You can find the
204
- workflow ID from within the vRO UI. However, a workflow name is still required
205
- by the API.
206
-
207
- ## Contributing
208
-
209
- We'd love to hear from you if you find this isn't working in your VMware vRA/vRO environment. Please submit a GitHub issue with any problems you encounter.
210
-
211
- Additionally, contributions are welcome! If you'd like to send up any fixes or changes:
212
-
213
- 1. Fork it ( https://github.com/chef-partners/knife-vrealize/fork )
214
- 2. Create your feature branch (`git checkout -b my-new-feature`)
215
- 3. Commit your changes (`git commit -am 'Add some feature'`)
216
- 4. Push to the branch (`git push origin my-new-feature`)
217
- 5. Create a new Pull Request