From 03d5aada1f8064af6b3d278b51a801cac0f3a85a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 14 Nov 2023 14:20:43 +0100 Subject: wip --- 6/bgp.py | 4 ++-- 6/group_vars/hash/bgp.yaml | 10 ---------- 6/group_vars/knot/bgp.yaml | 10 ---------- 6/group_vars/kv24ix/bgp.yaml | 7 ------- 6/group_vars/lhn2ix/bgp.yaml | 7 ------- 6/host_vars/hash/bgp.yaml | 10 ++++++++++ 6/host_vars/knot/bgp.yaml | 10 ++++++++++ 6/host_vars/kv24ix/bgp.yaml | 7 +++++++ 6/host_vars/lhn2ix/bgp.yaml | 7 +++++++ 9 files changed, 36 insertions(+), 36 deletions(-) delete mode 100644 6/group_vars/hash/bgp.yaml delete mode 100644 6/group_vars/knot/bgp.yaml delete mode 100644 6/group_vars/kv24ix/bgp.yaml delete mode 100644 6/group_vars/lhn2ix/bgp.yaml create mode 100644 6/host_vars/hash/bgp.yaml create mode 100644 6/host_vars/knot/bgp.yaml create mode 100644 6/host_vars/kv24ix/bgp.yaml create mode 100644 6/host_vars/lhn2ix/bgp.yaml diff --git a/6/bgp.py b/6/bgp.py index 995a0c8..2bd756a 100755 --- a/6/bgp.py +++ b/6/bgp.py @@ -7,8 +7,8 @@ import os def to_ansible(kind, hosts): for host, o in hosts.items(): print(f"host={host}") - os.makedirs(f"group_vars/{host}", exist_ok=True) - with open(f"group_vars/{host}/{kind}.yaml", "w") as f: + os.makedirs(f"host_vars/{host}", exist_ok=True) + with open(f"host_vars/{host}/{kind}.yaml", "w") as f: f.write(yaml.dump(o)) with PrologMQI() as mqi: diff --git a/6/group_vars/hash/bgp.yaml b/6/group_vars/hash/bgp.yaml deleted file mode 100644 index 8b57bbe..0000000 --- a/6/group_vars/hash/bgp.yaml +++ /dev/null @@ -1,10 +0,0 @@ -neighbors: -- neighbor: - hostname: fdf3:aad9:a885:0b3a::1 - name: knot -- neighbor: - hostname: fdf3:aad9:a885:0b3a::16 - name: kv24ix -- neighbor: - hostname: fdf3:aad9:a885:0b3a::15 - name: lhn2ix diff --git a/6/group_vars/knot/bgp.yaml b/6/group_vars/knot/bgp.yaml deleted file mode 100644 index 23d0232..0000000 --- a/6/group_vars/knot/bgp.yaml +++ /dev/null @@ -1,10 +0,0 @@ -neighbors: -- neighbor: - hostname: fdf3:aad9:a885:0b3a::13 - name: hash -- neighbor: - hostname: fdf3:aad9:a885:0b3a::16 - name: kv24ix -- neighbor: - hostname: fdf3:aad9:a885:0b3a::15 - name: lhn2ix diff --git a/6/group_vars/kv24ix/bgp.yaml b/6/group_vars/kv24ix/bgp.yaml deleted file mode 100644 index e4a0cf6..0000000 --- a/6/group_vars/kv24ix/bgp.yaml +++ /dev/null @@ -1,7 +0,0 @@ -neighbors: -- neighbor: - hostname: fdf3:aad9:a885:0b3a::13 - name: hash -- neighbor: - hostname: fdf3:aad9:a885:0b3a::1 - name: knot diff --git a/6/group_vars/lhn2ix/bgp.yaml b/6/group_vars/lhn2ix/bgp.yaml deleted file mode 100644 index e4a0cf6..0000000 --- a/6/group_vars/lhn2ix/bgp.yaml +++ /dev/null @@ -1,7 +0,0 @@ -neighbors: -- neighbor: - hostname: fdf3:aad9:a885:0b3a::13 - name: hash -- neighbor: - hostname: fdf3:aad9:a885:0b3a::1 - name: knot diff --git a/6/host_vars/hash/bgp.yaml b/6/host_vars/hash/bgp.yaml new file mode 100644 index 0000000..8b57bbe --- /dev/null +++ b/6/host_vars/hash/bgp.yaml @@ -0,0 +1,10 @@ +neighbors: +- neighbor: + hostname: fdf3:aad9:a885:0b3a::1 + name: knot +- neighbor: + hostname: fdf3:aad9:a885:0b3a::16 + name: kv24ix +- neighbor: + hostname: fdf3:aad9:a885:0b3a::15 + name: lhn2ix diff --git a/6/host_vars/knot/bgp.yaml b/6/host_vars/knot/bgp.yaml new file mode 100644 index 0000000..23d0232 --- /dev/null +++ b/6/host_vars/knot/bgp.yaml @@ -0,0 +1,10 @@ +neighbors: +- neighbor: + hostname: fdf3:aad9:a885:0b3a::13 + name: hash +- neighbor: + hostname: fdf3:aad9:a885:0b3a::16 + name: kv24ix +- neighbor: + hostname: fdf3:aad9:a885:0b3a::15 + name: lhn2ix diff --git a/6/host_vars/kv24ix/bgp.yaml b/6/host_vars/kv24ix/bgp.yaml new file mode 100644 index 0000000..e4a0cf6 --- /dev/null +++ b/6/host_vars/kv24ix/bgp.yaml @@ -0,0 +1,7 @@ +neighbors: +- neighbor: + hostname: fdf3:aad9:a885:0b3a::13 + name: hash +- neighbor: + hostname: fdf3:aad9:a885:0b3a::1 + name: knot diff --git a/6/host_vars/lhn2ix/bgp.yaml b/6/host_vars/lhn2ix/bgp.yaml new file mode 100644 index 0000000..e4a0cf6 --- /dev/null +++ b/6/host_vars/lhn2ix/bgp.yaml @@ -0,0 +1,7 @@ +neighbors: +- neighbor: + hostname: fdf3:aad9:a885:0b3a::13 + name: hash +- neighbor: + hostname: fdf3:aad9:a885:0b3a::1 + name: knot -- cgit v1.2.3