Commit 28fb69b3 authored by nanahira's avatar nanahira

rewrite nextgen-router inventory

parent aa6ba4fd
...@@ -4,7 +4,7 @@ mycard: ...@@ -4,7 +4,7 @@ mycard:
children: children:
router_nextgen: router_nextgen:
rcloud: rcloud:
vars: vars: # 一般可以什么都不改,想改的话改什么抄什么
ansible_ssh_user: root ansible_ssh_user: root
ansible_python_interpreter: python3 ansible_python_interpreter: python3
authorized_keys: | authorized_keys: |
...@@ -42,26 +42,24 @@ rcloud: ...@@ -42,26 +42,24 @@ rcloud:
tls_dns: tls_dns:
- 8.8.8.8 - 8.8.8.8
- 8.8.4.4 - 8.8.4.4
https_dns:
- cloudflare-dns.com
- dns.quad9.net
china_dns: china_dns:
- 114.114.114.114 - 114.114.114.114
- 223.5.5.5 - 223.5.5.5
router_nextgen: router_nextgen:
hosts: hosts:
example-2.com: example-2.com: # 在这里的基本上都是需要改的
vars:
ansible_ssh_user: root
ansible_python_interpreter: python3
localnets:
- 10.0.0.0/24 # 系统内的所有内网网段
links: links:
- name: eno1 # 物理网卡 - name: eno1 # 物理网卡
bonds: bonds: # 没有可以删
- name: bond0 # bond,一般用mode 4来LACP - name: bond0 # bond,一般用mode 4来LACP
links: links:
- eno1 - eno1
mode: 4 mode: 4
vlans: vlans: # 没有可以删
- link: bond0 # vlan,只需要写link和tag,最后网卡名字会变成 link.tag - link: bond0 # vlan,只需要写link和tag,最后网卡名字会变成 link.tag
tag: 2 tag: 2
- link: bond0 - link: bond0
...@@ -93,8 +91,8 @@ router_nextgen: ...@@ -93,8 +91,8 @@ router_nextgen:
start: 10.0.0.100 start: 10.0.0.100
end: 10.0.0.240 end: 10.0.0.240
time: 48h time: 48h
domain: lan # 该段的缺省域名,默认为 br 的名称 domain: lan # 该段的缺省域名,默认为 br 的名称,删掉即可
pxe: # 为该段指定特别的PXE服务器 pxe: # 为该段指定特别的PXE服务器,不指定的话删掉这个
file: somefile.txt file: somefile.txt
address: 10.0.0.4 address: 10.0.0.4
- name: brwan - name: brwan
...@@ -115,15 +113,32 @@ router_nextgen: ...@@ -115,15 +113,32 @@ router_nextgen:
dhcpv6Client: false dhcpv6Client: false
dhcpv6Receive: false dhcpv6Receive: false
dhcp: null dhcp: null
ppps: ppps: # 没有可以删
- id: 0 # ppp id,例如0代表ppp0,该网关的table计算方法为 1000+id - id: 0 # ppp id,例如0代表ppp0,该网关的table计算方法为 1000+id
link: bond0.41 # 上行链路 link: bond0.41 # 上行链路
username: user # 拨号用户名,密码在pppoeUsers给出 username: user # 拨号用户名,密码在pppoeUsers给出
mac: null # 给ISP看的mac地址,null为随机 mac: null # 给ISP看的mac地址,null为随机
dhcpv6Client: false # 使用这里的DHCPv6,所有ppp只能有1个 dhcpv6Client: false # 使用这里的DHCPv6,所有ppp只能有1个
pppoeUsers: # PPPoE帐号 pppoeUsers: # PPPoE帐号,没有可以删
- username: user - username: user
password: pass password: pass
services: # 必须有
address: 10.0.0.1 # 各内网服务主要监听的地址,必须填写
ddns: # 没有可以删
- name: test-ddns
email: name@example.com # cf邮箱
apiKey: qweqwe # api密钥
zone: mycard.moe # ddns主域名
subdomain: test # ddns子域名
ipv6: false # 是否解析ipv6
interface: brwan # 网卡名,可以是null,null则用公网解析结果
vars: # 这里的都是默认设置,没什么事情可以不改,改的话需要整段抄上去
ansible_ssh_user: root
ansible_python_interpreter: python3
localnets:
- '10.198.0.0/16' # 主网段
- '192.168.5.0/24' # gzzchh
- '192.168.123.0/24' # ayane 公司
smartdns: smartdns:
disable_ipv6: false # 是否禁用IPv6解析 disable_ipv6: false # 是否禁用IPv6解析
tls_dns: tls_dns:
...@@ -137,22 +152,12 @@ router_nextgen: ...@@ -137,22 +152,12 @@ router_nextgen:
- 223.5.5.5 - 223.5.5.5
dnsmasq: dnsmasq:
gfwlistIPSet: false # 导入 gfwlist ipset gfwlistIPSet: false # 导入 gfwlist ipset
mycardDomains: false # 导入 MCNetwork 内网域名 mycardDomains: true # 导入 MCNetwork 内网域名
extraInterfaces: [] # 额外监听的网卡 extraInterfaces: [] # 额外监听的网卡
kms: localhost # kms 服务器的地址,localhost 为自己搭建 kms: localhost # kms 服务器的地址,localhost 为自己搭建
aptCacher: 10.0.0.2 # apt-cacher-ng 的地址 aptCacher: null # apt-cacher-ng 的地址
pxe: 10.0.0.3 # pxe 服务器的地址,localhost 为自己搭建,也可以是 address/file 对象的格式 pxe: localhost # pxe 服务器的地址,localhost 为自己搭建,也可以是 address/file 对象的格式
ntp: localhost # ntp 服务器的地址,localhost 为自己搭建 ntp: localhost # ntp 服务器的地址,localhost 为自己搭建
gdut: # 校园网特化使用 #gdut: # 校园网特化使用
remote: 10.0.3.6 # remote: 10.0.3.6
flag: 2f # flag: 2f
services:
address: 10.0.0.1 # 各内网服务主要监听的地址
ddns:
- name: test-ddns
email: name@example.com # cf邮箱
apiKey: qweqwe # api密钥
zone: mycard.moe # ddns主域名
subdomain: test # ddns子域名
ipv6: false # 是否解析ipv6
interface: brwan # 网卡名,可以是null,null则用公网解析结果
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment