mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Added new RH route template for RHEL6 and newer
This commit is contained in:
parent
42d4244e3c
commit
1d30f32540
2 changed files with 12 additions and 8 deletions
14
.gitignore
vendored
14
.gitignore
vendored
|
@ -24,8 +24,9 @@ lib64
|
|||
pip/
|
||||
share/
|
||||
tests/integration/tmp/
|
||||
tests/cachedir/
|
||||
tests/unit/templates/roots/
|
||||
|
||||
# tox - ignore any tox-created virtualenv dirs
|
||||
.tox
|
||||
|
||||
# setuptools stuff
|
||||
*.egg-info
|
||||
|
@ -36,6 +37,7 @@ coverage.xml
|
|||
htmlcov/
|
||||
|
||||
# IDE files
|
||||
/.settings
|
||||
/.project
|
||||
/.pydevproject
|
||||
/.idea
|
||||
|
@ -50,8 +52,8 @@ htmlcov/
|
|||
tags
|
||||
|
||||
# ignore Vagrant file
|
||||
**/Vagrantfile
|
||||
**/.vagrant
|
||||
Vagrantfile
|
||||
.vagrant
|
||||
|
||||
# Compiled translation files should not be VCS'ed
|
||||
# locale/zh_CN/LC_MESSAGES/topics/virt/nic.mo
|
||||
|
@ -63,10 +65,6 @@ _version.py
|
|||
|
||||
# Ignore grains file written out during tests
|
||||
tests/integration/files/conf/grains
|
||||
/salt/_syspaths.py
|
||||
|
||||
# ignore the local root
|
||||
/root/**
|
||||
|
||||
# Ignore file cache created by jinja tests
|
||||
tests/unit/templates/roots
|
||||
|
|
6
salt/templates/rh_ip/rh6_route_eth.jinja
Normal file
6
salt/templates/rh_ip/rh6_route_eth.jinja
Normal file
|
@ -0,0 +1,6 @@
|
|||
{% for route in routes %}{% if route.name %}# {{route.name}}
|
||||
{{route.ipaddr}}
|
||||
{%- if route.netmask%}/{{route.netmask}}
|
||||
{%-endif%}{% if route.gateway %} via {{route.gateway}}
|
||||
{%endif%}
|
||||
{% endfor %}
|
Loading…
Add table
Reference in a new issue