You can add license product IDs to pattern types by modifying
the JSON files, rather than from the Cloud Pak System Software user
interface. Use this information for adding PIDs to virtual applications
that you created in your environment.
Procedure
- Extract the files in the .tgz file
for the pattern type.
- Find the patterntype.json file. This
file is at the top level, together with the
locales
and licenses
folders.
- Add the following lines to the patterntype.json file:
"license" : {
"pid" : "5725D65",
"type" : "Server"
}
- For one of the plug-ins included in the pattern type, edit
the file <pluginname>/export/bin/templates/<name>.vm by
adding a reference to the pattern type license, in the
vm-templates
section.
For example:
{
"vm-templates": [
{
"name" : "<pluginname>",
"packages" : [ "<package1>", "<package2>" ],
"licenses" : [{"<pattern-type-shortname>":"1.0"}],
...
}
]
}
The
licenses
section lists the
shortname
and
version
for
the pattern type that is defined in the
patterntype.json file.
- Rebuild the pattern type to create the
.tgz
file,
or compress it using the tar command. For
example:
tar -cvzf <pattern_name>.tgz <directory>