Puppet module for administering Micro Focus Visual Cobol for PeopleSoft systems

Andy Dorfman



1,417 latest version

5.0 quality score

Version information

  • 1.1.0 (latest)
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 0.5.0
  • 0.4.0
  • 0.3.1
released Feb 6th 2020
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • windows

Start using this module


umaritimus/pscobol — version 1.1.0 Feb 6th 2020


Table of Contents

  1. Description
  2. Setup - The basics of getting started with pscobol
  3. Usage - Configuration options and additional functionality
  4. Limitations - OS compatibility, etc.
  5. Development - Guide for contributing to the module
  6. Changelog


This module adds resources capable of administering Micro Focus Visual Cobol installation, including installation and removal of Micro Focus Visual Cobol, installation of patches and registration of licenses. It also provides capability to compile PeopleSoft Cobol.


Setup Requirements

To use pscobol module on windows, powershell provider is required, as much of the code is written in powershell. Depending on the version of your Windows operating system, you may be required to download and install, the following modules from the forge:

  • "puppetlabs/powershell"
  • "puppetlabs/pwshlib"

Beginning with pscobol

To start using the module, simply install the to your modulepath, e.g.

puppet module install puppetlabs-powershell --modulepath <your module path>
puppet module install puppetlabs-pwshlib    --modulepath <your module path>
puppet module install umaritimus-pscobol    --modulepath <your module path>


Here's a complete example of installing Micro Focus Visual Cobol Built Tools, updating it with the patch and registering the license.

We have the installer, patch and license file download to a \\share directory on windows. We would like to install Micro Focus Visual Cobol Built Tools into d:\cobol location.

We can register all these parameters in our hiera by adding these values into a yaml file within the data hierarchy:

pscobol::ensure:        'present'
pscobol::installdir:    'd:/cobol'
pscobol::package:       '//share/vcbt_40.exe'
pscobol::patches:       ['//share/vcbt_40_pu04_196223.exe']
pscobol::license:       '//share/PS-VC-WIN-VSTUDIO.mflic'

The module could also be called from a command line. Here's the example of compiling cobol in PS_HOME and PS_APP_HOME. The PS_APP_HOME is already defined in the environment, but we would like to use a compiled routine from a newly upgraded PS_HOME. The Visual Cobol compiler is installed in d:\cobol in this example:

puppet apply --modulepath <your module path> -e "class { 'pscobol' : ensure => 'present', targets => ['PS_HOME','PS_APP_HOME'] , installdir => 'd:/cobol', ps_home => 'd:/oracle/product/psft/pt/8.57.12' , }"


  • The paths are strings, written in the Unix path format.
  • Parameters ensure and package are required.
  • Parameters ps_home, ps_app_home and ps_cust_home are only required when overwriting predefined environment variables.
  • If patches is not specified, no patches will be applied. It's an array, so multiple patches could be specified.
  • If license is not specified, no licenses will be registered in the license manager.
  • If installdir is not specified, the installation target will default to the Program Files location,e.g. 'C:\Program Files (x86)\Micro Focus\Visual COBOL'

To uninstall Micro Focus Visual Cobol, simply replace the ensure value of 'present' by 'absent'

For additional usage, please see /examples/ in the source repository


  • Module pscobol was only tested for deployment of Micro Focus Visual Cobol Built Tools, but should work for others...
  • It is known to work on Microsoft Windows 2019 server platform, but should work on Microsoft Windows 2016 and Mirosoft Windows 10
  • This module was only tested on Puppet 5.5.*


  • Module pscobol was developed using PDK 1.15 on Windows OS.
  • It's released under an open MIT license. So, please feel free ot use it freely.
  • Please do send the Pull Requests to add functionality for other platforms.


For updates please see the changelog