瀏覽代碼

Merge pull request #198 from kevinschmidt/master

add support for gitfs whitelist and blacklist
tags/v0.57.0
Forrest 8 年之前
父節點
當前提交
8617db1536
共有 1 個檔案被更改,包括 24 行新增0 行删除
  1. +24
    -0
      salt/files/master.d/f_defaults.conf

+ 24
- 0
salt/files/master.d/f_defaults.conf 查看文件

@@ -652,6 +652,30 @@ gitfs_remotes:
# repository and defaults to the repository root.
{{ get_config('gitfs_root', 'somefolder/otherfolder') }}

# The gitfs_env_whitelist and gitfs_env_blacklist parameters allow for greater
# control over which branches/tags are exposed as fileserver environments.
{% if 'gitfs_env_whitelist' in cfg_master -%}
gitfs_env_whitelist:
{%- for git_env in cfg_master['gitfs_env_whitelist'] %}
- {{ git_env }}
{%- endfor -%}
{% else -%}
# gitfs_env_whitelist:
# - base
# - v1.*
{% endif %}

{% if 'gitfs_env_blacklist' in cfg_master -%}
gitfs_env_blacklist:
{%- for git_env in cfg_master['gitfs_env_blacklist'] %}
- {{ git_env }}
{%- endfor -%}
{% else -%}
# gitfs_env_blacklist:
# - bug/*
# - feature/*
{% endif %}


##### Pillar settings #####
##########################################

Loading…
取消
儲存