File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 34
34
default [ 'python' ] [ 'binary' ] = "#{ node [ 'python' ] [ 'prefix_dir' ] } /bin/python"
35
35
36
36
default [ 'python' ] [ 'url' ] = 'http://www.python.org/ftp/python'
37
- default [ 'python' ] [ 'version ' ] = '2.7.5'
37
+ default [ 'python' ] [ 'install_version ' ] = '2.7.5'
38
38
default [ 'python' ] [ 'checksum' ] = '3b477554864e616a041ee4d7cef9849751770bc7c39adaf78a94ea145c488059'
39
39
default [ 'python' ] [ 'configure_options' ] = %W{ --prefix=#{ python [ 'prefix_dir' ] } }
40
40
default [ 'python' ] [ 'make_options' ] = %W{ install }
Original file line number Diff line number Diff line change 32
32
package dev_pkg
33
33
end
34
34
35
- version = node [ 'python' ] [ 'version' ]
35
+ version = node . default [ 'python' ] [ 'version' ] ||
36
+ node . set [ 'python' ] [ 'version' ] ||
37
+ node . override [ 'python' ] [ 'version' ] ||
38
+ node [ 'python' ] [ 'install_version' ]
36
39
install_path = "#{ node [ 'python' ] [ 'prefix_dir' ] } /bin/python#{ version . split ( /(^\d +\. \d +)/ ) [ 1 ] } "
37
40
38
41
remote_file "#{ Chef ::Config [ :file_cache_path ] } /Python-#{ version } .tgz" do
65
68
not_if { ::File . exists? ( node [ 'python' ] [ 'binary' ] ) }
66
69
end
67
70
71
+ ruby_block 'set-python-version' do
72
+ block do
73
+ node . default [ 'python' ] [ 'version' ] = version
74
+ end
75
+ end
76
+
68
77
You can’t perform that action at this time.
0 commit comments