Giter VIP home page Giter VIP logo

ansible-php's Introduction

ansible-php

PHP is a popular general-purpose scripting language that is popular in web development.

Platforms Build Status

Tunables

  • php_user (string) - User to run php-fpm as
  • php_runtime_root (string) - Directory for runtime data
  • php_fpm_pidfile_path (string) - Path for FPM pidfile
  • php_fpm_socket_path (string) - Path for FPM socket
  • php_log_root (string) - Directory for logs
  • php_fpm_log_path (string) - Path for FPM log
  • php_error_log_path (string) - Path for error log
  • php_slow_log_path (string) - Path for slow log
  • php_slow_threshold (string) - Threshold for script execution to be considered 'slow'
  • php_hide_version (string) - Do not expose version data.
  • php_max_children (integer) - Maximum worker processes
  • php_start_servers (integer) - Start this many workers initially
  • php_min_spare_servers (integer) - Keep at least this many workers available
  • php_max_spare_servers (integer) - Keep no more than this many workers idle
  • php_max_requests (integer) - Maximum requests a worker can serve before being killed and replaced.
  • php_short_open_tag (boolean) - Enable short open tags. Conflicts with XML headers. Deprecated, removal targeted for PHP6+. <?= style short ECHO tags are always enabled in 5.4+
  • php_display_errors (boolean) - Display errors?
  • php_post_max_size (string) - Maximum POST size
  • php_upload_max_filesize (string) - Maximum upload filesize (must be < php_post_max_size)
  • php_cgi_fix_pathinfo (string) - Enable cgi.fix_pathinfo. Enabled by default and required to conform to PHP spec. Fx your code to use SCRIPT_FILENAME rather than PATH_TRANSLATED if you need to disable this.
  • php_memory_limit (string) - Memory limit for PHP workers (should be > php_post_max_size)
  • php_max_execution_time (integer) - Upper bound on script execution time
  • php_request_terminate_timeout (integer) - The timeout for serving a single request after which the worker process will be killed.
  • php_max_input_vars (integer) - How many input variables may be accepted.
  • php_fpm (boolean) - Enable FPM?
  • php_composer (boolean) - Install Composer?
  • php_documentor (boolean) - Install PHP Documentor?
  • php_phpunit (boolean) - Install PHPUnit?
  • php_sodium (boolean) - Install libsodium bindings?
  • php_modules (list) - Additional PHP modules to install

Dependencies

Example Playbook

- hosts: servers
  roles:
     - role: telusdigital.php
       php_modules:
         - php5-curl
         - php5-redis
      php_phpunit: yes

License

MIT

Contributors

ansible-php's People

Contributors

extremelylongusername avatar colstrom avatar aaronpederson avatar kkwoker avatar stevenharradine avatar noqcks avatar jscott avatar raizv avatar petrox avatar coltonpowershifter avatar pdufault avatar

Stargazers

arun9theja avatar

Watchers

 avatar  avatar James Cloos avatar Aron Reid avatar Connor Yoon avatar AsIf avatar  avatar

ansible-php's Issues

cant find package php5-fpm on Ubuntu 16.04

TASK [telusdigital.php : Install Packages | apt] *******************************
failed: [localhost] (item=[u'php5-fpm']) => {"failed": true, "item": ["php5-fpm"], "msg": "No package matching 'php5-fpm' is available"}

tasks/install.yml fails when hitting the sodium/install PHP extension task

TASK: [telusdigital.php | Sodium | Install PHP extension] ********************* failed: [localhost] => {"changed": true, "cmd": "pecl install channel://pecl.php.net/libsodium-1.0.2", "delta": "0:00:00.047146", "end": "2015-12-02 23:30:20.412551", "rc": 1, "start": "2015-12-02 23:30:20.365405", "warnings": []} stdout: pecl/libsodium is already installed and is the same as the released version 1.0.2 install failed ...ignoring

Install leaves phpunit.phar.asc file in the playbooks directory

In my current setup, ansible is under subversion control, so leaving artifacts/temporary files under the playbook dir is not just unelegant, but also it brakes idempotemcy.

after running

$ ansible-playbook playbooks/localdev.yml

...

$ svn st
?       playbooks/phpunit.phar.asc

So I believe the script should clean up after itself.

twig config

T-com has a hack in it's playbook that can be easily broken out into the role.
We should support it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.