Version information
This version is compatible with:
- Puppet Enterprise 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
- Puppet >= 6.21.0 < 8.0.0
- , , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'zend-zend_common', '1.1.2'
Learn more about managing modules with a PuppetfileDocumentation
zend/zend_common Puppet Module
This Puppet module contains shared resources for all Zend modules, which require the ZendPHP repositories and sometimes a license.
Table of Contents
What zend_common affects
zend_common::repo
will setup the ZendPHP package repositories for yum
or apt, depending on the operating system.
zend_common::license
simply uploads the provided Zend product license
to the proper directory.
Usage
Using zend_common::repo
to setup the ZendPHP repositories without credentials is
as simple as including the class.
include 'zend_common::repo'
Include credentials to gain access to ZendPHP LTS binaries.
class { 'zend_common::repo':
creds => {
username => '<ZEND_USERNAME>',
password => '<ZEND_PASSWORD>',
}
}
To change fail messages to be more relevant per product, define the product and support URLs.
class { 'zend_common::repo':
product => 'ZendHQ',
support_urls => {
supported_platforms => 'https://help.zend.com/zendphp/current/content/installation/zendhq_supported_platforms.htm',
},
}
Zend products like ZendHQ require a license file be present. zend_common::license
simply
ensures the product license file is uploaded to the proper directory.
class { 'zend_common::license':
source => 'puppet:///modules/<MODULE_NAME>/zend/license',
}
Reference
See REFERENCE.md
Reference
Table of Contents
Classes
zend_common::license
: Upload a Zend product license to the proper directoryzend_common::repo
: Configure the ZendPHP package repositories depending on OS and version
Classes
zend_common::license
Upload a Zend product license to the proper directory
Examples
With license URL
class { 'zend_common::license':
source => 'puppet:///modules/<MODULE_NAME>/zend/license',
notify => Class['zendhq::service'],
subscribe => Class['zendhq::package'],
}
With license text
$license = Deferred('vault_lookup::lookup',["licenses/zendhq"], 'https://vault.server.lcl:8200',)
class { 'zend_common::license':
content => $license,
}
Parameters
The following parameters are available in the zend_common::license
class:
source
Data type: Optional[String[1]]
Source path or puppet URL to license file
Default value: undef
content
Data type: Optional[String[1]]
Contents of the license file
Default value: undef
zend_common::repo
Configure the ZendPHP package repositories depending on OS and version
Examples
Without parameters
include zend_common::repo
With product other than ZendPHP
class { 'zend_common::repo':
product => 'ZendHQ',
support_urls => {
supported_platforms => 'https://help.zend.com/zendphp/current/content/installation/zendhq_supported_platforms.htm',
},
}
With credentials
class { 'zend_common::repo':
creds => {
username => '<ZEND_USERNAME>',
password => '<ZEND_PASSWORD>',
}
}
Parameters
The following parameters are available in the zend_common::repo
class:
product
Data type: Enum['ZendPHP', 'ZendHQ']
Name of the Zend product
Default value: 'ZendPHP'
creds
Data type: Optional[Hash]
ZendPHP repo credentials
Options:
- username
String
: ZendPHP repo username - password
String
: ZendPHP repo password
Default value: undef
key
Data type: Hash
ZendPHP repo key
Options:
- id
String
: ZendPHP repo key id - source
String
: ZendPHP repo key source URL
Default value:
{
id => '799058698E65316A2E7A4FF42EAE1437F7D2C623',
source => 'https://repos.zend.com/zend.key',
}
support_urls
Data type: Hash
Links to relevant Zend product documentation
Options:
- supported_platforms
String
: Link to the supported platforms for the relevant Zend product
Default value:
{
supported_platforms => 'https://help.zend.com/zendphp/current/content/introduction/supported_platforms.htm',
}
Changelog
All notable changes to this project will be documented in this file.
v1.1.2 (2024-08-07)
Changes
- PDK Update
- Update to supported OSes
v1.1.1 (2022-12-14)
Bugfix
- Bump version of puppetlabs/apt to sync with other modules
v1.1.0 (2022-11-11)
Enhancements
v1.0.0 (2022-10-26)
Initial release
Features
- Manage Zend product license
- Manage Zend binaries repository
Dependencies
- puppetlabs/stdlib (>= 4.16.0 < 9.0.0)
- puppetlabs/apt (>= 4.4.0 < 10.0.0)
MIT License Copyright (c) 2022 Zend Technologies Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.