GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [BUG] apache.config.vhosts.standard: mapping error when "enabled: false" · Issue #302 · saltstack-formulas/apache-formula

[BUG] apache.config.vhosts.standard: mapping error when "enabled: false" #302

New issue
Copy link
New issue
Copy link
Closed
#303
Closed
[BUG] apache.config.vhosts.standard: mapping error when "enabled: false"#302
#303
Copy link
Labels
bugreleased

Description

@genaumann
genaumann
opened on Apr 30, 2021
Issue body actions

Your setup

Formula commit hash / release tag

Current commit hash: 3c21740ba52fa5c2b5cf39cddce6a42d13d17988

Versions reports (master & minion)

Salt Version:
          Salt: 3003
 
Dependency Versions:
          cffi: 1.14.2
      cherrypy: unknown
      dateutil: 2.7.3
     docker-py: Not Installed
         gitdb: 2.0.5
     gitpython: 2.1.11
        Jinja2: 2.10
       libgit2: 0.27.7
      M2Crypto: Not Installed
          Mako: Not Installed
       msgpack: 0.5.6
  msgpack-pure: Not Installed
  mysql-python: 1.3.10
     pycparser: 2.20
      pycrypto: 2.6.1
  pycryptodome: 3.6.1
        pygit2: 0.27.4
        Python: 3.7.3 (default, Jan 22 2021, 20:04:44)
  python-gnupg: Not Installed
        PyYAML: 3.13
         PyZMQ: 17.1.2
         smmap: 2.0.5
       timelib: Not Installed
       Tornado: 4.5.3
           ZMQ: 4.3.1
 
System Versions:
          dist: debian 10 buster
        locale: UTF-8
       machine: x86_64
       release: 4.19.0-16-amd64
        system: Linux
       version: Debian GNU/Linux 10 buster

Pillar / config used

apache:
  sites:
    test.example.com-80:
      ServerName: test.example.com
      enabled: false
      template_file: salt://apache/vhosts/redirect.tmpl
      port: '80'
      interface: '*'
      RedirectMatch: true
      RedirectSource: '/'
      RedirectTarget: 'https://test.example.com'
      ErrorLog: ${APACHE_LOG_DIR}/error.log
      CustomLog: ${APACHE_LOG_DIR}/access.log
      DocumentRoot: false


Bug details

Describe the bug

When a site configuration is to be deactivated (enabled: false), the state apache.config.vhosts.standard throws the following error:
failed: mapping values are not allowed in this context

When I change the value to enabled: true , the state will run without any errors.

Log at salt-master:

pillar.get: Default () is of type 'str', must be a dict or list to merge. Merge will be skipped.

Activity

  1. genaumann
    added
    bug
    on Apr 30, 2021
  2. myii commented on Apr 30, 2021

    @myii
    myii
    on Apr 30, 2021
    Contributor
    More actions

    @genaumann Thanks for this report. Bug confirmed locally using Kitchen. Tracked it down to this line:

    apache-formula/apache/config/vhosts/standard.sls

    Line 70 in 3c21740

    - name: a2dissite {{ id }}{{ apache.confext }}:

    Please remove the trailing colon which shouldn't be there. That's working at my end. I'll push through a PR in the meantime.

  3. myii
    added a commit that references this issue on Apr 30, 2021

    fix(config/vhosts/standard): remove erroneous trailing colon

    This issue will close once commit dedb9e2 is merged into the 'master' branch.
    dedb9e2
  4. myii commented on Apr 30, 2021

    @myii
    myii
    on Apr 30, 2021
    Contributor
    More actions

    @genaumann Fix proposed in #303, please confirm there and we'll get that merged.

  5. myii
    closed this as completedin #303on Apr 30, 2021
  6. saltstack-formulas-travis
    added a commit that references this issue on Apr 30, 2021

    chore(release): 1.1.3 [skip ci]

    a94a703
  7. saltstack-formulas-travis commented on Apr 30, 2021

    @saltstack-formulas-travis
    saltstack-formulas-travis
    on Apr 30, 2021
    More actions

    🎉 This issue has been resolved in version 1.1.3 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

  8. saltstack-formulas-travis
    added
    released
    on Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.