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

fix(tofs): use source_files instead of files #4

Merged

Conversation

myii
Copy link
Member

@myii myii commented Mar 9, 2019


Testing before and after, using a pillar containing:

  tofs:
    files_switch:
      - any/path/can/be/used/here
      - id
      - osfinger
      - os
      - os_family
    dirs:
      files: files_alt
      default: default_alt
    source_files:
      lighttpd_config:
        - '/etc/lighttpd/lighttpd_alt.conf'

Confirmed the same source output:

    - source:
      - salt://lighttpd/files_alt/any/path/can/be/used/here/etc/lighttpd/lighttpd_alt.conf
      - salt://lighttpd/files_alt/ABC/etc/lighttpd/lighttpd_alt.conf
      - salt://lighttpd/files_alt/Ubuntu-16.04/etc/lighttpd/lighttpd_alt.conf
      - salt://lighttpd/files_alt/Ubuntu/etc/lighttpd/lighttpd_alt.conf
      - salt://lighttpd/files_alt/Debian/etc/lighttpd/lighttpd_alt.conf
      - salt://lighttpd/files_alt/default_alt/etc/lighttpd/lighttpd_alt.conf

@myii myii requested a review from aboe76 March 9, 2019 23:17
@aboe76 aboe76 merged commit 4fca60f into saltstack-formulas:master Mar 10, 2019
@aboe76
Copy link
Member

aboe76 commented Mar 10, 2019

@myii thanks for this

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

Successfully merging this pull request may close these issues.

2 participants