Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtual_alias_maps parameter is ignored. #89

Closed
roskens opened this issue Feb 13, 2019 · 2 comments
Closed

virtual_alias_maps parameter is ignored. #89

roskens opened this issue Feb 13, 2019 · 2 comments

Comments

@roskens
Copy link

roskens commented Feb 13, 2019

I am trying to configure the virtual_alias_maps parameter against two maps in my pillar data. In #83, it was suggested something like this might be possible in the future:

postfix:
  config:
    virtual_alias_maps:
      - hash:/etc/postfix/virtual
      - pcre:/etc/postfix/virtual.pcre
  mapping:
    hash:/etc/postfix/virtual:
      root:
        - me
    pcre:/etc/postfix/virtual.pcre:
      - '/(\S+)_(devel|preprod|prod)@sub.example.com$/': '$(1)@$(2).sub.example.com' 

But that isn't supported yet, so I was trying to do this instead:

postfix:
  config:
    virtual_alias_maps: $virtual_alias_1_maps $virtual_alias_2_maps
    virtual_alias_1_maps: hash:/etc/postfix/virtual
    virtual_alias_2_maps: pcre:/etc/postfix/virtual.pcre
  mapping:
    virtual_alias_1_maps:
      root:
        - me
    virtual_alias_2_maps:
      - '/(\S+)_(devel|preprod|prod)@sub.example.com$/': '$(1)@$(2).sub.example.com' 

The two files /etc/postfix/virtual and /etc/postfix/virtual.pcre get created, however, no parameter entry is added for virtual_alias_maps!

@alxwr
Copy link
Member

alxwr commented Apr 9, 2019

@roskens
I proposed a solution for this issue in #90.

@roskens
Copy link
Author

roskens commented Apr 9, 2019

That would work.

@alxwr alxwr closed this as completed in fbaa2dc Apr 26, 2019
alxwr added a commit that referenced this issue Apr 26, 2019
Fix #89 by ignoring only keys which are actually used in Pillar 'postfix:mapping'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants