/anaconda-cookbook

Chef cookbook for Anaconda

Primary LanguageRuby

conda cookbook

This cookbook installs conda via the miniconda installer and lets you set up / update environments.

Attributes

Key Type Description Default
['conda']['path'] /path/to/where/you/want install directory for all conda files /opt/conda

Usage

conda::default

Include conda in your node's run_list:

{
  "run_list": [
    "recipe[conda::default]"
  ]
}

This will install conda to the specified path.

conda_environment resource

To install environments, you can use the conda_environment resource in another recipe:

conda_environment "new_env" do
  path Pathname.new("/root/environment.yml")
  action :create
end

path attribute points to the location of the environment.yml file. Actions are one of:

  • :create (for a new environment)
  • :upgrade (for environments that already exist)
  • :delete (to delete an environment)