Added opensuse support

See README.rst for more information
This commit is contained in:
Niels Abspoel 2015-03-09 22:22:48 +01:00
parent 2cf2d020e2
commit 1fd98a6eaf
3 changed files with 91 additions and 4 deletions

View File

@ -24,6 +24,7 @@ Installs the php package.
----------- -----------
Installs the php-apc package. Installs the php-apc package.
Disabled by default on opensuse need server:php repo
``php.adodb`` ``php.adodb``
------------- -------------
@ -34,6 +35,7 @@ Installs the php-adodb package.
----------- -----------
Installs the php-cgi package. Installs the php-cgi package.
Disabled on opensuse not available, only fastcgi
``php.cli`` ``php.cli``
----------- -----------
@ -72,6 +74,7 @@ Installs the php-intl package.
--------------- ---------------
Installs the php-imagick package. Installs the php-imagick package.
Disabled on opensuse not available.
``php.imap`` ``php.imap``
------------ ------------
@ -103,11 +106,13 @@ Installs the php-mcrypt package.
---------------- ----------------
Installs the php-memcache package. Installs the php-memcache package.
Disabled on opensuse need server:php:extensions repo
``php.memcached`` ``php.memcached``
----------------- -----------------
Installs the php-memcached package. Installs the php-memcached package.
Disabled on opensuse need server:php:extensions repo
``php.mysql`` ``php.mysql``
------------- -------------
@ -118,6 +123,7 @@ Installs the php-mysql package.
--------------- ---------------
Installs the php-mysqlnd package. Installs the php-mysqlnd package.
Disabled on opensuse no package.
``php.pear`` ``php.pear``
------------ ------------
@ -128,6 +134,7 @@ Installs the php-pear package.
------------ ------------
Installs the php-redis package. Installs the php-redis package.
Disabled on opensuse need server:php:extensions repo
``php.pgsql`` ``php.pgsql``
------------- -------------
@ -153,6 +160,7 @@ Installs the php-suhosin package.
------------- -------------
Installs the php-mongo package. Installs the php-mongo package.
Disabled on opensuse need server:php:extensions repo
``php.xml`` ``php.xml``
----------- -----------
@ -186,11 +194,13 @@ Installs the php-adodb package.
-------------- --------------
Installs the php-apc package. Installs the php-apc package.
Disabled on opensuse need server:php repo
``php.ng.cgi`` ``php.ng.cgi``
-------------- --------------
Installs the php-cgi package. Installs the php-cgi package.
Disabled on opensuse only php5-fastcgi available.
``php.ng.cli`` ``php.ng.cli``
-------------- --------------
@ -258,6 +268,7 @@ Installs the php-gd package.
------------------ ------------------
Installs the php-imagick package. Installs the php-imagick package.
Disabled on opensuse no package.
``php.ng.imap`` ``php.ng.imap``
--------------- ---------------
@ -294,11 +305,15 @@ Installs the php-mcrypt package.
------------------- -------------------
Installs the php-memcache package. Installs the php-memcache package.
Disabled on opensuse need server:php:extensions repo
``php.ng.memcached`` ``php.ng.memcached``
-------------------- --------------------
Installs the php-memcached package. Installs the php-memcached package.
Disabled on opensuse need server:php:extensions repo
``php.ng.mysql`` ``php.ng.mysql``
---------------- ----------------
@ -309,6 +324,7 @@ Installs the php-mysql package.
------------------ ------------------
Installs the php-mysqlnd package. Installs the php-mysqlnd package.
Disabled on opensuse no package.
``php.ng.pear`` ``php.ng.pear``
--------------- ---------------
@ -319,6 +335,8 @@ Installs the php-pear package.
--------------- ---------------
Installs the php-redis package. Installs the php-redis package.
Disabled on opensuse need server:php:extensions repo
``php.ng.pgsql`` ``php.ng.pgsql``
---------------- ----------------

View File

@ -71,4 +71,33 @@
'local_bin': '/usr/local/bin', 'local_bin': '/usr/local/bin',
'temp_dir': '/tmp', 'temp_dir': '/tmp',
}, },
'Suse': {
'php_pkg': 'php5',
'cli_pkg': 'php5-cli',
'curl_pkg': 'php5-curl',
'fpm_pkg': 'php5-fpm',
'gd_pkg': 'php5-gd',
'intl_pkg': 'php5-intl',
'json_pkg': 'php5-json',
'mbstring_pkg': 'php5-mbstring',
'mcrypt_pkg': 'php5-mcrypt',
'mysql_pkg': 'php5-mysql',
'pear_pkg': 'php5-pear',
'soap_pkg': 'php5-soap',
'sqlite_pkg': 'php5-sqlite',
'fpm_service': 'php5-fpm',
'xml_pkg': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
'suhosin_pkg': 'php5-suhosin',
'imap_pkg': 'php5-imap',
'adodb_pkg': 'php5-dba',
'pgsql_pkg': 'php5-pgsql',
'ldap_pkg': 'php5-ldap',
'php_ini': '/etc/php5/apache2/php.ini',
'dev_pkg': 'php5-devel',
'mongo_pecl': 'mongo',
'mongo_ext': 'mongo.so',
'ext_conf_path': '/etc/php5/conf.d',
'local_bin': '/usr/local/bin',
'temp_dir': '/tmp',
},
}, merge=salt['pillar.get']('php:lookup')) %} }, merge=salt['pillar.get']('php:lookup')) %}

View File

@ -96,6 +96,46 @@
'ini': '/etc/php.ini', 'ini': '/etc/php.ini',
}, },
}, },
'Suse': {
'pkgs': {
'php': 'php5',
'apache2': 'apache2-mod_php5',
'cli': 'php5',
'curl': 'php5-curl',
'fpm': 'php5-fpm',
'gd': 'php5-gd',
'intl': 'php5-intl',
'mbstring': 'php5-mbstring',
'mcrypt': 'php5-mcrypt',
'mysql': 'php5-mysql',
'pear': 'php5-pear',
'soap': 'php5-soap',
'sqlite': 'php5-sqlite',
'xml': ['php5-xmlreader','php5-xmlwriter','php5-xmlrpc'],
'suhosin': 'php5-suhosin',
'imap': 'php5-imap',
'adodb': 'php5-dba',
'pgsql': 'php5-pgsql',
'ldap': 'php5-ldap',
'json': 'php5-json',
},
'fpm': {
'conf': '/etc/php-fpm.conf',
'ini': '/etc/php.ini',
'pools': '/etc/php-fpm.d',
'service': 'php-fpm',
'defaults': {
'global': {
'pid': '/var/run/php-fpm/php-fpm.pid',
'error_log': '/var/log/php-fpm/error.log',
'include': '/etc/php-fpm.d/*.conf',
},
},
},
'cli': {
'ini': '/etc/php.ini',
},
},
}), }),
'fpm': { 'fpm': {
'service': { 'service': {