Forge Home

userprefs

Simple user userprefs management

42,650 downloads

1,254 latest version

2.5 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 2.0.0 (latest)
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.11
  • 1.0.10
  • 1.0.9
  • 1.0.8
  • 1.0.7
  • 1.0.6
  • 1.0.5
  • 1.0.4
  • 1.0.3 (deleted)
  • 1.0.2
  • 1.0.1
  • 1.0.0
  • 0.0.3
  • 0.0.2
  • 0.0.1
released Sep 20th 2016
This version is compatible with:
  • Puppet Enterprise 3.3.x
  • Puppet 3.x

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'pltraining-userprefs', '1.0.17'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add pltraining-userprefs
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install pltraining-userprefs --version 1.0.17

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

pltraining/userprefs — version 1.0.17 Sep 20th 2016

userprefs

A simple module that allows users to choose their default editor and default shell.

About

This will ensure that the proper packages are installed, the configuration files that enable syntax highlighting are written, helpful shell aliases are enabled, and the default editor and shell are set.

Example usage:

Customizing the environment:


    class { 'userprefs':
      shell  => 'zsh',  # allowed values: bash/zsh
      editor => 'vim',  #   Linux: emacs/nano/vim
                          Windows: gvim/atom/sublimetext/npp
    }

Classifying a node with classroom defaults:


    include userprefs::defaults

Classifying a node with vim defaults:


    class { 'userprefs::vim':
      monochrome  => true,  # this turns off syntax highlighting, allowed values: true/false
      line_number => false, # this turns off line numbering, allowed values: true/false
    }

Contact

ben.ford@puppetlabs.com
js@puppetlabs.com
education@puppetlabs.com