Skip to content

Commit 8ef7cb0

Browse files
authored
Merge pull request #12 from tomharvey/issue_9
Issue 9
2 parents 6626f08 + 037e7db commit 8ef7cb0

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The following platforms are supported by this cookbook.
1919

2020
Attributes
2121
----------
22-
Customize the attributes to set ruby version requirements of AWS aws-codedeploy-agent (currently 2.0.0-p645)
22+
Customize the version of aws-codedeploy-agent to be installed and the version of the ruby and aws-sdk-core dependencies
2323

2424
#### aws-codedeploy-agent::default
2525

@@ -36,6 +36,18 @@ Customize the attributes to set ruby version requirements of AWS aws-codedeploy-
3636
<td>Set the default ruby version of code deploy</td>
3737
<td><tt>2.1.5</tt></td>
3838
</tr>
39+
<tr>
40+
<td><tt>node['aws-codedeploy-agent']['aws_sdk_core-version']</tt></td>
41+
<td>string</td>
42+
<td>Set the version of aws-sdk-core gem. See <a href="https://rubygems.org/gems/aws-sdk-core/versions/2.3.17">rubygems for alternate release versions.</a></td>
43+
<td><tt>2.6.11</tt></td>
44+
</tr>
45+
<tr>
46+
<td><tt>node['aws-codedeploy-agent']['aws_codedeploy_agent-version']</tt></td>
47+
<td>string</td>
48+
<td>Set the version of the code deploy agent to be installed. Tracks master, other options include &quot;v1.0-1011&quot; or see <a href="https://github.com/aws/aws-codedeploy-agent/releases">the release archive for available, tagged versions</a> </td>
49+
<td><tt>master</tt></td>
50+
</tr>
3951
</table>
4052

4153

attributes/default.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
default['aws-codedeploy-agent']['rbenv_ruby-version'] = '2.1.5'
2+
default['aws-codedeploy-agent']['aws_sdk_core-version'] = '2.6.11'
3+
default['aws-codedeploy-agent']['aws_codedeploy_agent-version'] = 'v1.0-1045'

definitions/download_installer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
include_recipe 'cloudcli'
88

99
ark 'download-codedeploy' do
10-
url 'https://github.com/aws/aws-codedeploy-agent/archive/master.zip'
10+
url "https://github.com/aws/aws-codedeploy-agent/archive/#{node['aws-codedeploy-agent']['aws_codedeploy_agent-version']}.zip"
1111
path '/opt'
1212
action :put
1313
end
@@ -42,7 +42,7 @@
4242

4343
rbenv_gem 'aws-sdk-core' do
4444
rbenv_version node['aws-codedeploy-agent']['rbenv_ruby-version']
45-
version '2.3.17'
45+
version node['aws-codedeploy-agent']['aws_sdk_core-version']
4646
end
4747

4848
link '/usr/bin/ruby2.0' do

definitions/manual_installer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
include_recipe 'cloudcli'
88

99
ark 'download-codedeploy' do
10-
url 'https://github.com/aws/aws-codedeploy-agent/archive/master.zip'
10+
url "https://github.com/aws/aws-codedeploy-agent/archive/#{node['aws-codedeploy-agent']['aws_codedeploy_agent-version']}.zip"
1111
path '/opt'
1212
action :put
1313
end
@@ -37,7 +37,7 @@
3737

3838
rbenv_gem 'aws-sdk-core' do
3939
rbenv_version node['aws-codedeploy-agent']['rbenv_ruby-version']
40-
version '2.3.17'
40+
version node['aws-codedeploy-agent']['aws_sdk_core-version']
4141
end
4242

4343
link '/usr/bin/ruby2.0' do

metadata.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
license 'Apache 2.0'
55
description 'Installs/Configures aws-codedeploy-agent'
66
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7-
version '0.6.0'
7+
version '0.7.0'
88

99
supports 'ubuntu'
1010
supports 'centos'

0 commit comments

Comments
 (0)