Skip to content

Commit

Permalink
ci(kitchen): add test pillars for Debian and call some states
Browse files Browse the repository at this point in the history
  • Loading branch information
n-rodriguez committed Sep 3, 2019
1 parent 3c9efc7 commit d4fc842
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 2 deletions.
7 changes: 6 additions & 1 deletion kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@ suites:
state_top:
base:
'*':
- php
- php.repo
- php.fpm.install
- php.fpm.config
- php.fpm.pools
- php.modules
- php.fpm.service
pillars:
top.sls:
base:
Expand Down
86 changes: 85 additions & 1 deletion test/salt/pillar/debian.sls
Original file line number Diff line number Diff line change
@@ -1,4 +1,88 @@
# -*- coding: utf-8 -*-
# vim: ft=yaml
---
php: {}
php:
repo:
humanname: php-sury repo
name: "deb https://packages.sury.org/php/ {{ salt['grains.get']('oscodename') }} main"
file: /etc/apt/sources.list.d/php-sury.list
key_url: https://packages.sury.org/php/apt.gpg

version:
- '5.6'
- '7.3'

fpm:
config:
ini:
settings:
Assertion:
zend.assertions: -1
PHP:
expose_php: 'Off'
default_charset: UTF-8
cgi.fix_pathinfo: 0
Date:
date.timezone: Europe/Paris

pools:
'radius-admin.conf':
enabled: true
phpversion: '5.6'
settings:
radius-admin:
user: www-data
group: www-data
listen: /tmp/php-fpm-radius-admin.sock
listen.mode: '0666'
pm: static
pm.max_children: 3
pm.max_requests: 500
pm.status_path: /php-status
ping.path: /php-ping
catch_workers_output: 'yes'
security.limit_extensions: .php
'php_admin_value[date.timezone]': Europe/Paris

'ldap-admin.conf':
enabled: true
phpversion: '7.3'
settings:
ldap-admin:
user: www-data
group: www-data
listen: /tmp/php-fpm-ldap-admin2.sock
listen.mode: '0666'
pm: static
pm.max_children: 3
pm.max_requests: 500
pm.status_path: /php-status
ping.path: /php-ping
catch_workers_output: 'yes'
security.limit_extensions: .php
'php_admin_value[date.timezone]': Europe/Paris

cli:
ini:
settings:
Assertion:
zend.assertions: -1
PHP:
default_charset: UTF-8
Date:
date.timezone: Europe/Paris

modules:
- bz2
- cli
- curl
- gd
- imagick
- imap
- intl
- mbstring
- mysql
- readline
- redis
- xml
- zip

0 comments on commit d4fc842

Please sign in to comment.