bosh_aws_cpi 1.2579.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/bin/aws_cpi +28 -0
- data/lib/cloud/aws/availability_zone_selector.rb +5 -7
- data/lib/cloud/aws/cloud.rb +203 -85
- data/lib/cloud/aws/helpers.rb +21 -3
- data/lib/cloud/aws/instance.rb +90 -0
- data/lib/cloud/aws/instance_manager.rb +274 -175
- data/lib/cloud/aws/instances_create_presenter.rb +29 -0
- data/lib/cloud/aws/resource_wait.rb +29 -14
- data/lib/cloud/aws/spot_manager.rb +129 -0
- data/lib/cloud/aws/stemcell_creator.rb +42 -16
- data/lib/cloud/aws/volume_properties.rb +44 -0
- data/lib/cloud/aws/volumes_create_presenter.rb +22 -0
- data/lib/cloud/aws.rb +5 -1
- data/scripts/stemcell-copy.sh +2 -2
- data/scripts/vendor_gems +5 -0
- metadata +34 -47
- data/README.md +0 -109
- data/lib/cloud/aws/version.rb +0 -5
data/README.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
# BOSH AWS Cloud Provider Interface
|
|
2
|
-
Copyright (c) 2009-2012 VMware, Inc.
|
|
3
|
-
|
|
4
|
-
For online documentation see: http://rubydoc.info/gems/bosh_aws_cpi/
|
|
5
|
-
|
|
6
|
-
## Options
|
|
7
|
-
|
|
8
|
-
These options are passed to the AWS CPI when it is instantiated.
|
|
9
|
-
|
|
10
|
-
### AWS options
|
|
11
|
-
|
|
12
|
-
* `access_key_id` (required)
|
|
13
|
-
AWS IAM user access key
|
|
14
|
-
* `secret_access_key` (required)
|
|
15
|
-
AWS IAM secret access key
|
|
16
|
-
* `default_key_name` (required)
|
|
17
|
-
default AWS ssh key name to assign to created virtual machines
|
|
18
|
-
* `default_security_groups` (required)
|
|
19
|
-
list of AWS security group to assign to created virtual machines
|
|
20
|
-
* `ec2_private_key` (required)
|
|
21
|
-
local path to the ssh private key, must match `default_key_name`
|
|
22
|
-
* `region` (required)
|
|
23
|
-
EC2 region
|
|
24
|
-
* `ec2_endpoint` (optional)
|
|
25
|
-
URL of the EC2 endpoint to connect to, defaults to the endpoint corresponding to the selected region,
|
|
26
|
-
or `default_ec2_endpoint` if no region has been selected
|
|
27
|
-
* `elb_endpoint` (optional)
|
|
28
|
-
URL of the ELB endpoint to connect to, default to the endpoint corresponding to the selected region,
|
|
29
|
-
or `default_elb_endpoint` if no region has been selected
|
|
30
|
-
* `max_retries` (optional)
|
|
31
|
-
maximum number of time to retry an AWS API call, defaults to `DEFAULT_MAX_RETRIES`
|
|
32
|
-
|
|
33
|
-
### Registry options
|
|
34
|
-
|
|
35
|
-
The registry options are passed to the AWS CPI by the BOSH director based on the settings in `director.yml`, but can be
|
|
36
|
-
overridden if needed.
|
|
37
|
-
|
|
38
|
-
* `endpoint` (required)
|
|
39
|
-
registry URL
|
|
40
|
-
* `user` (required)
|
|
41
|
-
registry user
|
|
42
|
-
* `password` (required)
|
|
43
|
-
registry password
|
|
44
|
-
|
|
45
|
-
### Agent options
|
|
46
|
-
|
|
47
|
-
Agent options are passed to the AWS CPI by the BOSH director based on the settings in `director.yml`, but can be
|
|
48
|
-
overridden if needed.
|
|
49
|
-
|
|
50
|
-
### Resource pool options
|
|
51
|
-
|
|
52
|
-
These options are specified under `cloud_options` in the `resource_pools` section of a BOSH deployment manifest.
|
|
53
|
-
|
|
54
|
-
* `availability_zone` (optional)
|
|
55
|
-
the EC2 availability zone the VMs should be created in
|
|
56
|
-
* `instance_type` (required)
|
|
57
|
-
which [type of instance](http://aws.amazon.com/ec2/instance-types/) the VMs should belong to
|
|
58
|
-
* `spot_bid_price` (optional)
|
|
59
|
-
the [AWS spot instance](http://aws.amazon.com/ec2/purchasing-options/spot-instances/) bid price to use. When specified spot instances are started rather than on demand instances. _NB: this will dramatically slow down resource pool creation._
|
|
60
|
-
|
|
61
|
-
### Network options
|
|
62
|
-
|
|
63
|
-
These options are specified under `cloud_options` in the `networks` section of a BOSH deployment manifest.
|
|
64
|
-
|
|
65
|
-
* `type` (required)
|
|
66
|
-
can be either `dynamic` for a DHCP assigned IP by AWS, or `vip` to use an Elastic IP (which needs to be already
|
|
67
|
-
allocated)
|
|
68
|
-
|
|
69
|
-
## Example
|
|
70
|
-
|
|
71
|
-
This is a sample of how AWS specific properties are used in a BOSH deployment manifest:
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
name: sample
|
|
75
|
-
director_uuid: 38ce80c3-e9e9-4aac-ba61-97c676631b91
|
|
76
|
-
|
|
77
|
-
...
|
|
78
|
-
|
|
79
|
-
networks:
|
|
80
|
-
- name: nginx_network
|
|
81
|
-
type: vip
|
|
82
|
-
cloud_properties: {}
|
|
83
|
-
- name: default
|
|
84
|
-
type: dynamic
|
|
85
|
-
cloud_properties:
|
|
86
|
-
security_groups:
|
|
87
|
-
- default
|
|
88
|
-
|
|
89
|
-
...
|
|
90
|
-
|
|
91
|
-
resource_pools:
|
|
92
|
-
- name: common
|
|
93
|
-
network: default
|
|
94
|
-
size: 3
|
|
95
|
-
stemcell:
|
|
96
|
-
name: bosh-aws-xen-ubuntu
|
|
97
|
-
version: latest
|
|
98
|
-
cloud_properties:
|
|
99
|
-
instance_type: m1.small
|
|
100
|
-
|
|
101
|
-
...
|
|
102
|
-
|
|
103
|
-
properties:
|
|
104
|
-
aws:
|
|
105
|
-
access_key_id: AKIAIYJWVDUP4KRWBESQ
|
|
106
|
-
secret_access_key: EVGFswlmOvA33ZrU1ViFEtXC5Sugc19yPzokeWRf
|
|
107
|
-
default_key_name: bosh
|
|
108
|
-
default_security_groups: ["bosh"]
|
|
109
|
-
ec2_private_key: /home/bosh/.ssh/bosh
|