Skip to content

Commit

Permalink
* add gitfs whitelist and blacklist
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschmidt committed Jan 13, 2016
1 parent adb0c70 commit 41f2de7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions salt/files/master.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 #####
##########################################
Expand Down

0 comments on commit 41f2de7

Please sign in to comment.