knife-rackspace 1.0.4 → 1.0.5

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
- SHA1:
3
- metadata.gz: 3331224be787b03672bd3920210f7d5a2b72022b
4
- data.tar.gz: 5ad991349238c131123644d4229817703242cc1e
2
+ SHA256:
3
+ metadata.gz: f4f520eb07e5c851e61f833d48dd5d307890edc2076b228cc3b172c6d71d2636
4
+ data.tar.gz: 8a98e71b0defaaecf0544dd026cf64ed129a5127e390958f0bf8c5e2f53d9960
5
5
  SHA512:
6
- metadata.gz: b0b6e3eef72dcf46362df434e3f9ca7e87e18084c39bbb846d7354540e8fe90098594432c61378fe4c761d5c1f15ca5c79f42a5537f211b92bfa67e378793425
7
- data.tar.gz: a0e0a250e3fe230a5bfd72d4565d3ca2cd940d7c5133341f5d1f0d0da42753d4fda7f33e84a79b8742de96815d8c32d5a6374f8983c7149b81f4bbd12639f63e
6
+ metadata.gz: 83622510e2fd126c18d263a87868195900600a811926f40dbb1c9a865438f51d9684be30859aba225e6afe5a1b82a6cf6c2711806759c52323667687761bf808
7
+ data.tar.gz: 0f7a422d3a8b2307a5b7c1a5d629aeb7285b04e17ee8c3dc5abbcd89b3a8684eefaa09d6be581c0dc9b89d6b13bf5d75e212f973695842530e215c45b3d26106
@@ -1,6 +1,6 @@
1
1
  module Knife
2
2
  module Rackspace
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  MAJOR, MINOR, TINY = VERSION.split(".")
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: knife-rackspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Jacob
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2017-04-21 00:00:00.000000000 Z
15
+ date: 2018-11-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: knife-windows
@@ -34,14 +34,14 @@ dependencies:
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 0.1.5
37
+ version: '0.1'
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 0.1.5
44
+ version: '0.1'
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: chef
47
47
  requirement: !ruby/object:Gem::Requirement
@@ -64,20 +64,9 @@ email:
64
64
  - jj@chef.io
65
65
  executables: []
66
66
  extensions: []
67
- extra_rdoc_files:
68
- - README.md
69
- - LICENSE
67
+ extra_rdoc_files: []
70
68
  files:
71
- - ".chef/knife.rb"
72
- - ".github/ISSUE_TEMPLATE.md"
73
- - ".gitignore"
74
- - ".travis.yml"
75
- - CHANGELOG.md
76
- - Gemfile
77
69
  - LICENSE
78
- - README.md
79
- - Rakefile
80
- - knife-rackspace.gemspec
81
70
  - lib/chef/knife/rackspace_base.rb
82
71
  - lib/chef/knife/rackspace_flavor_list.rb
83
72
  - lib/chef/knife/rackspace_image_list.rb
@@ -97,7 +86,8 @@ files:
97
86
  - spec/spec_helper.rb
98
87
  - spec/unit/rackspace_base_spec.rb
99
88
  homepage: https://github.com/chef/knife-rackspace
100
- licenses: []
89
+ licenses:
90
+ - Apache-2.0
101
91
  metadata: {}
102
92
  post_install_message:
103
93
  rdoc_options: []
@@ -115,8 +105,16 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
105
  version: '0'
116
106
  requirements: []
117
107
  rubyforge_project:
118
- rubygems_version: 2.4.8
108
+ rubygems_version: 2.7.6
119
109
  signing_key:
120
110
  specification_version: 4
121
111
  summary: Rackspace Support for Chef's Knife Command
