Skip to content

Commit 92c4503

Browse files
committed
Set the aws-codedeploy-agent version through an attribute defaults to master
1 parent 0c94000 commit 92c4503

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
default['aws-codedeploy-agent']['rbenv_ruby-version'] = '2.1.5'
22
default['aws-codedeploy-agent']['aws_sdk_core-version'] = '2.6.11'
3+
node['aws-codedeploy-agent']['aws_codedeploy_agent-version'] = 'master'

definitions/download_installer.rb

Lines changed: 1 addition & 1 deletion
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

definitions/manual_installer.rb

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)