-
Notifications
You must be signed in to change notification settings - Fork 18
/
create-router.yml
111 lines (104 loc) · 2.98 KB
/
create-router.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# ---
# # Can't run this until the next CIX trip :(
# - name: "Ensure Router"
# hosts: localhost
# roles:
# - role: proxmox-infra-cloudinit-vm
# vars:
# vm:
# clone: "netsoc-vyos-router-{{ inventory_hostname }}"
# name: "router.vm.netsoc.co"
# recreate: yes
# protection: no
# timeout: 300
# description: |
# groups:
# - vm
# - router
# host_vars:
# ansible_user: vyos
# ansible_connection: network_cli
# ansible_network_os: vyos
# ansible_become: yes
# ansible_become_method: enable
# ansible_ssh_private_key_file: "./keys/router/id_rsa"
# net:
# net0: "virtio,bridge=vmbr0"
# cores: 2
# memory: 2048
# cloudinit:
# drive_device: ide2
# userdata: |
# system {
# host-name router.vm.netsoc.co
# login {
# user vyos {
# authentication {
# plaintext-password "fuck"
# public-keys {
# default {
# type {{ lookup('file', './keys/router/id_rsa.pub').split(' ')[0] }}
# key {{ lookup('file', './keys/router/id_rsa.pub').split(' ')[1] }}
# }
# }
# }
# level admin
# }
# }
# syslog {
# global {
# facility all {
# level info
# }
# facility protocols {
# level debug
# }
# }
# }
# ntp {
# server "0.pool.ntp.org"
# server "1.pool.ntp.org"
# server "2.pool.ntp.org"
# }
# console {
# device ttyS0 {
# speed 9600
# }
# }
# config-management {
# commit-revisions 100
# }
# }
# interfaces {
# ethernet eth0 {
# vif 30 {
# address 10.0.30.2/24
# }
# }
# }
# protocols {
# static {
# route 0.0.0.0/0 {
# next-hop 10.0.30.1/24
# }
# }
# }
# service {
# ssh {
# port 22
# }
# }
# interfaces {
# loopback lo {
# }
# }
# networkconfig:
# ethernets:
# vars_files:
# - vars/proxmox.yml
# - vars/secrets.yml
# - name: "Reload inventory to pull new VMs"
# hosts: 127.0.0.1
# connection: local
# tasks:
# - meta: refresh_inventory