ソースを参照

ci(kitchen): add test pillars for Debian and call some states

tags/v1.1.0
Nicolas Rodriguez 5年前
コミット
d4fc842a62
2個のファイルの変更91行の追加2行の削除
  1. +6
    -1
      kitchen.yml
  2. +85
    -1
      test/salt/pillar/debian.sls

+ 6
- 1
kitchen.yml ファイルの表示

@@ -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:

+ 85
- 1
test/salt/pillar/debian.sls ファイルの表示

@@ -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

読み込み中…
キャンセル
保存