Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

jagregory/sinopia-ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sinopia NPM registry

Setup and configure the Sinopia NPM registry.

Requirements

NodeJS is required, tested with nodesource.node.

Install

ansible-galaxy install jagregory.sinopia

Role Variables

sinopia_version: The version of Sinopia to install (default: 1.2.2)

sinopia_config: The Sinopia configuration directory (default: /etc/sinopia)

sinopia_storage: Data storage location for Sinopia (default: /var/sinopia)

sinopia_host: The host which Sinopia will listen on (default: localhost)

sinopia_port: Port on which Sinopia will listen (default: 4873)

sinopia_manage_users: Allow Ansible to manage the Sinopia users through the sinopia_htpasswd setting (default: no)

sinopia_max_users: Number of users allowed to register (default: .inf)

sinopia_url_prefix: Prefix for urls if it differs from the host.

sinopia_htpasswd: The htpasswd file which Sinopia uses to store users. This key can either be the string contents of the htpasswd file, or key/value pairs of username/password. To manage Sinopia users with this setting, make sure sinopia_manage_users is set to yes.

user1: {SHA}b12edasfa...
user2: {SHA}b12edasfa...

sinopia_user: The Linux user and group which Sinopia will run under (default: sinopia)

sinopia_uplinks: The remote NPM registries to link to (default: public npm)

- name: npmjs
  url: https://registry.npmjs.org/

sinopia_packages: List of packages patterns for managing access (default: authenticated publish, anonymous access)

- name: '*'
  access: '$anonymous'
  publish: '$authenticated'

Vagrant

To launch a local Sinopia exposed on port 4873 run:

ansible-galaxy install -r requirements.txt
vagrant up

About

Ansible role for the Sinopia NPM registry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •