commit | 3d3135213e561baba5c9ead5273a4dd5a67a9c96 | [log] [tgz] |
---|---|---|
author | Matt Chu <matt.chu@gmail.com> | Sun Apr 20 20:53:28 2014 -0700 |
committer | Matt Chu <matt.chu@gmail.com> | Sun Apr 20 21:43:25 2014 -0700 |
tree | 972727074367010f2e7af04713e5c7675272e54d | |
parent | ed17ef1821609e49df8c79e7ebbb93a4ddacc9c9 [diff] |
remaining cleanup, cookbook rename
Chef cookbook for installing Continuum Analytic's Anaconda: "completely free Python distribution for large-scale data processing, predictive analytics, and scientific computing".
This also serves as a live example of the most up-to-date best practices for writing, maintaining, and testing Chef cookbooks:
The Vagrantfile is written to get you an Anaconda environment with minimal effort:
$> vagrant up --provision ... $> vagrant ssh $vagrant> export PATH=/opt/anaconda/1.9.2/bin:${PATH} $vagrant> conda --version conda 3.4.1
To use it in a cookbook:
include_recipe 'anaconda::default'
This cookbook only has one recipe: anaconda::default
. Include it in your runlist, and it will install the package as well as any necessary dependencies.
The following are user-configurable attributes. Check attributes/default.rb for default values.
anaconda
version
: the version to installflavor
: either x86
(32-bit) or x86_64
(64-bit)install_root
: the parent directory of all anaconda installs. note that individual installs go into #{install_root}/#{version}
accept_license
: must be explicitly set to the string yes
; any other value will reject the license.owner
: the user who owns the installgroup
: the group who owns the installRun the full test suite:
# this will take a really long time $> script/cibuild ... # check the final result; bash return codes: 0 is good, anything else is not $> echo $?
Run just the chefspecs:
$> rspec
Run just the test kitchen serverspec integration tests:
# this is what takes so long: every platform and version is fully built in vagrant $> kitchen verify
Check the style with Foodcritic:
$> foodcritic
Standard stuff:
git tag
'edIssues should be opened in the Github issue tracker
suggests
, supports
, etcAuthor:: Matt Chu (matt.chu@gmail.com)