All Projects → moviedo → ansible-role-nvm

moviedo / ansible-role-nvm

Licence: MIT License
Ansible role for using NVM, Node Version Manager, locally.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ansible-role-nvm

front
Frontmatter
Stars: ✭ 21 (+40%)
Mutual labels:  yaml
context-menu-maker
Make Windows Explorer context menus without COM
Stars: ✭ 23 (+53.33%)
Mutual labels:  yaml
logya
Logya is a static site generator written in Python designed to be easy to use and flexible.
Stars: ✭ 16 (+6.67%)
Mutual labels:  yaml
yaml-test-suite
Comprehensive, language independent Test Suite for YAML
Stars: ✭ 93 (+520%)
Mutual labels:  yaml
yaml-frontmatter-loader
[DEPRECATED] Yaml frontmatter loader
Stars: ✭ 12 (-20%)
Mutual labels:  yaml
config-loader
Simple C++ Config Loader Framework(Serialization & Reflection)
Stars: ✭ 87 (+480%)
Mutual labels:  yaml
pyyaml-include
yaml include other yaml
Stars: ✭ 49 (+226.67%)
Mutual labels:  yaml
theme-scorphish
Compact. Sufficient. PWD, Ruby+RVM, Python+VENV, Git status, Rust, NodeJS.
Stars: ✭ 33 (+120%)
Mutual labels:  nvm
refmt
Reformat HCL ⇄ JSON ⇄ YAML.
Stars: ✭ 19 (+26.67%)
Mutual labels:  yaml
dockerfiles
Dockerfile & kubernetes Yaml Templates
Stars: ✭ 44 (+193.33%)
Mutual labels:  yaml
carvel-simple-app-on-kubernetes
K8s simple Go app example deployed with k14s tools
Stars: ✭ 23 (+53.33%)
Mutual labels:  yaml
k8s-1abel
Kubernetes YAML/JSON survival kit
Stars: ✭ 21 (+40%)
Mutual labels:  yaml
dahgan
A YAML Parser
Stars: ✭ 14 (-6.67%)
Mutual labels:  yaml
conduit
Simplified Data Exchange for HPC Simulations
Stars: ✭ 114 (+660%)
Mutual labels:  yaml
e9-cloudformation-docker-ecs
Docker on Amazon ECS with AWS Fargate using CloudFormation. https://devteds.com/episodes/9-docker-on-amazon-ecs-using-cloudformation
Stars: ✭ 78 (+420%)
Mutual labels:  yaml
k8s-opa-boilerplate
Boilerplate example of managing OPA with kustomize
Stars: ✭ 14 (-6.67%)
Mutual labels:  yaml
yipee
An opensource version of the Yipee.io editor.
Stars: ✭ 20 (+33.33%)
Mutual labels:  yaml
yj
Command line tool that converts YAML to JSON
Stars: ✭ 62 (+313.33%)
Mutual labels:  yaml
ubuntu-win-bootstrap
DEPRECIATED! Use "linux-comfy-chair" instead. A very simple bootstrap script to install some development tools to the Windows 10 Ubuntu Bash system - Ruby, Perl, Python, Node, Sublime Text and more!
Stars: ✭ 27 (+80%)
Mutual labels:  nvm
python-yamlable
A thin wrapper of PyYaml to convert Python objects to YAML and back
Stars: ✭ 28 (+86.67%)
Mutual labels:  yaml

Ansible Role: NVM

Join the chat at https://gitter.im/moviedo/ansible-role-nvm Build Status

This ansible role is used to install NVM, Node Version Manager, locally within a linux box.

Requirements

This role requires git, curl, build-essential, libssl-dev. Requirements are installed by this role.

Role Variables

Required Variables

  • nvm_user This should be the remote user that will use NVM. This value defaults to 'vagrant'.

  • nvm_group This optional variable is the remote group that will be used to setup permissions. If undefined, will fallback to nvm_user.

Optional Variables

  • nvm_version: "v0.35.2" NVM version to install on remote machine, it defaults to v0.35.2. You must specify a distinct NVM version, do NOT use wild cards (i.e. v0.24.x).
  • nvm_node_version: "12.14.1" Node version to install on the remote machine, it defaults to 12.14.1. You must specify a distinct node version, do NOT use wild cards (i.e. 12.14.x).

Dependencies

No dependencies.

Example Playbook

- hosts: all
  roles:
  - role: moviedo.nvm
      nvm_user: vagrant
      nvm_version: "v0.35.2"
      nvm_node_version: "12.14.1"

Other Information

This role will also run nvm alias default on the specified nvm_node_version to set a default Node version to be used in any new shell.

Contributing

Information on how to contribute to the project.

Setup

How to setup the project for local development.

  1. Install docker
  2. Install project dependencies with pipenv and run pipenv install.

Workflow

  1. Fork the repo.

  2. Make your desired changes.

  3. Write your tests in the molecule/default/test/test_default.py file or add test in a different file if needed.

  4. Test said desired changes using molecule.

    Molecule is used to test again different OS platforms(i.e. ubuntu, centos, etc).

  5. Test against multiple ansible versions with tox.

  6. Make a merge request to the project.

Check the testing section for more info on commands to run for testing locally.

Testing Locally

Information on what commands to run in order to test locally.

Molecule Cammnads

  1. Run the molecule test command to test the all scenarios.
  2. Run the molecule verify to test against the testinfra test. Used to verify that the role makes the desired changes against the docker images.
Tox Commands

Run tox --parallel auto to test changes against the different ansible version that this role supports. Warning: taking a few minutes to run all tests.

License

MIT

Author Information

Mauro Oviedo (aka moviedo)

Contributors

sylvainmetayer

jminuscula

alonisser

senorsmile

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].