Commit Graph

520 Commits

Author SHA1 Message Date
semantic-release-bot
e8b1dd80b5 chore(release): 1.3.0 [skip ci]
# [1.3.0](https://github.com/saltstack-formulas/php-formula/compare/v1.2.3...v1.3.0) (2020-02-27)

### Bug Fixes

* **libtofs:** “files_switch” mess up the variable exported by “map.jinja” [skip ci] ([dca51de](dca51de154))
* **map.jinja:** fix pid file location for debian ([393d69e](393d69eb0f))

### Continuous Integration

* **gemfile:** restrict `train` gem version until upstream fix [skip ci] ([d7c188e](d7c188e73c))
* **kitchen:** avoid using bootstrap for `master` instances [skip ci] ([dd796b0](dd796b070c))
* **travis:** use `major.minor` for `semantic-release` version [skip ci] ([109df07](109df0781d))

### Documentation

* **readme:** fix broken sub-heading [skip ci] ([51dd6e9](51dd6e9bf2))

### Features

* **odbc:** add odbc module support ([8b69034](8b69034c5b))
2020-02-27 17:32:37 +00:00
Imran Iqbal
84846adb42
Merge pull request #211 from sylvainfaivre/master
fix(map.jinja): fix pid file location for debian
2020-02-27 17:19:53 +00:00
sylvainfaivre
393d69eb0f fix(map.jinja): fix pid file location for debian
The PID file location for Debian changed recently
see https://www.patreon.com/posts/february-updates-34189046
and https://github.com/oerdnj/deb.sury.org/issues/1334
2020-02-27 10:39:17 +01:00
Imran Iqbal
e6393c7a6e chore(gitignore): update from the template-formula [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/132
2020-02-14 22:30:48 +00:00
Imran Iqbal
dca51de154 fix(libtofs): “files_switch” mess up the variable exported by “map.jinja” [skip ci]
* Checked using https://github.com/myii/ssf-formula/pull/131
2020-02-14 19:10:31 +00:00
Imran Iqbal
221994b5cf chore(rubocop): move LineLength cop from Metrics to Layout [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/129
2020-02-14 12:52:16 +00:00
Imran Iqbal
dd796b070c ci(kitchen): avoid using bootstrap for master instances [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/124
2020-02-05 14:07:18 +00:00
Imran Iqbal
109df0781d ci(travis): use major.minor for semantic-release version [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/112
2019-12-22 01:00:45 +00:00
Imran Iqbal
d7c188e73c ci(gemfile): restrict train gem version until upstream fix [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/110
2019-12-16 13:43:41 +00:00
Imran Iqbal
51dd6e9bf2
docs(readme): fix broken sub-heading [skip ci] 2019-12-12 13:06:29 +00:00
Imran Iqbal
f5751f3a2f
Merge pull request #206 from netmanagers/master
feat(odbc): add odbc module support
2019-12-12 11:00:27 +00:00
Javier Bértoli
8b69034c5b feat(odbc): add odbc module support 2019-12-09 12:29:35 -03:00
semantic-release-bot
6492871770 chore(release): 1.2.3 [skip ci]
## [1.2.3](https://github.com/saltstack-formulas/php-formula/compare/v1.2.2...v1.2.3) (2019-12-02)

### Bug Fixes

* **map.jinja:** fix useflags regex (gentoo) ([39b1307](39b1307671))
* **release.config.js:** use full commit hash in commit link [skip ci] ([d8f279f](d8f279f9cd))

### Continuous Integration

* **kitchen:** use `debian-10-master-py3` instead of `develop` [skip ci] ([fc9ad29](fc9ad29874))
* **kitchen:** use `develop` image until `master` is ready (`amazonlinux`) [skip ci] ([97b7a36](97b7a36aa7))
* **kitchen+travis:** upgrade matrix after `2019.2.2` release [skip ci] ([85e1f0e](85e1f0ec25))
* **travis:** apply changes from build config validation [skip ci] ([3862c37](3862c37d06))
* **travis:** opt-in to `dpl v2` to complete build config validation [skip ci] ([0bb68c5](0bb68c5b17))
* **travis:** quote pathspecs used with `git ls-files` [skip ci] ([0090c91](0090c91b60))
* **travis:** run `shellcheck` during lint job [skip ci] ([298a7d6](298a7d61c2))
* **travis:** update `salt-lint` config for `v0.0.10` [skip ci] ([5c7d1aa](5c7d1aa501))
* **travis:** use build config validation (beta) [skip ci] ([bcc0690](bcc0690c8a))
* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([75f8d4d](75f8d4dcb8))

### Documentation

* **contributing:** remove to use org-level file instead [skip ci] ([8aee949](8aee949cab))
* **readme:** update link to `CONTRIBUTING` [skip ci] ([05d112f](05d112f63b))

### Performance Improvements

* **travis:** improve `salt-lint` invocation [skip ci] ([56d7314](56d73148b3))
2019-12-02 22:08:16 +00:00
Mark Gomersbach
39b1307671 fix(map.jinja): fix useflags regex (gentoo)
* fix(map.jinja): fix useflags regex

When using version inside useflag, the sls_block macro with ebuildpkg regex result in a range error.
Replacing the version argument with uses seem to work as escapes don't really work there.

fix(map.jinja): replace all problematic lines
fix(map.jinja): update available targets

```
----------
          ID: php_install_imagick_dev-php-pecl-imagick
    Function: pkg.installed
        Name: dev-php/pecl-imagick
      Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
                File "/usr/lib64/python3.6/site-packages/salt/state.py", line 1933, in call
                  **cdata['kwargs'])
                File "/usr/lib64/python3.6/site-packages/salt/loader.py", line 1951, in wrapper
                  return f(*args, **kwargs)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 1563, in installed
                  **kwargs)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 651, in _find_install_targets
                  for name, version in desired.items()
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 652, in <listcomp>
                  if not (name in cur_pkgs and (version is None or _fulfills_version_string(cur_pkgs[name], version)))
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 216, in _fulfills_version_string
                  fullfills_all = fullfills_all and _fulfills_version_spec([installed_version], operator, version_string, ignore_epoch=ignore_epoch)
                File "/usr/lib64/python3.6/site-packages/salt/states/pkg.py", line 234, in _fulfills_version_spec
                  if (oper == '==' and fnmatch.fnmatch(ver, desired_version)) \
                File "/usr/lib64/python3.6/fnmatch.py", line 36, in fnmatch
                  return fnmatchcase(name, pat)
                File "/usr/lib64/python3.6/fnmatch.py", line 70, in fnmatchcase
                  match = _compile_pattern(pat)
                File "/usr/lib64/python3.6/fnmatch.py", line 46, in _compile_pattern
                  return re.compile(res).match
                File "/usr/lib64/python3.6/re.py", line 233, in compile
                  return _compile(pattern, flags)
                File "/usr/lib64/python3.6/re.py", line 301, in _compile
                  p = sre_compile.compile(pattern, flags)
                File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
                  p = sre_parse.parse(p, flags)
                File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
                  p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
                File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
                  not nested and not items))
                File "/usr/lib64/python3.6/sre_parse.py", line 765, in _parse
                  p = _parse_sub(source, state, sub_verbose, nested + 1)
                File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
                  not nested and not items))
                File "/usr/lib64/python3.6/sre_parse.py", line 553, in _parse
                  raise source.error(msg, len(this) + 1 + len(that))
              sre_constants.error: bad character range 7-3 at position 20
     Started: 14:28:26.927898
    Duration: 6321.149 ms
     Changes:
```

* Use single-quoting

Signed-off-by: Mark Gomersbach <markgomersbach@gmail.com>
2019-12-02 21:54:41 +00:00
Imran Iqbal
0090c91b60 ci(travis): quote pathspecs used with git ls-files [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/107
2019-11-27 21:54:53 +00:00
Imran Iqbal
298a7d61c2 ci(travis): run shellcheck during lint job [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/106
2019-11-27 20:54:36 +00:00
Imran Iqbal
0bb68c5b17 ci(travis): opt-in to dpl v2 to complete build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/100
2019-11-20 16:32:30 +00:00
Imran Iqbal
3862c37d06 ci(travis): apply changes from build config validation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/98
2019-11-16 20:05:16 +00:00
Imran Iqbal
bcc0690c8a ci(travis): use build config validation (beta) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/97
2019-11-13 16:47:25 +00:00
Imran Iqbal
97b7a36aa7 ci(kitchen): use develop image until master is ready (amazonlinux) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/93
2019-11-03 11:35:58 +00:00
Imran Iqbal
56d73148b3 perf(travis): improve salt-lint invocation [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/90
2019-11-02 08:37:54 +00:00
Imran Iqbal
d8f279f9cd fix(release.config.js): use full commit hash in commit link [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/89
2019-10-31 10:30:04 +00:00
Imran Iqbal
85e1f0ec25 ci(kitchen+travis): upgrade matrix after 2019.2.2 release [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/86
2019-10-30 04:48:26 +00:00
Imran Iqbal
fc9ad29874 ci(kitchen): use debian-10-master-py3 instead of develop [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/84
2019-10-24 18:10:40 +01:00
Imran Iqbal
5c7d1aa501 ci(travis): update salt-lint config for v0.0.10 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/82
2019-10-23 17:34:21 +01:00
Imran Iqbal
8aee949cab docs(contributing): remove to use org-level file instead [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/70
2019-10-14 12:29:36 +01:00
Imran Iqbal
05d112f63b
docs(readme): update link to CONTRIBUTING [skip ci] 2019-10-14 11:37:38 +01:00
Imran Iqbal
00b3387b11 chore(issues): remove issues templates to use org-level templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/61
2019-10-10 15:26:43 +01:00
semantic-release-bot
d78e96fa0c chore(release): 1.2.2 [skip ci]
## [1.2.2](https://github.com/saltstack-formulas/php-formula/compare/v1.2.1...v1.2.2) (2019-10-10)

### Bug Fixes

* **composer.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/php-formula/commit/4e48a7a))
* **map.jinja:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/php-formula/commit/01f5ede))
* **repo.sls:** fix `salt-lint` errors ([](https://github.com/saltstack-formulas/php-formula/commit/b4d994c))

### Continuous Integration

* merge travis matrix, add `salt-lint` & `rubocop` to `lint` job ([](https://github.com/saltstack-formulas/php-formula/commit/a5a8a95))
2019-10-10 03:15:10 +00:00
Imran Iqbal
4461987e30
Merge pull request #204 from myii/ci/merge-matrix-and-add-salt-lint-and-rubocop
ci: merge travis matrix, add `salt-lint` & `rubocop` to `lint` job
2019-10-09 23:50:47 +01:00
Imran Iqbal
a5a8a959d6 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Semi-automated using https://github.com/myii/ssf-formula/pull/60
2019-10-09 16:09:06 +01:00
Imran Iqbal
01f5ede277
fix(map.jinja): fix salt-lint errors
```bash
Examining php/map.jinja of type state
[204] Lines should be no longer that 160 chars
php/map.jinja:25
                            'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],

[204] Lines should be no longer that 160 chars
php/map.jinja:191
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:192
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:520
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:521
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:896
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:897
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:1270
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:1271
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:1644
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:1645
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:2035
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:2036
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',

[204] Lines should be no longer that 160 chars
php/map.jinja:2206
                            'build_pkgs': ['libssl-dev', 'libcurl4-openssl-dev', 'pkg-config', 'libsslcommon2-dev', 'gcc', 'make', 'autoconf', 'libc-dev', 'pkg-config'],

[204] Lines should be no longer that 160 chars
php/map.jinja:2375
                            'disable_functions': ['pcntl_alarm','pcntl_fork','pcntl_waitpid','pcntl_wait','pcntl_wifexited','pcntl_wifstopped','pcntl_wifsignaled',

[204] Lines should be no longer that 160 chars
php/map.jinja:2376
                                'pcntl_wexitstatus','pcntl_wtermsig','pcntl_wstopsig','pcntl_signal','pcntl_signal_dispatch','pcntl_get_last_error','pcntl_strerror',
```
2019-10-09 16:07:50 +01:00
Imran Iqbal
b4d994cc09
fix(repo.sls): fix salt-lint errors
```bash
Examining php/hhvm/repo.sls of type state
[206] Jinja variables should have spaces before and after: {{ var_name }}
php/hhvm/repo.sls:12
    - name: deb http://dl.hhvm.com/{{ salt['grains.get']('os')|lower }} {{ salt['grains.get']('oscodename')}} main
```
2019-10-09 16:07:50 +01:00
Imran Iqbal
4e48a7adbb
fix(composer.sls): fix salt-lint errors
```bash
Examining php/composer.sls of type state
[210] Numbers that start with `0` should always be encapsulated in quotation marks
php/composer.sls:27
    - mode: 0755
```
2019-10-09 16:07:49 +01:00
Imran Iqbal
75f8d4dcb8 ci: merge travis matrix, add salt-lint & rubocop to lint job
* Automated using https://github.com/myii/ssf-formula/pull/60
2019-10-08 16:37:27 +01:00
semantic-release-bot
9c5fe287c3 chore(release): 1.2.1 [skip ci]
## [1.2.1](https://github.com/saltstack-formulas/php-formula/compare/v1.2.0...v1.2.1) (2019-10-07)

### Bug Fixes

* **pillar.example:** fix `yamllint` error ([1b1747a](https://github.com/saltstack-formulas/php-formula/commit/1b1747a)), closes [/travis-ci.org/myii/php-formula/builds/594703019#L208-L210](https://github.com//travis-ci.org/myii/php-formula/builds/594703019/issues/L208-L210)

### Continuous Integration

* **kitchen:** change `log_level` to `debug` instead of `info` ([b86237e](https://github.com/saltstack-formulas/php-formula/commit/b86237e))
* **kitchen:** install required packages to bootstrapped `opensuse` [skip ci] ([20be85a](https://github.com/saltstack-formulas/php-formula/commit/20be85a))
* **kitchen:** use bootstrapped `opensuse` images until `2019.2.2` [skip ci] ([f70ebd2](https://github.com/saltstack-formulas/php-formula/commit/f70ebd2))
* **platform:** add `arch-base-latest` (commented out for now) [skip ci] ([55d5df1](https://github.com/saltstack-formulas/php-formula/commit/55d5df1))
2019-10-07 19:01:04 +00:00
Imran Iqbal
5b19f603c1
Merge pull request #203 from myii/chore/update-yamllint-config
fix(pillar.example): fix `octal-values` violation
2019-10-07 19:36:37 +01:00
Imran Iqbal
1b1747a003
fix(pillar.example): fix yamllint error
* https://travis-ci.org/myii/php-formula/builds/594703019#L208-L210

```bash
$ yamllint -s .
./pillar.example
  151:30    error    forbidden implicit octal value "0660"  (octal-values)
```
2019-10-07 19:15:57 +01:00
Imran Iqbal
e0aa56f4e1
chore(yamllint): update ignored paths and add octal-values
* Automated using https://github.com/myii/ssf-formula/pull/59
2019-10-07 19:14:12 +01:00
Imran Iqbal
e34de1f319 chore(issues): update Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/58
2019-10-07 15:26:27 +01:00
Imran Iqbal
20be85af76 ci(kitchen): install required packages to bootstrapped opensuse [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/53
2019-10-02 00:07:51 +01:00
Imran Iqbal
f70ebd21e0 ci(kitchen): use bootstrapped opensuse images until 2019.2.2 [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/52
2019-10-01 21:34:16 +01:00
Imran Iqbal
55d5df17d4 ci(platform): add arch-base-latest (commented out for now) [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/50
2019-10-01 16:20:45 +01:00
Imran Iqbal
c31af3a8d2 chore(issues): provide Bug report & Feature request templates [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/48
2019-09-30 15:58:36 +01:00
Imran Iqbal
b86237ee60 ci(kitchen): change log_level to debug instead of info
* Automated using https://github.com/myii/ssf-formula/pull/41
2019-09-23 17:00:10 +01:00
semantic-release-bot
bd10230def chore(release): 1.2.0 [skip ci]
# [1.2.0](https://github.com/saltstack-formulas/php-formula/compare/v1.1.1...v1.2.0) (2019-09-13)

### Continuous Integration

* use `dist: bionic` & apply `opensuse-leap-15` SCP error workaround ([76a2f76](https://github.com/saltstack-formulas/php-formula/commit/76a2f76))
* **yamllint:** add rule `empty-values` & use new `yaml-files` setting ([6f6d4bc](https://github.com/saltstack-formulas/php-formula/commit/6f6d4bc))

### Features

* **tofs:** implementation for all file.managed ([8e79a35](https://github.com/saltstack-formulas/php-formula/commit/8e79a35))
2019-09-13 10:31:34 +00:00
Imran Iqbal
1802ac5182
Merge pull request #178 from sticky-note/feat/tofs
feat(tofs): implementation for all file.managed
2019-09-13 11:16:05 +01:00
sticky-note
8e79a3595c
feat(tofs): implementation for all file.managed
- Implementation of libtofs on ini macro, pools_config and apache2 mod_php.conf
+ Introduction of tplroot on modified files
+ `{%-` consistency when possible
2019-09-13 10:59:05 +01:00
Niels Abspoel
276d8f065c
Merge pull request #199 from myii/chore/standardise-structure
ci(yamllint): add rule `empty-values` & use new `yaml-files` setting
2019-09-12 18:11:07 +02:00
Imran Iqbal
6f6d4bcdbf ci(yamllint): add rule empty-values & use new yaml-files setting
* Automated using https://github.com/myii/ssf-formula/pull/27
2019-09-10 05:54:05 +01:00