beaker-aws 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +42 -0
- data/Rakefile +31 -0
- data/beaker-aws.gemspec +4 -2
- data/ec2.md +13 -0
- data/lib/beaker/hypervisor/aws_sdk.rb +271 -201
- data/lib/beaker-aws/version.rb +1 -1
- data/spec/beaker/hypervisor/aws_sdk_spec.rb +381 -272
- metadata +67 -32
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWViMzI5MTIxMDRmZDk0NGE3Y2NjNDJmMjY2NzY5MDI0MWEwZmJlMA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6b4745f452de2d148f3fec8898abd872aba8ee8c
|
4
|
+
data.tar.gz: c6c1d60d17e1f2e0038646c2b6647aca8a95313c
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YTAwODg5ODI1ZjIxNTI3MDgyYjRlMWIyNzFjMTM4ZDIyNGJkNGFkMDcyYTVh
|
11
|
-
MjljZGMzNDJkNTg5NmQ2YjYyZTY5MWI5NzYwMDkwMWQ2NGU0NjY=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
YzVmOGUzOWQ3NTY2ODBkN2I4M2QwNDQ5NGRhYWYyNmQ2MjNiYjYyYWYyNjg3
|
14
|
-
YmFiNDA2ZmFjMzk0YThmZGU3OTExNTljY2MxODQ5OTAwYWMxZGNkNzdhMWE2
|
15
|
-
ZDIxMDZkNjg4NzZjNTkxNzE3NDAwMTlkYmMwYTRlMWI1YjI4ZGI=
|
6
|
+
metadata.gz: df37c8ff2640e9707a8d7cfc2f2c3d8e83aed44147ac404d9f5fdffeeb3e7ec22cbe1a642b0f39848de534a70d23d0732fa43b84974798e5f5c2b1aa38f89cfb
|
7
|
+
data.tar.gz: 3584601c4b8f4b6fec30651816202628681a0d3616c480e68af91f16df1be68daca80ffe56cf29c1284098dcb94e44ad16fe5bdee7b7280eed5368480ee91003
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
# Change Log
|
2
|
+
|
3
|
+
## [0.5.0](https://github.com/puppetlabs/beaker-aws/tree/0.5.0) (2018-06-13)
|
4
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-aws/compare/0.4.0...0.5.0)
|
5
|
+
|
6
|
+
**Merged pull requests:**
|
7
|
+
|
8
|
+
- \(BKR-1464\) Rewrite to use AWS SDK v3 [\#10](https://github.com/puppetlabs/beaker-aws/pull/10) ([rodjek](https://github.com/rodjek))
|
9
|
+
- \(MAINT\) Bump for new release [\#9](https://github.com/puppetlabs/beaker-aws/pull/9) ([cdenneen](https://github.com/cdenneen))
|
10
|
+
- \(BKR-1199\) Updated documentation for use\_fog\_credentials [\#8](https://github.com/puppetlabs/beaker-aws/pull/8) ([cdenneen](https://github.com/cdenneen))
|
11
|
+
|
12
|
+
## [0.4.0](https://github.com/puppetlabs/beaker-aws/tree/0.4.0) (2017-12-28)
|
13
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-aws/compare/0.3.0...0.4.0)
|
14
|
+
|
15
|
+
**Merged pull requests:**
|
16
|
+
|
17
|
+
- \(bkr-1245\) beaker needs to set session id in aws configuration to enable mfa d bastion account use [\#7](https://github.com/puppetlabs/beaker-aws/pull/7) ([er0ck](https://github.com/er0ck))
|
18
|
+
- \(BKR-1244\) Set vmhostname to host.name since host\[:name\] is awlays nil [\#6](https://github.com/puppetlabs/beaker-aws/pull/6) ([samwoods1](https://github.com/samwoods1))
|
19
|
+
- \(BKR-1199\) adding condition to disable reading fog credentials [\#5](https://github.com/puppetlabs/beaker-aws/pull/5) ([cdenneen](https://github.com/cdenneen))
|
20
|
+
|
21
|
+
## [0.3.0](https://github.com/puppetlabs/beaker-aws/tree/0.3.0) (2017-08-02)
|
22
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-aws/compare/0.2.0...0.3.0)
|
23
|
+
|
24
|
+
**Merged pull requests:**
|
25
|
+
|
26
|
+
- \(maint\) Open the orchestrator port on the master node [\#3](https://github.com/puppetlabs/beaker-aws/pull/3) ([jpartlow](https://github.com/jpartlow))
|
27
|
+
|
28
|
+
## [0.2.0](https://github.com/puppetlabs/beaker-aws/tree/0.2.0) (2017-08-01)
|
29
|
+
[Full Changelog](https://github.com/puppetlabs/beaker-aws/compare/0.1.0...0.2.0)
|
30
|
+
|
31
|
+
**Merged pull requests:**
|
32
|
+
|
33
|
+
- \(PE-21788\) Open port 8170 on ec2 masters [\#2](https://github.com/puppetlabs/beaker-aws/pull/2) ([jpartlow](https://github.com/jpartlow))
|
34
|
+
|
35
|
+
## [0.1.0](https://github.com/puppetlabs/beaker-aws/tree/0.1.0) (2017-07-21)
|
36
|
+
**Merged pull requests:**
|
37
|
+
|
38
|
+
- \(MAINT\) Use AWS's Ubuntu 16.04 AMI [\#1](https://github.com/puppetlabs/beaker-aws/pull/1) ([rishijavia](https://github.com/rishijavia))
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
data/Rakefile
CHANGED
@@ -1,4 +1,35 @@
|
|
1
1
|
require 'rspec/core/rake_task'
|
2
|
+
require 'github_changelog_generator/task'
|
3
|
+
|
4
|
+
namespace :changelog do
|
5
|
+
# Gets the github token needed for github_changelog_generator
|
6
|
+
# - from env var CHANGELOG_GITHUB_TOKEN
|
7
|
+
# - if unset, will be limited in number of queries allowed to github
|
8
|
+
# - setup a token at https://github.com/settings/tokens
|
9
|
+
def github_token
|
10
|
+
ENV["CHANGELOG_GITHUB_TOKEN"]
|
11
|
+
end
|
12
|
+
|
13
|
+
GitHubChangelogGenerator::RakeTask.new :full do |config|
|
14
|
+
config.token = github_token
|
15
|
+
config.user = "puppetlabs"
|
16
|
+
config.project = "beaker-aws"
|
17
|
+
# Sets next version in the changelog
|
18
|
+
# - if unset, newest changes will be listed as 'unreleased'
|
19
|
+
# - setting this value directly sets section title on newest changes
|
20
|
+
if !ENV['NEW_VERSION'].nil?
|
21
|
+
config.future_release = ENV["NEW_VERSION"]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
GitHubChangelogGenerator::RakeTask.new :unreleased do |config|
|
26
|
+
config.token = github_token
|
27
|
+
config.user = "puppetlabs"
|
28
|
+
config.project = "beaker-aws"
|
29
|
+
config.unreleased_only = true
|
30
|
+
config.output = "" # blank signals clg to print to output rather than a file
|
31
|
+
end
|
32
|
+
end
|
2
33
|
|
3
34
|
namespace :test do
|
4
35
|
|
data/beaker-aws.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
# Testing dependencies
|
21
21
|
s.add_development_dependency 'rspec', '~> 3.0'
|
22
22
|
s.add_development_dependency 'rspec-its'
|
23
|
-
s.add_development_dependency 'fakefs', '~> 0.6'
|
23
|
+
s.add_development_dependency 'fakefs', '~> 0.6', '<= 0.13.3'
|
24
24
|
s.add_development_dependency 'rake', '~> 10.1'
|
25
25
|
s.add_development_dependency 'simplecov'
|
26
26
|
s.add_development_dependency 'pry', '~> 0.10'
|
@@ -29,9 +29,11 @@ Gem::Specification.new do |s|
|
|
29
29
|
s.add_development_dependency 'yard'
|
30
30
|
s.add_development_dependency 'markdown'
|
31
31
|
s.add_development_dependency 'thin'
|
32
|
+
s.add_development_dependency 'github_changelog_generator'
|
32
33
|
|
33
34
|
# Run time dependencies
|
34
35
|
s.add_runtime_dependency 'stringify-hash', '~> 0.0.0'
|
35
|
-
s.add_runtime_dependency 'aws-sdk-
|
36
|
+
s.add_runtime_dependency 'aws-sdk-ec2', '~> 1.35'
|
37
|
+
s.add_runtime_dependency 'aws-partitions', '~> 1.91'
|
36
38
|
end
|
37
39
|
|
data/ec2.md
CHANGED
@@ -34,6 +34,16 @@ hypervisor: ec2
|
|
34
34
|
nfs_server: none
|
35
35
|
consoleport: 443
|
36
36
|
|
37
|
+
### Using role
|
38
|
+
*(If you'd like to use instance role you can disable reading fog credentials)*
|
39
|
+
|
40
|
+
#### No fog file needed ####
|
41
|
+
#### Update CONFIG section of ec2 hosts file ####
|
42
|
+
CONFIG:
|
43
|
+
use_fog_credentials: false
|
44
|
+
|
45
|
+
|
46
|
+
|
37
47
|
Currently, there is limited support EC2 nodes; we are adding support for new platforms shortly.
|
38
48
|
|
39
49
|
AMIs are built for PE based installs on:
|
@@ -45,6 +55,7 @@ Beaker will automagically provision EC2 nodes, provided the 'platform:' section
|
|
45
55
|
|
46
56
|
### Supported EC2 Variables ###
|
47
57
|
These variables can either be set per-host or globally.
|
58
|
+
|
48
59
|
####`additional_ports`####
|
49
60
|
Ports to be opened on the instance, in addition to those opened by Beaker to support Puppet functionality. Can be a single value or an array. Example valid values: 1001, [1001], [1001, 1002].
|
50
61
|
|
@@ -67,6 +78,7 @@ If defined the instace will be crated in one of the provided array of EC2 subnet
|
|
67
78
|
Used to look up the pre-defined AMI information in `config/image_templates/ec2.yaml`. Will default to `platform` if not defined.
|
68
79
|
#####Example ec2.yaml#####
|
69
80
|
In this example the `vmname` would be `puppetlabs-centos-5-x86-64-west`. Looking up the `vmname` in the `ec2.yaml` file provides an AMI ID by type (`pe` or `foss`) and the region.
|
81
|
+
|
70
82
|
```
|
71
83
|
AMI:
|
72
84
|
puppetlabs-centos-5-x86-64-west:
|
@@ -74,6 +86,7 @@ AMI:
|
|
74
86
|
:pe: ami-pl-12345
|
75
87
|
:region: us-west-2
|
76
88
|
```
|
89
|
+
|
77
90
|
####`volume_size`####
|
78
91
|
Size of the [EBS Volume](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSVolumes.html) that will be attached to the EC2 instance.
|
79
92
|
####`vpc_id`####
|