-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdefault.rb
100 lines (96 loc) · 3.76 KB
/
default.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# for miniconda this must be 'latest'
default['anaconda']['version'] = '5.0.1'
# the version of python: either 'python2' or 'python3'
default['anaconda']['python'] = 'python2'
# the architecture: nil to autodetect, or either 'x86' or 'x86_64'
default['anaconda']['flavor'] = nil
# either 'anaconda' or 'miniconda'
default['anaconda']['install_type'] = 'anaconda'
# add system-wide path to profile.d?
default['anaconda']['system_path'] = false
default['anaconda']['installer_info'] = {
'anaconda' => {
'2.2.0' => {
'python2' => {
'uri_prefix' => 'https://repo.continuum.io',
'x86' => '6437d5b08a19c3501f2f5dc3ae1ae16f91adf6bed0f067ef0806a9911b1bef15',
'x86_64' => 'ca2582cb2188073b0f348ad42207211a2b85c10b244265b5b27bab04481b88a2',
},
'python3' => {
'uri_prefix' => 'https://repo.continuum.io',
'x86' => '223655cd256aa912dfc83ab24570e47bb3808bc3b0c6bd21b5db0fcf2750883e',
'x86_64' => '4aac68743e7706adb93f042f970373a6e7e087dbf4b02ac467c94ca4ce33d2d1',
},
},
'2.3.0' => {
'python2' => {
'uri_prefix' => 'https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com',
'x86' => '73fdbbb3e38207ed18e5059f71676d18d48fdccbc455a1272eb45a60376cd818',
'x86_64' => '7c02499e9511c127d225992cfe1cd815e88fd46cd8a5b3cdf764f3fb4d8d4576',
},
'python3' => {
'uri_prefix' => 'https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com',
'x86' => '4cc10d65c303191004ada2b6d75562c8ed84e42bf9871af06440dd956077b555',
'x86_64' => '3be5410b2d9db45882c7de07c554cf4f1034becc274ec9074b23fd37a5c87a6f',
},
},
'4.4.0' => {
'python2' => {
'uri_prefix' => 'https://repo.continuum.io/archive',
'x86' => nil,
'x86_64' => nil,
},
'python3' => {
'uri_prefix' => 'https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com',
'x86' => '4cc10d65c303191004ada2b6d75562c8ed84e42bf9871af06440dd956077b555',
'x86_64' => '3be5410b2d9db45882c7de07c554cf4f1034becc274ec9074b23fd37a5c87a6f',
},
},
'5.0.1' => {
'python2' => {
'uri_prefix' => 'https://repo.continuum.io/archive',
'x86' => '88c8d698fff16af15862daca10e94a0a46380dcffda45f8d89f5fe03f6bd2528',
'x86_64' => '23c676510bc87c95184ecaeb327c0b2c88007278e0d698622e2dd8fb14d9faa4',
},
'python3' => {
'uri_prefix' => 'https://repo.continuum.io/archive',
'x86' => '991a4b656fcb0236864fbb27ff03bb7f3d98579205829b76b66f65cfa6734240',
'x86_64' => '55e4db1919f49c92d5abbf27a4be5986ae157f074bf9f8238963cd4582a4068a',
},
},
},
'miniconda' => {
'latest' => {
'python2' => {
'uri_prefix' => 'https://repo.continuum.io/miniconda',
'x86' => nil,
'x86_64' => nil,
},
'python3' => {
'uri_prefix' => 'https://repo.continuum.io/miniconda',
'x86' => nil,
'x86_64' => nil,
},
},
},
}
# specific versions are installed _under_ this directory
default['anaconda']['install_root'] = '/opt/anaconda'
default['anaconda']['accept_license'] = 'no'
default['anaconda']['package_logfile'] = nil
default['anaconda']['owner'] = 'anaconda'
default['anaconda']['group'] = 'anaconda'
default['anaconda']['home'] = "/home/#{node['anaconda']['owner']}"
default['anaconda']['notebook'] = {
# by default, listens on all interfaces; there will be a warning since
# security is disabled
'ip' => '*',
'port' => 8888,
'owner' => node['anaconda']['owner'],
'group' => node['anaconda']['group'],
'install_dir' => '/opt/jupyter/server',
# the default is to NOT set the security token, to ensure that a secure key
# is chosen and set
'use_provided_token' => false,
'token' => '',
}