GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - projectassistant/php5-formula: created from https://github.com/projectassistant/saltstack-formulas-set/php5-saltstack-formula

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
php5
php5
 
 
CHANGELOG.rst
CHANGELOG.rst
 
 
LICENSE
LICENSE
 
 
README.rst
README.rst
 
 
pillar.example
pillar.example
 
 

Repository files navigation

php5-formula

A saltstack formula to manage php5 and php5-fpm.

This formula has been developed distributing declarations in different files to make it usable in most situations. It should be useful in scenarios ranging from a simple install of the packages (without any special configuration) to a more complex set-up with different pools.

General customization strategies

  • Use pillar data. This is the absolutely recommended way to use the formula. In most occassions all you need is to fill some of the key-values shown in the pillar.example file. If you feel that a certain value should be there then don't hesitate to propose an enhancement.

  • Use the extra_conf key that in some cases is present in the pillar to add arbitrary configuration lines in the templates provided. This is a way to have a better customization without over-populating the pillar with new key-values.

  • Add new subdirectories under files in addition to default. This new subdirectories will contain different files to be used in certain conditions. This selection mechanism is based by default in the ìd grain of the minion (i.e. if there's a new subdirectory named minion01 then the formula is going to look there first for that minion). This selection behavior can be extended to make it depend on any sorted list of grains, defined by the key files_switch.

    For example, let's define in pillar something like:

    formula-name:
      files_switch: ['id', 'os_family']

    Let's have this files directory structure:

    files
      |-- minion01
      |       `-- etc
      |            `-- foo.conf.jinja
      |-- Debian
      |       `-- etc
      |            `-- foo.conf.jinja
      `-- default
              |-- etc
              |    |-- foo.conf.jinja
              |    `-- bar.conf.jinja
              `-- usr/share/thingy/*

    With this, we have the following:

    • if the minion id is minion01 then files/minion01/etc/foo.conf.jinja is going to be used
    • else if the minion os_family is Debian then files/Debian/etc/foo.conf.jinja is going to be used
    • else files/default/etc/foo.conf.jinja is going to be used

    Beware: this is not designed to substitute pillar data. Remember that pillar has to be used for information that it's essential to be only known for a certain set of minions (i.e. passwords, private keys and such).

  • As a last resort you can actually fork the formula to suit your needs, keeping an eye for further improvements to merge into yours. Of course any pull- request that you can bring back it would be taken in account ;-)

Note

So far this formula is mostly designed for Debian os_family and apache 2.4.x. Support for RedHat os_family will appear one of these days.

See the full Salt Formulas doc.

Available states

  • php5
  • php5.repo
  • php5.curl
  • php5.mysql
  • php5.gd
  • php5.fpm
  • php5.fpm.conf
  • php5.fpm.repo

php5

Installs the php5 package.

php5.repo

In case of Debian os_family, configures ondrej/php5 PPA with updated php5 related packages

php5.curl

Installs the php5-curl package.

php5.mysql

Installs the php5-mysql package.

php5.gd

Installs the php5-gd package.

php5.fpm

Installs the php5-fpm package.

php5.fpm.conf

Configures the php5-fpm package.

php5.fpm.repo

In case of Debian os_family, configures ondrej/php5 PPA with updated php5 related packages

About

created from https://github.com/projectassistant/saltstack-formulas-set/php5-saltstack-formula

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

2 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.