Version information
Start using this module
Add this module to your Puppetfile:
mod 'pennycoders-phalconphp', '1.0.91'
Learn more about managing modules with a PuppetfileDocumentation
Phalcon Puppet module
Puppet is IT automation software that helps system administrators manage infrastructure throughout its lifecycle, from provisioning and configuration to orchestration and reporting. This is a Puppet module that installs Phalcon framework and optionally devtools, as well as all the other dependencies needed by them. I've tested this module both in production, and on a vagrant box, it worked flawlessly after the last fixes, in both cases. Don't hesitate to contribute, or open any issues.
Example usage
class { 'phalconphp':
ensure_sys_deps => true,
ensure => 'master',
install_devtool => true,
devtools_version => 'master',
install_zephir => false,
compat_sys_deps => false,
zephir_build => false,
ini_file => 'phalcon.ini',
debug => false,
zephir_tmp_dir=>'/tmp/zephir'
}
Required parameters
ensure
ensure_sys_deps
install_devtools (needs to be se to true)
devtools_version
Parameters
ensure_sys_deps
ensure
install_devtools
devtools_version
install_zephir
compat_sys_deps
zephir_build
ini_file
debug
zephir_tmp_dir
Prerequisites
This module can install everything for you, however, in order to be able to achieve that, a few other modules are required:
puppetlabs/stdlib
example42/yum
puppetlabs/apt
example42/php
example42/puppi
Gittip
Notes
Values in the Usage example above are the default ones and although they can be changed, I strongly recommend to not change them unless you really need a more specific approach.
In regards to compat_sys_deps, see http://forum.phalconphp.com/discussion/1660/phalconphp-puppet-module-compiles-zephir-phalconphp-and-installs
This module has been rigurously tested on CentOS 6.5 x64
Devtools does not seem to be fully compatible with phalconphp 2.x
Until this issue is fixed, Zephir will have to be installed manually.
TODO
- Add the ability to create phalcon projects via puppet
- Add / test support for Debian platforms
Credits:
Special thanks to @ifrpl, for forking the repo (His improvements made me get started on getting this module sorted out the way it is now)
Dependencies
- puppetlabs/stdlib (>=1.0.0)
- puppetlabs/vcsrepo (>=0.2.0)
- example42/yum (>=1.0.0)
- puppetlabs/apt (>=1.0.0)
- example42/php (>=2.0.17)
- example42/puppi (>=1.0.0)
The MIT License (MIT) Copyright (c) 2014 Phalcon 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.