122
- test_files: []
112
+ test_files:
113
+ - spec/cassettes/v1/should_list_images.yml
114
+ - spec/cassettes/v1/should_list_server_flavors.yml
115
+ - spec/cassettes/v2/should_list_images.yml
116
+ - spec/cassettes/v2/should_list_server_flavors.yml
117
+ - spec/integration/integration_spec.rb
118
+ - spec/integration_spec_helper.rb
119
+ - spec/spec_helper.rb
120
+ - spec/unit/rackspace_base_spec.rb
@@ -1,18 +0,0 @@
1
- current_dir = File.dirname(__FILE__)
2
- log_level :info
3
- log_location STDOUT
4
- #node_name "knife-rackspace"
5
- #client_key "#{current_dir}/knife-rackspace.pem"
6
- #validation_client_name "knife-rackspace-validator"
7
- #validation_key "#{current_dir}/knife-rackspace-validator.pem"
8
- #chef_server_url "https://api.opscode.com/organizations/knife-rackspace"
9
- #cache_type 'basicfile'
10
- #cache_options( :path => "#{ENV['home']}/.chef/checksums" )
11
- #cookbook_path ["#{current_dir}/../cookbooks"]
12
-
13
- knife[:rackspace_api_username] = "#{ENV['OS_USERNAME']}"
14
- knife[:rackspace_api_key] = "#{ENV['OS_PASSWORD']}"
15
-
16
- #https_proxy 'https://localhost:8888'
17
- #knife[:ssl_verify_peer] = false
18
-
@@ -1,21 +0,0 @@
1
- # Version:
2
-
3
- [Version of the project installed]
4
-
5
- # Environment: [Details about the environment such as the Operating System, cookbook details, etc...]
6
-
7
- # Scenario:
8
-
9
- [What you are trying to achieve and you can't?]
10
-
11
- # Steps to Reproduce:
12
-
13
- [If you are filing an issue what are the things we need to do in order to repro your problem?]
14
-
15
- # Expected Result:
16
-
17
- [What are you expecting to happen as the consequence of above reproduction steps?]
18
-
19
- # Actual Result:
20
-
21
- [What actually happens after the reproduction steps?]
data/.gitignore DELETED
@@ -1,36 +0,0 @@
1
- .rake_tasks~
2
- tags
3
- coverage
4
- rdoc
5
- pkg
6
- test/tmp
7
- test/version_tmp
8
- tmp
9
- pkg
10
- *.gem
11
- *.rbc
12
- lib/bundler/man
13
- spec/reports
14
- .config
15
- InstalledFiles
16
- .bundle
17
- .rackspace_cloud_credentials*
18
- *.lock
19
-
20
- # YARD artifacts
21
- .yardoc
22
- _yardoc
23
- doc/
24
-
25
- .DS_Store
26
- Icon?
27
-
28
- # Thumbnails
29
- ._*
30
-
31
- # Files that might appear on external disk
32
- .Spotlight-V100
33
- .Trashes
34
-
35
- *.swp
36
- *.swo
@@ -1,47 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- sudo: false
4
- rvm:
5
- - 2.2.5
6
- - 2.3.1
7
- env:
8
- global:
9
- - excon_debug: true
10
- - secure: |-
11
- eEsikE/p2yz7/cFvCN/NOoljxBqjzsTWnKC7iZ+fEGGsyhKVJgWn4AasBusZ
12
- mhtQcOqwakRulzVc+EZN4pqWHgaMC7SnSwhqRU5u1E+BPI4iWNsu+7rjiXhE
13
- cJK1vE8YodgsgRDQ6evZVQLkwJpRk0qq2tM2LDqpzvy2MeQJIGc=
14
- - secure: |-
15
- V3ohIIF3I8lD05zTUs2nu+CcIzBYcvt1c1euRJ+SPcAH493b4cPquw1NZNFy
16
- WDIW+1qDQi1DXr8C3Yq8bL4+pY66SukHtxyLhx0V26lGUvI8naq3IqageBQK
17
- pkb2zZwVYO0a5mLEKOI/7omExBVHDxxX9Bw45vCHLKId3Wt21HE=
18
- - secure: |-
19
- OyKQU1muVBijz2/EkLUgBWbwPKG2UqRhIfpB1ZFkfdQ/06+Vaf82ZEQk3DvY
20
- 2lYFrzvSN1yWrKTMU3XES/dPlVlH87LDOrRhNhgW/NeHhC5BzdwrtvBm08RN
21
- 64ACuFG8fch9zIbx2VTkyLV8xsFXPPSaKMbEXrnikLwqnl5M8PQ=
22
- - secure: |-
23
- DoDVG0HwFg2a7Fj72tlxb8KJto+cBEh7J9YQZ35hK2cmeTsBAcZ4oSOUeAFg
24
- s2MvBhX0man0zjYPStbL1vcpuS1Ecea3kGzefG0lYhHAzvK7wqqRqhKNFsnd
25
- FPEVgZrcj3/Lc7mlkbigZouDM7BJLQbMGOv/KOS6f3nYzIhkOfE=
26
- - secure: |-
27
- SB4aoB5BCqqSFMpxJvN031tikc7VzXGX6PaOIngu5h3M9k3Qmkuvel8oQISb
28
- fhcbsmuA0EKlaCvjQsgXFoUvUE6UnPCc7h2816fEAEz7FrRF1Q1mnbZ2V/kG
29
- PtPYcPl4ZH4VxwAD+6kTtbl1aCTP8nKXTFXlKlrPAawpS7ef0B8=
30
- - secure: |-
31
- J01xNjFaqlwzin59fpvgKkp49p5VI128cFvM3pxvlErPLnjWE9kJ4NKzzznv
32
- tVc12zVat/twxepvjSzg88b0q4Ks6P0Ovy0LeQCFUkva/jiBQuGukByR3joU
33
- xuAFiCssBoaZEEKlN69n/zhihFxG/0z8Tn4h9pgAkSAyAq8UZJ0=
34
- - secure: |-
35
- W7NIurlDI/LtO27N5Yv9i2i/TLvwSL6L5bF0yJMtPNsL21xbcqBkcFY+0PEU
36
- 2jIzA6Ib861UACb9Xh45tXmY/zuUHQ/otuIdAwocawulxBjrTuNUDo58ZVEv
37
- GzvTdFIaOWczTTvBcaNy9msenXiRBQTWriMFR0uPKIH/mYGF3Ew=
38
- - secure: |-
39
- RQDTTLjob/9p+9XpcpYo4VaQSVvVbbHtUcpVyTXcnHwMq3WJzXXBoj/9iFxA
40
- Uupx9IhP0gZhX6kzcm5BG+oKTYAxTQkf2tRCRkVMBFCJKreER1SuSDVvljdV
41
- KLMfTbC5qwXox78PtD23BjO5k8hCJCSHfs0XuQ5y7k1mMFjM4ok=
42
- deploy:
43
- provider: rubygems
44
- api_key:
45
- secure: YeHeF7cuLuN3lHJQNQ4jpgfhaHGuB861cF6dzoyGPzAi/PO3wmTZfDNG27iI3zCe3CPviDSPiK4v14SQA1Xq3UtvSmeE+zcX/PxYsjNp7EQPn8J6fq2DfjmhYU5ECXnojbTkoh2HIM29YXBjxS8VlSTFDHYx0oV6uMZFgrzSLrI=
46
- on:
47
- tags: true
@@ -1,119 +0,0 @@
1
- ## v1.0.4
2
- * Pin to require fog-rackspace 0.1.5 (#139)
3
-
4
- ## v1.0.3
5
- * Fix to encrypted_data_bag_secret and encrypted_data_bag_secret_file options (#138)
6
- * Fix em-winrm dependencies and close TCP sockets (#134)
7
-
8
- ## v1.0.2
9
- * Fix issue in error message when no flavor is supplied (#132)
10
-
11
- ## v1.0.1
12
- * Fix Server List exception (#131)
13
- * Fix bug preferring knife over CLI configurations items (#128)
14
-
15
- ## v1.0.0
16
- * Use fog/rackspace instead of fog gem
17
- * Require Ruby 2.2.2 / Chef 12 and general cleanup
18
- * Spec updates to avoid deprecation warnings
19
- * Chefstyle fixes
20
- * Modified server list - #118
21
-
22
- ## v0.11.1
23
- * Remove unused, and unsupported/ancient knife-dsl requirement
24
- * Take it all the way to 11 (Chef 11.x) and greater
25
-
26
- ## v0.11.0
27
- * Add -B (boot volume ID) to `knife rackspace server create` - #91
28
-
29
- ## v0.10.1
30
- * Support new chef-vault boostrap flags (--bootstrap-vault-file, -bootstrap-vault-json, and --bootstrap-vault-item)
31
-
32
- ## v0.10.0
33
- * KNIFE-498 knife rackspace uses direct TCP connection on port 22 to verify SSHD
34
- * Update Windows bootstrapping instructions in the README
35
- * Fix warning for deprecated :keypair for :key_name
36
-
37
- ## v0.9.3
38
- * KNIFE-497 Create server command does not honor timeout parameter
39
-
40
- ## v0.9.2
41
- * KNIFE-480 Add support for user-data
42
- * --secret-file support for bootstrap
43
-
44
- ## v0.9.1
45
- * KNIFE-460 Remove extraneous flavor reloads
46
- * KNIFE-459 Add support for config-drive
47
- * KNIFE-440 fix two minor typos in the ui.error message
48
- * use {public_ip_address}.xip.io instead of {public_ip_address}.rs-cloud.xip.io
49
-
50
- ## v0.9.0
51
- * KNIFE-398 support secret/secret_file in knife.rb
52
- * KNIFE-420 Add --ssh-keypair for using ssh keys already registered with nova.
53
- * KNIFE-437 remove default region and make region required
54
- * replace static.cloud-ips with xip (cloud-ips was deprecated https://community.rackspace.com/general/f/34/t/623)
55
- * updated Fog dependency to 1.16
56
-
57
- ## v0.8.4
58
- * KNIFE-408 TypeError: wrong argument type Symbol (expected Module)
59
-
60
- ## v0.8.2
61
- * KNIFE-335 Wait for RackConnect and/or Service Level automation before bootstrapping
62
- * KNIFE-366 Allow arbitrary bootstrap networks
63
- * KNIFE-399 update knife rackspace to support string based flavor ids
64
- * Fixing issue with bootstrapping Windows server
65
- * Fog 1.16 updates
66
-
67
- ## v0.8.0
68
- * KNIFE-68 enable ability to modify ssh port number
69
- * KNIFE-180 include option to pass :disk_config option to fog for new node bootstrap
70
- * KNIFE-312 updated to reflect new configuration options in Fog 1.10.1
71
- * KNIFE-314 provisioning First Gen Cloud Server is broken
72
- * KNIFE-315 fixed DEPRECATION warnings related to use of old rackpace_auth_url and removed rackspace_endpoint
73
-
74
- ## v0.7.0
75
- * KNIFE_RACKSPACE-32 Ensure hint file is created to improve Ohai detection.
76
- * KNIFE-181 correct mixed use of 'rackspace_auth_url' and 'rackspace_api_auth_url'. Only 'rackspace_auth_url' is correct.
77
- * KNIFE-182 default to Rackspace Open Cloud (v2)
78
- * KNIFE-267 Rackspace server create with networks
79
- * KNIFE-271 Enable winrm authentication on knife-rackspace
80
- * KNIFE-281 pass https_proxy and http_proxy setting onto fog; added ssl_verify_peer setting to disable certificate validation
81
- * KNIFE-282 Add the ability to inject files on server creation
82
- * KNIFE-289 Add Integration Tests
83
-
84
- * KNOWN ISSUES: KNIFE-296 knife-windows overrides -x option with winrm-user
85
-
86
- ## v0.6.2
87
- * bump release to fix permission issues inside the gem
88
-
89
- ## v0.6.0
90
- * KNIFE_RACKSPACE-39 support for Rackspace Open Cloud (v2)
91
- * server list puts the name in second column
92
- * flavor list supports VCPUs for v2
93
- * server delete for v2 will attempt the name when purging since we set the name
94
- * docs updated to reflect all of the regions and APIs supported
95
-
96
- ## v0.5.16
97
- * KNIFE_RACKSPACE-36 Changed to code to use IP address for bootstrapping
98
- * KNIFE_RACKSPACE-38 Support the -P --purge option
99
- * Refactored to use msg_pair method like other knife plugins with eye on eventual base class.
100
- * KNIFE_RACKSPACE-29 Support private network to connect to for bootstrap
101
- * KNIFE_RACKSPACE-40 Support for disabling host key checking
102
- * Added the 'unknown' state to `rackspace server list`, appeared transitory
103
-
104
- ## v0.5.14
105
- * KNIFE_RACKSPACE-25 version bump to match knife-ec2's dependencies
106
- * KNIFE_RACKSPACE-33 chef-full is new default
107
- * updated authors
108
- * Fix of small typo "backspace" > "rackspace".
109
- * KNIFE_RACKSPACE-31 chef dependency needed, add explicit gem deps
110
- * KNIFE_RACKSPACE-7 switch to uneven_columns_across for prettier output
111
- * updated for rackspace_api_username and the correct current image number for Ubuntu 10.04 LTS
112
- * KNIFE-RACKSPACE-26 fog doesn't provide cores enumeration anymore
113
- * updated copyright and removed trailing comma
114
- * KNIFE_RACKSPACE-30 Make use of --json-attributes option for knife
115
- bootstrap.
116
-
117
- ## v0.5.12
118
- * remove dependency on net-ssh and net-ssh-multi..neither is access directly in plugin
119
- * KNIFE_RACKSPACE-18: Increase net-ssh-multi dependecy to 1.1.0
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in knife-rackspace.gemspec
4
- gemspec
5
-
6
- gem "rspec", "~> 3.0"
7
- gem "vcr"
8
- gem "ansi"
9
- gem "chefstyle"
10
- gem "rake", "~> 11.0"
data/README.md DELETED
@@ -1,230 +0,0 @@
1
- # Knife Rackspace
2
-
3
- [![Gem Version](https://badge.fury.io/rb/knife-rackspace.svg)](https://rubygems.org/gems/knife-rackspace) [![Build Status](https://travis-ci.org/chef/knife-rackspace.svg?branch=master)](https://travis-ci.org/chef/knife-rackspace)
4
-
5
- This is the official Chef Knife plugin for Rackspace Cloud Servers. This plugin gives knife the ability to create, bootstrap, and manage servers on all the regions for Rackspace Cloud Servers.
6
-
7
- ## Requirements
8
-
9
- - Chef 12.0 higher
10
- - Ruby 2.2.2 or higher
11
-
12
- ## Installation
13
-
14
- Using [ChefDK](https://downloads.chef.io/chef-dk/), simply install the Gem:
15
-
16
- ```bash
17
- chef gem install knife-rackspace
18
- ```
19
-
20
- ## Configuration
21
-
22
- In order to communicate with the Rackspace Cloud API you will have to tell Knife about your Username and API Key. The easiest way to accomplish this is to create some entries in your knife.rb file:
23
-
24
- ```ruby
25
- knife[:rackspace_api_username] = "Your Rackspace API username"
26
- knife[:rackspace_api_key] = "Your Rackspace API Key"
27
- ```
28
-
29
- If your knife.rb file will be checked into a SCM system (ie readable by others) you may want to read the values from environment variables:
30
-
31
- ```ruby
32
- knife[:rackspace_api_username] = "#{ENV['RACKSPACE_USERNAME']}"
33
- knife[:rackspace_api_key] = "#{ENV['RACKSPACE_API_KEY']}"
34
- ```
35
-
36
- You also have the option of passing your Rackspace API Username/Key into the individual knife subcommands using the **-A** (or **--rackspace-api-username**) **-K** (or **--rackspace-api-key**) command options
37
-
38
- ```
39
- # provision a new 1GB Ubuntu 10.04 webserver
40
- knife rackspace server create -I 112 -f 3 -A 'Your Rackspace API username' -K "Your Rackspace API Key" -r 'role[webserver]'
41
- ```
42
-
43
- To select for the previous Rackspace API (aka 'v1'), you can use the **--rackspace-version v1** command option. 'v2' is the default, so if you're still using exclusively 'v1' you will probably want to add the following to your knife.rb:
44
-
45
- ```ruby
46
- knife[:rackspace_version] = 'v1'
47
- ```
48
-
49
- This plugin also has support for authenticating against an alternate API Auth URL. This is useful if you are a using a custom endpoint, here is an example of configuring your knife.rb:
50
-
51
- ```ruby
52
- knife[:rackspace_auth_url] = "auth.my-custom-endpoint.com"
53
- ```
54
-
55
- Different regions can be specified by using the `--rackspace-region` switch or using the `knife[:rackspace_region]` in the knife.rb file. Valid regions include :dfw, :ord, :lon, and :syd.
56
-
57
- If you are behind a proxy you can specify it in the knife.rb file as follows:
58
-
59
- ```ruby
60
- https_proxy https://PROXY_IP_ADDRESS:PORT
61
- ```
62
-
63
- SSL certificate verification can be disabled by include the following in your knife.rb file:
64
-
65
- ```ruby
66
- knife[:ssl_verify_peer] = false
67
- ```
68
-
69
- Additionally the following options may be set in your knife.rb:
70
-
71
- - flavor
72
- - image
73
- - distro
74
- - template_file
75
-
76
- ## Knife Sub Commands
77
-
78
- This plugin provides the following Knife subcommands. Specific command options can be found by invoking the subcommand with a --help flag
79
-
80
- ### knife rackspace server create
81
-
82
- Provisions a new server in the Rackspace Cloud and then perform a Chef bootstrap (using the SSH protocol). The goal of the bootstrap is to get Chef installed on the target system so it can run Chef Client with a Chef Server. The main assumption is a baseline OS installation exists (provided by the provisioning). It is primarily intended for Chef Client systems that talk to a Chef server. By default the server is bootstrapped using the {chef-full}[<https://github.com/opscode/chef/blob/master/chef/lib/chef/knife/bootstrap/chef-full.erb>] template. This can be overridden using the **-d** or **--template-file** command options.
83
-
84
- If no name is provided, nodes created with the v1 API are named after their instance ID, with the v2 API they are given a random 'rs-XXXXXXXXX' name.
85
-
86
- Files can be injected onto the provisioned system using the **--file** switch. For example to inject my_script.sh into **/root/initialize.sh** you would use the following switch: **--file /root/initialize.sh=my_script.sh**
87
-
88
- Note: You can only inject text files and the maximum destination path is 255 characters.
89
-
90
- You may specify if want to manage your disk partitioning scheme with the **--rackspace-disk-config DISKCONFIG** option. If you bootstrap a `v2` node and leave this set to the default "AUTO", larger nodes take longer to bootstrap as it grows the disk from 10G to fill the full amount of local disk provided. This option allows you to pass "MANUAL" - which give you a node (in 1/2 to 1/4 of the time) and lets you manage ignoring, or formatting the rest of the disk on your own.
91
-
92
- <http://docs.openstack.org/essex/openstack-compute/starter/content/Launch_and_manage_instances-d1e1885.html>
93
-
94
- You may specify a custom network using the **--network [LABEL_OR_ID]** option. You can also remove the default internal ServiceNet and PublicNet networks by specifying the **--no-default-networks** switch. To use a network other than PublicNet for the bootstrap connection, specify the **--bootstrap-network LABEL** option.
95
-
96
- Note: If you are using one of the `performanceX-X` machines, you need to put **-f** or **--flavor** in quotes.
97
-
98
- #### Windows
99
-
100
- Windows Servers require special treatment with the knife-rackspace gem.
101
-
102
- First, you'll need to ensure you've installed the knife-windows gem. Installation instructions can be found over here: <http://docs.chef.io/plugin_knife_windows.html#install-this-plugin>
103
-
104
- Secondly, you need to make sure that the image you're using has WinRM pre-configured. Unfortunately, none of the Rackspace Windows image have this done by default, so you'll need to run the following instructions in a Windows machine, then save a Snapshot to use when creating servers with knife rackspace: <http://docs.chef.io/plugin_knife_windows.html#requirements>
105
-
106
- Thirdly, you must pass **--bootstrap-protocol winrm** and **--distro windows-chef-client-msi** parameters to the knife rackspace create command
107
-
108
- If you have troubles, make sure you add the **-VV** switch for extra verbosity. The **--server-create-timeout** switch may also be your friend, as Windows machines take a long time to build compared to Linux ones.
109
-
110
- ### knife rackspace server delete
111
-
112
- Deletes an existing server in the currently configured Rackspace Cloud account by the server/instance id. You can find the instance id by entering **knife rackspace server list**. Please note - this does not delete the associated node and client objects from the Chef server unless you pass the **-P** or **--purge** command option. Using the **--purge** option with v2 nodes will attempt to delete the node and client by the name of the node.
113
-
114
- ### knife rackspace server list
115
-
116
- Outputs a list of all servers in the currently configured Rackspace Cloud account. Please note - this shows all instances associated with the account, some of which may not be currently managed by the Chef server. You may need to use the **--rackspace-version** and **--rackspace-region** options to see nodes in different Rackspace regions.
117
-
118
- ### knife rackspace flavor list
119
-
120
- Outputs a list of all available flavors (available hardware configuration for a server) available to the currently configured Rackspace Cloud account. Each flavor has a unique combination of disk space, memory capacity and priority for CPU time. This data can be useful when choosing a flavor id to pass to the **knife rackspace server create** subcommand. You may need to use the **--rackspace-version** and **--rackspace-region** options to see nodes in different Rackspace regions.
121
-
122
- ### knife rackspace image list
123
-
124
- Outputs a list of all available images available to the currently configured Rackspace Cloud account. An image is a collection of files used to create or rebuild a server. Rackspace provides a number of pre-built OS images by default. This data can be useful when choosing an image id to pass to the **knife rackspace server create** subcommand. You may need to use the **--rackspace-version** and **--rackspace-region** options to see nodes in different Rackspace regions.
125
-
126
- ### knife rackspace network list
127
-
128
- Outputs a list of available networks to the currently configured Rackspace Cloud account. Networks can be added at a server during the creation process using the **--network [LABEL_OR_ID]** option. Knife does not currently support adding a network to an existing server.
129
-
130
- ### knife rackspace network create
131
-
132
- Creates a new cloud network. Both the label and the CIDR are required parameters which are specified using the **--label LABEL** and **--cidr CIDR**
133
-
134
- respectively. The CIDR should be in the form of 172.16.0.0/24 or 2001:DB8::/64\. Refer to <http://www.rackspace.com/knowledge_center/article/using-cidr-notation-in-cloud-networks> for more information.
135
-
136
- ### knife rackspace network delete
137
-
138
- Deletes one or more specified networks by id. The network must be detached from all hosts before it is deleted.
139
-
140
- ### Knife & Rackspace Rackconnect
141
-
142
- Rackspace Rackconnect allows the creation of a hybrid setup where you can have Cloud servers which are connected to bare metal hardware like Firewalls and Load balancers. You can read more about this product at <http://www.rackspace.com/cloud/hybrid/rackconnect/>
143
-
144
- Under the hood, this changes the behavior of how the cloud servers are configured and how IP addresses are assigned to them. So when using knife-rackspace with a 'Rack connected' cloud account you need use some additional parameters. See the sections below for more information regarding the two versions of Rack Connect.
145
-
146
- Note: If you account is leveraging private cloud networks for Rackconnnect then you are using Rackconnect v3\. You can also find your version of Rackconnect by checking with your support team
147
-
148
- #### Knife and Rackconnect version 2
149
-
150
- ```
151
- knife rackspace server create \
152
- --server-name <name of the server> \
153
- --image <Rackspace image id> \
154
- --flavor <Rackspace flavor id> \
155
- -r 'role[base]' \
156
- --rackconnect-wait
157
- ```
158
-
159
- Note: If the server is also part of Rackspace Managed Operations service level you will need to add the
160
-
161
- **--rackspace-servicelevel-wait** option.
162
-
163
- ```
164
- knife rackspace server create \
165
- --server-name <name of the server> \
166
- --image <Rackspace image id> \
167
- --flavor <Rackspace flavor id> \
168
- -r 'role[base]' \
169
- --rackconnect-wait \
170
- --rackspace-servicelevel-wait
171
- ```
172
-
173
- **--rackconnect-wait** does the following:
174
-
175
- - Rackconnect version 2 changes the networking on the cloud server and forces all trafic to route via the dedicated firewall or load balancer. It also then assigns the cloud server a new public IP address. The status of this automation provided by updates to the cloud server metadata. This option makes Knife wait for the Rackconnect automation to complete by checking the metadata.
176
-
177
- - Once the status is updated, it triggers the bootstrap process.
178
-
179
- **--rackspace-servicelevel-wait** does the following:
180
-
181
- - For Cloud servers in the Managed operations service level, Rackspace installs additional agents and software which enables them to provide support. This automation. like the Rackconnect one, updates the cloud server metadata of its status. Likewise, using this option, makes knife wait till the automation is complete before triggering the bootstrap process.
182
-
183
- #### Knife and Rackconnect version 3
184
-
185
- In case of version 3, there is a different command line option.
186
-
187
- ```
188
- knife rackspace server create \
189
- --server-name <name of the server> \
190
- --image <Rackspace image id> \
191
- --flavor <Rackspace flavor id> \
192
- -r 'role[base]' \
193
- --rackconnect-v3-network-id <cloud network id>
194
- ```
195
-
196
- **--rackconnect-v3-network-id** does the following :-
197
-
198
- - Create the server with the corresponding cloud network. The network id the id of an existing cloud network.
199
- - Knife will then issue additional API calls to the Rackconnect API to assign a new public IP to the cloud server. The new IP is also stored in the Cloud Server Metadata under accessv4IP.
200
- - Knife then waits for the IP to be provisioned before triggering the bootstrap process.
201
-
202
- Functionally, this operates the same way as version 2\. However, behind the scenes, Rackconnect v3 is significantly different in implementation. You can learn about the differences here : <http://www.rackspace.com/knowledge_center/article/comparing-rackconnect-v30-and-rackconnect-v20>
203
-
204
- ## Contributing
205
-
206
- For information on contributing to this project see <https://github.com/chef/chef/blob/master/CONTRIBUTING.md>
207
-
208
- ## License and Authors
209
-
210
- ```text
211
- Author:: Adam Jacob (<adam@chef.io>)
212
- Author:: Seth Chisamore (<schisamo@chef.io>)
213
- Author:: Matt Ray (<matt@chef.io>)
214
- Author:: JJ Asghar (<jj@chef.io>)
215
- Author:: Rackspace Developers
216
- Copyright:: Copyright (c) 2019-2016 Chef Software, Inc.
217
- License:: Apache License, Version 2.0
218
-
219
- Licensed under the Apache License, Version 2.0 (the "License");
220
- you may not use this file except in compliance with the License.
221
- You may obtain a copy of the License at
222
-
223
- http://www.apache.org/licenses/LICENSE-2.0
224
-
225
- Unless required by applicable law or agreed to in writing, software
226
- distributed under the License is distributed on an "AS IS" BASIS,
227
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228
- See the License for the specific language governing permissions and
229
- limitations under the License.
230
- ```
data/Rakefile DELETED
@@ -1,51 +0,0 @@
1
- #
2
- # Author:: Adam Jacob (<adam@chef.io>)
3
- # Author:: Daniel DeLeo (<dan@chef.io>)
4
- # Copyright:: Copyright (c) 2008-2016 Chef Software, Inc.
5
- # License:: Apache License, Version 2.0
6
- #
7
- # Licensed under the Apache License, Version 2.0 (the "License");
8
- # you may not use this file except in compliance with the License.
9
- # You may obtain a copy of the License at
10
- #
11
- # http://www.apache.org/licenses/LICENSE-2.0
12
- #
13
- # Unless required by applicable law or agreed to in writing, software
14
- # distributed under the License is distributed on an "AS IS" BASIS,
15
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- # See the License for the specific language governing permissions and
17
- # limitations under the License.
18
- #
19
-
20
- require "bundler"
21
- Bundler::GemHelper.install_tasks
22
-
23
- require "rspec/core/rake_task"
24
- RSpec::Core::RakeTask.new(:spec)
25
- task :default => [:credentials, :spec, "integration:live"]
26
-
27
- task :credentials do
28
- if ENV["TRAVIS_SECURE_ENV_VARS"] == "false"
29
- puts "Setting vars"
30
- ENV["OS_USERNAME"] = "_RAX_USERNAME_"
31
- ENV["OS_PASSWORD"] = "_RAX_PASSWORD_"
32
- ENV["RS_TENANT_ID"] = "000000"
33
- ENV["RS_CDN_TENANT_NAME"] = "_CDN-TENANT-NAME_"
34
- end
35
- raise "Not all required variables detected" unless ENV["OS_USERNAME"] && ENV["OS_PASSWORD"] && ENV["RS_CDN_TENANT_NAME"] && ENV["RS_TENANT_ID"]
36
- end
37
-
38
- namespace :integration do
39
- desc "Run the integration tests"
40
- RSpec::Core::RakeTask.new(:test) do |t|
41
- t.pattern = "spec/integration/**"
42
- end
43
-
44
- desc "Run the integration tests live (no VCR cassettes)"
45
- task :live do
46
- unless ENV["TRAVIS"] == "true" && ENV["TRAVIS_SECURE_ENV_VARS"] == "false"
47
- ENV["INTEGRATION_TESTS"] = "live"
48
- Rake::Task["integration:test"].invoke
49
- end
50
- end
51
- end
@@ -1,24 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "knife-rackspace/version"
4
-
5
- Gem::Specification.new do |s|
6
- s.name = "knife-rackspace"
7
- s.version = Knife::Rackspace::VERSION
8
- s.has_rdoc = true
9
- s.authors = ["Adam Jacob", "Seth Chisamore", "Matt Ray", "Rackspace Developers", "JJ Asghar"]
10
- s.email = ["adam@chef.io", "schisamo@chef.io", "matt@chef.io", "jj@chef.io"]
11
- s.homepage = "https://github.com/chef/knife-rackspace"
12
- s.summary = "Rackspace Support for Chef's Knife Command"
13
- s.description = s.summary
14
- s.extra_rdoc_files = ["README.md", "LICENSE" ]
15
-
16
- s.required_ruby_version = ">= 2.2.2"
17
- s.files = `git ls-files`.split("\n")
18
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
- s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
20
- s.add_dependency "knife-windows"
21
- s.add_dependency "fog-rackspace", ">= 0.1.5"
22
- s.add_dependency "chef", ">= 12.0"
23
- s.require_paths = ["lib"]
24
- end