GithubHelp home page GithubHelp logo

luizbafilho / ansible-role-rustup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from abaez/ansible-role-rustup

0.0 2.0 0.0 24 KB

A rustup ansible provision for rust.

License: BSD 2-Clause "Simplified" License

ansible-role-rustup's Introduction

Rustup

license twitter

A rustup install with packages for rust.

Description

Too many times the packages needed on a new build would I need to essentially provision a rust install. This role's goal is to lessen the workload in getting a rust common install. Along with also offering more specific defined packages configured and ready for rust fun.

The role installs rustup with autocomplete settings enabled for the shell of choice. The packages are listed below. They are divided into two different configurations. One are the common always used packages under the common.crates list in defaults/main.yml. The second set are more specifically tuned to the Author's needs under specific in defaults/main.yml. You can find out more how to disable under Usage if you don't want the specific packages or if you want to change on the listing.

from common.crates

from specific dictionary

  • targets
    • aarch64-linux-android
    • aarch64-linux-android
    • aarch64-unknown-linux-gnu
    • arm-unknown-linux-musleabi
    • arm-unknown-linux-musleabihf
    • armv7-unknown-linux-gnueabihf
    • armv7-unknown-linux-musleabihf
    • x86_64-unknown-linux-musl
  • toolchains
    • nightly-x86_64-unknown-linux-gnu
  • crates

Role Variables

The role has 3 variables to update. Each one should be changed according to the user's needs. The defaults can be seen in defaults:

conf:

  # shell autocomplete. Should be (bash|fish|zsh)
  shell: fish

  # if you want to have the specifics installed
  specifics: true

  # if decide to use parallel or not check the link given above for the package for more information
  parallel: true

Requirements

Your only requirement is you should change the default variables listed above to the needs for your provision using the role.

Usage

Besides the role variables, with the exception of parallel, you only need to enable the role on your playbook. If you want to install your own crates, targets, or toolchains, you can simply be replacing the variables given in defaults.

For using the parallel package, you need to run the role with become enabled for privilege of enabled madvise mode for usage.

- hosts: servers
    roles:
        - abaez.rustup

Author Information

Alejandro Baez

ansible-role-rustup's People

Watchers

 avatar  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.