Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2691e20

Browse files
committed
Merge pull request GannettDigital#10 from GannettDigital/GDAES-2114-jenkins-centos7
GDAES-2114 - initial support for centos 7
2 parents 15a25ac + 8516023 commit 2691e20

File tree

6 files changed

+24
-7
lines changed

6 files changed

+24
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ python Cookbook CHANGELOG
22
=========================
33
This file is used to list changes made in each version of the python cookbook.
44

5+
v1.5.4
6+
-----
7+
- Jason Neves - Initial support for centos 7
8+
59
v1.5.3
610
------
711
- Franklin Hanson: Fix default python release version for amazon platform

attributes/default.rb

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,24 @@
4747
case platform
4848
when 'amazon'
4949
default['python']['version'] = '2.7.9-1.amzn1.gd'
50-
else
51-
default['python']['version'] = '2.7.9-1.el6.gd'
50+
when 'centos', 'redhat'
51+
if node['platform_version'].to_f >= 7
52+
default['python']['version'] = '2.7.5-18.el7_1.1'
53+
else
54+
default['python']['version'] = '2.7.9-1.el6.gd'
55+
end
5256
end
5357
when 'package'
54-
default['python']['version'] = '2.6.6-64.el6'
58+
case platform
59+
when 'centos', 'redhat'
60+
if node['platform_version'].to_f >= 7
61+
default['python']['version'] = '2.7.5-18.el7_1.1'
62+
else
63+
default['python']['version'] = '2.6.6-64.el6'
64+
end
65+
else
66+
default['python']['version'] = '2.6.6-64.el6'
67+
end
5568
when 'source'
5669
default['python']['version'] = '2.7.9'
5770
end

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 Python, pip and virtualenv. \
66
Includes LWRPs for managing Python packages with `pip` and `virtualenv` isolated Python environments.'
7-
version '1.5.3'
7+
version '1.5.4'
88

99
depends 'build-essential'
1010
depends 'yum-epel'

test/integration/default/serverspec/pip_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
describe command('/usr/local/bin/pip show pip') do
1414
its(:stdout) { should contain('Name: pip') }
15-
its(:stdout) { should contain('Version: 7.1.0') }
15+
its(:stdout) { should contain('Version: 7.1.2') }
1616
end

test/integration/package/serverspec/pip_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020

2121
describe command("#{pip_binary} show pip") do
2222
its(:stdout) { should contain('Name: pip') }
23-
its(:stdout) { should contain('Version: 7.1.0') }
23+
its(:stdout) { should contain('Version: 7.1.2') }
2424
end

test/integration/source/serverspec/pip_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
describe command('/usr/local/bin/pip show pip') do
1414
its(:stdout) { should contain('Name: pip') }
15-
its(:stdout) { should contain('Version: 7.1.0') }
15+
its(:stdout) { should contain('Version: 7.1.2') }
1616
end

0 commit comments

Comments
 (0)