Skip to content

WATonomous/linux-directory-provisioner

Repository files navigation

Linux Directory Provisioner

Version Publish to NPM Test and Lint

Tool to provision Linux users and groups. Useful for provisioning a large number of users and groups. Much faster than ansible.builtin.user and ansible.builtin.group. Used internally at WATcloud.

Getting started

  1. Prepare a configuration file in the format specified in src/schema.mjs.
  2. Run the following command to run the provisioner:
npx @watonomous/linux-directory-provisioner@v0.0.3-alpha.24 --config=path_to_config.json

Publishing to NPM

  1. Increment the version number in package.json:
npm version prerelease --preid alpha
# or
npm version patch # or minor or major
  1. Push the new version to GitHub:
git push --atomic origin main <tag>
  1. Create a release on GitHub with the tag you just pushed.
  2. The GitHub Action pipeline will automatically publish the new version to NPM.