summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-11-14 14:20:43 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2023-11-14 14:20:43 +0100
commit03d5aada1f8064af6b3d278b51a801cac0f3a85a (patch)
treea89ae40628b92e7c8a10ca01957fd7d28ffe6746 /6
parent4d471f0b706733624a845143cafb6dd8add90eed (diff)
downloadprolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.gz
prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.bz2
prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.tar.xz
prolog-firewall-03d5aada1f8064af6b3d278b51a801cac0f3a85a.zip
wip
Diffstat (limited to '6')
-rwxr-xr-x6/bgp.py4
-rw-r--r--6/host_vars/hash/bgp.yaml (renamed from 6/group_vars/hash/bgp.yaml)0
-rw-r--r--6/host_vars/knot/bgp.yaml (renamed from 6/group_vars/knot/bgp.yaml)0
-rw-r--r--6/host_vars/kv24ix/bgp.yaml (renamed from 6/group_vars/kv24ix/bgp.yaml)0
-rw-r--r--6/host_vars/lhn2ix/bgp.yaml (renamed from 6/group_vars/lhn2ix/bgp.yaml)0
5 files changed, 2 insertions, 2 deletions
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/host_vars/hash/bgp.yaml
index 8b57bbe..8b57bbe 100644
--- a/6/group_vars/hash/bgp.yaml
+++ b/6/host_vars/hash/bgp.yaml
diff --git a/6/group_vars/knot/bgp.yaml b/6/host_vars/knot/bgp.yaml
index 23d0232..23d0232 100644
--- a/6/group_vars/knot/bgp.yaml
+++ b/6/host_vars/knot/bgp.yaml
diff --git a/6/group_vars/kv24ix/bgp.yaml b/6/host_vars/kv24ix/bgp.yaml
index e4a0cf6..e4a0cf6 100644
--- a/6/group_vars/kv24ix/bgp.yaml
+++ b/6/host_vars/kv24ix/bgp.yaml
diff --git a/6/group_vars/lhn2ix/bgp.yaml b/6/host_vars/lhn2ix/bgp.yaml
index e4a0cf6..e4a0cf6 100644
--- a/6/group_vars/lhn2ix/bgp.yaml
+++ b/6/host_vars/lhn2ix/bgp.yaml