Forge Home


puppet module for VMware vSphere vm hardening based on official VMware vSphere Hardening Guide for vSphere 6


6,603 latest version

2.4 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

  • 0.0.4 (latest)
  • 0.0.2
  • 0.0.1
released Oct 5th 2016

Start using this module

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

Add this module to your Puppetfile:

mod 'andulla-vsphere_vm_hardening', '0.0.4'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add andulla-vsphere_vm_hardening
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install andulla-vsphere_vm_hardening --version 0.0.4

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.



andulla/vsphere_vm_hardening — version 0.0.4 Oct 5th 2016


Table of Contents

  1. Description
  2. Setup - The basics of getting started with vsphere_vm_hardening
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module


This module helps you to enforce the configure of VMware vSphere VM specific hardening advanced configurations available inside the VMware vSphere Hardening Guide for vSphere 6.


What vsphere_vm_hardening affects

This module can be used to update any advanced parameter of your virtual machines, even if they are not mentioned inside the vSphere Hardening Guide. The following is a list of advanced parameters tested with this module:

  • scsiX:Y.mode
  • isolation.bios.bbs.disable
  • floppyX.present
  • parallelX.present
  • serialX.present
  • tools.setInfo.sizeLimit
  • isolation.device.connectable.disable
  • isolation.device.edit.disable
  • tools.guestlib.enableHostInfo
  • sched.mem.pshare.salt
  • log.keepOld
  • log.rotateSize
  • RemoteDisplay.maxConnections
  • RemoteDisplay.vnc.enabled

Please take a look at the current vSphere Hardening Guide to get the description of each configuration parameter

Setup Requirements

The module requires the PuppetLabs vSphere module which is only available for Puppet Enterprise.


At a minimum, you need to include the vsphere_vm_hardening class.

class { 'vsphere_vm_hardening': }


  • virtualmachines: Array with name of the vSphere virtual machines that should be managed including the vmlocation.
  • hardening_config: A hash of all the advanced hardening configurations that should be enforced to the advanced configurations.

Example in Class:

  class {vsphere_vm_hardening:
    virtualmachines  => ["/mydatacenter/vm/myfolder/mysubfolder/myvm1", "/mydatacenter/vm/myfolder/mysubfolder2/myvm2"],
    hardening_config => { '' => 'true' , '' => 'true' },

I recommend using Hiera to specify all the parameters necessary for the vsphere_vm_hardening class

Example in Hiera:

 - /mydatacenter/vm/myfolder/mysubfolder/myvm1
 - /mydatacenter/vm/myfolder/mysubfolder/myvm2
vsphere_vm_hardening::hardening_config: 'true' 'true'


The vsphere_vm_hardening module is using the vsphere_vm resource type from the puppetlabs vsphere module


This module was tested inside a vSphere 5.5 environment. As the API used to configure the advanced parameters didn't change with vSphere 6 it should also work.


Feel free to send me pull requests if you want to update/include something else.

Release Notes/Contributors/Etc.

This is the first version of the module. Please use it with caution!