This Puppet module manages ZendHQ, a Zend product add-on for ZendPHP Enterprise.
This module adds the ZendPHP package repositories and manages the ZendHQ service, which can be installed, uninstalled, started, stopped, and configured.
Using zendhq
to setup the ZendPHP repositories and install ZendHQ without
configuration is as simple as providing a Zend product license:
class { 'zendhq':
license_source => 'puppet:///modules/<MODULE_NAME>/zend/license',
}
Include settings to configure ZendHQ.
class { 'zendhq':
license_source => 'puppet:///modules/<MODULE_NAME>/zend/license',
settings => {
'zendhq.daemon_uri' => 'tcp://0.0.0.0:10090',
},
}
Creating a new group and user with read-only permissions using Bolt.
$ bolt task run zendhq::group_add group=readonly permissions='r zray,mon,conf,ct,jq' -t zendhq_server
$ # verify group creation and permissions
$ bolt task run zendhq::group_print group=readonly -t zendhq_server
$ bolt task run zendhq::user_add user=readonly_user password=readonly_password group=readonly -t zendhq_server
$ # verify user creation and permissions
$ bolt task run zendhq::user_print user=readonly_user -t zendhq_server
Installation of ZendHQ comes with a helpful tool, zendhqctl
, for managing
groups, users, and their permissions. While this CLI could be called with
Puppet's exec
functionality, this module comes with tasks for all the
zendhqctl
commands, making them easy to call with
PE
or Bolt.
Please see the reference below for a list of tasks in this module.
See REFERENCE.md