- Description
- Setup - The basics of getting started with pscobol
- Usage - Configuration options and additional functionality
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
- 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.
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"
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' , }"Note:
- The paths are strings, written in the Unix path format.
- Parameters
ensureandpackageare required.- Parameters
ps_home,ps_app_homeandps_cust_homeare only required when overwriting predefined environment variables.- If
patchesis not specified, no patches will be applied. It's an array, so multiple patches could be specified.- If
licenseis not specified, no licenses will be registered in the license manager.- If
installdiris not specified, the installation target will default to theProgram Fileslocation,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
pscobolwas only tested for deployment ofMicro Focus Visual Cobol Built Tools, but should work for others... - It is known to work on
Microsoft Windows Serverplatform, but should work onMirosoft Windows 10andMirosoft Windows 11 - This module was tested on
Puppet 8.6.*
- Module
pscobolwas developed usingPDK 3.0on 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