修改.gitignore,方便自定义参数配置

pull/270/head
gjmzj 2018-07-23 22:00:06 +08:00
parent fd4816badb
commit 59ff795554
3 changed files with 17 additions and 6 deletions

12
.gitignore vendored
View File

@ -1,10 +1,22 @@
down/*
!down/download.sh
!down/offline_images
# k8s binaries directory
bin/*
!bin/readme.md
# kube-dns controller
manifests/kubedns/kubedns.yaml
manifests/coredns/coredns.yaml
# ansible hosts
hosts
# k8s backup directory
roles/cluster-backup/files/*
!roles/cluster-backup/files/readme.md
# roles/xxx/vars, exclude roles/os-harden/vars/
vars/*
!/roles/os-harden/vars/

View File

@ -3,6 +3,11 @@ dns_install: "yes"
dns_backend: "coredns"
kubedns_offline: "kubedns_1.14.10.tar"
coredns_offline: "coredns_1.1.3.tar"
dns_offline: "{%- if dns_backend == 'coredns' -%} \
{{ coredns_offline }} \
{%- else -%} \
{{ kubedns_offline }} \
{%- endif -%}"
# metric server 自动安装
metricsserver_install: "yes"

View File

@ -1,6 +0,0 @@
dns_offline: "{%- if dns_backend == 'coredns' -%} \
{{ coredns_offline }} \
{%- else -%} \
{{ kubedns_offline }} \
{%- endif -%}"