saltstack-formulas / php-formula

http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html
Other
57 stars 232 forks source link

[BUG] state.apply php.cli, php.fpm and php.xcache fail to compile. #202

Open gj02ib65 opened 4 years ago

gj02ib65 commented 4 years ago

I have found that I am not able to run state.apply "php.cli', 'php.fpm' and 'php.xcache'

Following is a screenshot from the salt master and the response.

I am able to run the commands that they are supposed to run such as php.cli.install and php.cli.ini.

I will include debug log in additional message.

gjohnson@prd-ssm:~$ sudo salt '*work*' state.apply php.xcache
ussc-tst-worker-vm1:
    Data failed to compile:
----------
    Rendering SLS 'base:php.xcache.ini' failed: Jinja variable 'dict object' has no attribute 'defaults'
ERROR: Minions returned with non-zero exit code
gjohnson@prd-ssm:~$ sudo salt '*work*' state.apply php.fpm
ussc-tst-worker-vm1:
    Data failed to compile:
----------
    Rendering SLS 'base:php.fpm' failed: Jinja variable 'dict object' has no attribute 'fpm_pkg'
ERROR: Minions returned with non-zero exit code
gjohnson@prd-ssm:~$ sudo salt '*work*' state.apply php.cli
ussc-tst-worker-vm1:
    Data failed to compile:
----------
    Rendering SLS 'base:php.cli' failed: Jinja variable 'dict object' has no attribute 'cli_pkg'
ERROR: Minions returned with non-zero exit code 

Describe the bug

Setup

Steps to reproduce the bug

Expected behaviour

Versions report

Salt Version:
          Salt: 2019.2.0

Dependency Versions:
          cffi: Not Installed
      cherrypy: Not Installed
      dateutil: 2.6.1
     docker-py: Not Installed
         gitdb: 2.0.3
     gitpython: 2.1.8
         ioflo: Not Installed
        Jinja2: 2.10
       libgit2: 0.26.0
       libnacl: Not Installed
      M2Crypto: Not Installed
          Mako: 1.0.7
  msgpack-pure: Not Installed
msgpack-python: 0.5.6
  mysql-python: Not Installed
     pycparser: Not Installed
      pycrypto: 2.6.1
  pycryptodome: Not Installed
        pygit2: 0.26.2
        Python: 2.7.15+ (default, Jul  9 2019, 16:51:35)
  python-gnupg: 0.4.1
        PyYAML: 3.12
         PyZMQ: 16.0.2
          RAET: Not Installed
         smmap: 2.0.3
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.2.5System Versions:
          dist: Ubuntu 18.04 bionic
        locale: UTF-8
       machine: x86_64
       release: 5.0.0-1020-azure
        system: Linux
       version: Ubuntu 18.04 bionic

Additional context

Optional: How can this template be improved?

gj02ib65 commented 4 years ago

Debug log

minion3.log