GithubHelp home page GithubHelp logo

samilton / ansible-miniconda Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robinandeer/ansible-miniconda

0.0 0.0 0.0 167 KB

Ansible role to install the Miniconda Python distribution

Home Page: https://galaxy.ansible.com/list#/roles/3429

License: MIT License

ansible-miniconda's Introduction

Miniconda role for Ansible Build Status

A role for deploying and configuring miniconda and extensions on unix hosts using Ansible.

It can additionally be used as a playbook for quickly provisioning hosts.

Vagrant machines are provided to produce a boxed install of miniconda or a VM for integration testing.

Usage

Using Ansible Galaxy:

$ ansible-galaxy install robinandeer.miniconda

And add it to your play's roles:

- hosts: ...
  roles:
    - robinandeer.miniconda
    - ...

Clone this repo into your roles directory:

$ git clone https://github.com/robinandeer/ansible-miniconda.git roles/miniconda

And add it to your play's roles:

- hosts: ...
  roles:
    - miniconda
    - ...

This roles comes preloaded with multiple available defaults. You can override each one in your hosts/group vars, in your inventory, or in your play. See the annotated defaults in defaults/main.yml for help in configuration. All provided variables start with miniconda_.

You can also use the role as a playbook. You will be asked which hosts to provision, and you can further configure the play by using --extra-vars.

$ ansible-playbook -i inventory --extra-vars='{...}' main.yml

To provision a standalone miniconda box, start the boxed VM, which is a Ubuntu 12.04 box:

$ vagrant up boxed

You will find miniconda listening on the VM's $port port on address 192.168.33.20 in the private network. You can then connect to it as any user. Please note that this is highly insecure, so if you're going to publish this VM you'll want to provide actual authentication.

Run the tests by provisioning the appropriate VM:

$ vagrant up test-ubuntu-precise

At the moment, ubuntu-precise is the only test VM available.

Contributors

Credits

I took on the challenge to write my own distributable Ansible role to learn more about the tool. As such, I've taken in extensive inspiration from the following projects:

Changelog

0.6

  • Avoid re-download of installer if conda exists

0.5

  • only update conda when initially installing miniconda

0.4

  • use lininfile to add miniconda to $PATH

0.3

  • add option to specify rcfile to modify $PATH

0.2

  • add option to modify .bashrc
  • add option to add .condarc to the system

0.1

  • Initial version.

ansible-miniconda's People

Contributors

robinandeer avatar kojiwell avatar maxalbert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.