Переглянути джерело

ff-supernode now depends on bird role

Till Klocke 9 роки тому
батько
коміт
8bcada8c6d

+ 1 - 0
roles/ff-supernode/meta/main.yml

@@ -131,3 +131,4 @@ galaxy_info:
 dependencies:
 - fastd
 - batman
+- bird

+ 41 - 1
test/application/supernode_pkg_vars.yml

@@ -16,4 +16,44 @@ fastd_instances:
 
 fastd_instances_secret:
   - name: test
-    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
+    secret: 280088c4263359417e9f2daf1771db820ab79eb4f79e3718719b2a976e8a8b5e
+
+bird_router_id: 10.233.8.1
+bird_templates:
+  - header: bgp ibgp
+    content: |
+      local as 65403;
+      import all;
+      export all;
+      next hop self;
+      multihop 64;
+
+bird_protocols:
+  - header: direct
+    content: interface "*";
+  - header: bgp ffrg11 from ibgp
+    content: |
+      source address 10.0.6.6;
+      neighbor 10.0.6.5 as 65079;
+      default bgp_med 2;
+
+
+bird6_router_id: 10.233.8.1
+bird6_templates:
+  - header: bgp ibgp
+    content: |
+      source address 2a03:2260:50:5::8;
+      local as 65403;
+      import all;
+      export all;
+      next hop self;
+      direct;
+      gateway direct;
+
+bird6_protocols:
+  - header: direct
+    content: interface "*";
+  - header: bgp node012 from ibgp
+    content: |
+      neighbor 2a03:2260:50:5::24 as 65403;
+      default bgp_med 4;

+ 25 - 1
test/integration/supernode/serverspec/test_spec.rb

@@ -60,4 +60,28 @@ end
 
 describe kernel_module('batman_adv') do
   it { should be_loaded }
-end
+end
+
+describe package('bird') do
+  it { should be_installed }
+end
+
+describe file('/etc/bird/bird.conf') do
+  it { should exist }
+  its(:content) { should contain 'router id 10.233.8.1;' }
+end
+
+describe file('/etc/bird/bird6.conf') do
+  it { should exist }
+  its(:content) { should contain 'router id 10.233.8.1;' }
+end
+
+#describe service('bird') do
+#  it { should be_running }
+#  it { should be_enabled }
+#end
+
+#describe service('bird6') do
+#  it { should be_running }
+#  it { should be_enabled }
+#end