pscobol
Version information
This version is compatible with:
- Puppet Enterprise 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 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 < 8.7.0
Start using this module
Add this module to your Puppetfile:
mod 'umaritimus-pscobol', '1.2.2'
Learn more about managing modules with a PuppetfileDocumentation
pscobol
Table of Contents
- 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
Description
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
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>
Usage
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
ensure
andpackage
are required.- Parameters
ps_home
,ps_app_home
andps_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 theProgram 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
Limitations
- Module
pscobol
was only tested for deployment ofMicro Focus Visual Cobol Built Tools
, but should work for others... - It is known to work on
Microsoft Windows Server
platform, but should work onMirosoft Windows 10
andMirosoft Windows 11
- This module was tested on
Puppet 8.6.*
Development
- Module
pscobol
was developed usingPDK 3.0
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.
Changelog
For updates please see the changelog
Changelog
All notable changes to this project will be documented in this file.
Release 1.2.2
Features
- Path to the license could now be specified as a UNC location
Bugfixes
Known Issues
Release 1.2.1
Features
Bugfixes
- Updated Readme
Known Issues
Release 1.2.0
Features
- Added support for Visual Cobol 9 on Windows 2022 using Puppet 8
- Path to the license manager "lmpath" must be specified for license file installation
Bugfixes
Known Issues
- Only works on
Windows
Release 1.1.1
Features
Bugfixes
- Increased cobol installation and compilation timeouts for large environments
- Forced creation of a target symbolic link if symbolic link already exists by the same name
Known Issues
- Only works on
Windows
Release 1.1.0
Features
- Now compiles INAS cobol for PeopleSoft Campus Solutions
Note: the above has only been verified using image CS92U016 on PeopleTools 8.57.12 on Windows 2019
Bugfixes
Known Issues
- Only works on
Windows
Release 1.0.4
Features
- Fixups to code
- Additional parameter verification and error checking
Bugfixes
Known Issues
- Only works on
Windows
- Does not compile INAS cobol for PeopleSoft Campus Solutions (yet)
Release 1.0.3
Features
- Fixups to code
- Additional parameter verification and error checking
Bugfixes
Known Issues
- Only works on
Windows
- Does not compile INAS cobol for PeopleSoft Campus Solutions (yet)
Release 1.0.2
Features
- Included additional and clarified existing examples
- Included additional debug statements and fixed class reference
Bugfixes
Known Issues
- Only works on
Windows
- So far only
PS_HOME
cobol is tested.
Release 1.0.1
Features
- Compiles cobol on a PeopleSoft target
Bugfixes
Known Issues
- Only works on
Windows
- So far only
PS_HOME
cobol is tested. Needs additional refactoring and fixups.
Release 0.5.0
Features
- WARNING: Breaking changes - changed parameter names and types
- Added default base class and parameters
- Major code refactoring
Bugfixes
Known Issues
- Only works on
Windows
Release 0.4.0
Features
- Remove Linux compatibility designation for clarity
- Adjust changelog location on readme
Bugfixes
Known Issues
- Only works on
Windows
Release 0.3.1
Features
For Micro Focus Visual Cobol
- Install
- Install cumulative patch
- Register license
- Uninstall
Bugfixes
Known Issues
- Only works on
Windows
Dependencies
- puppetlabs/powershell (>= 3.0.0 < 3.1.0)
- puppetlabs/pwshlib (>= 0.4.0 < 1.0.0)