diff --git a/network-adhoc/antora.yml b/network-adhoc/antora.yml new file mode 100644 index 0000000..6bfe534 --- /dev/null +++ b/network-adhoc/antora.yml @@ -0,0 +1,5 @@ + name: swarmlab_network-adhoc + title: swarmlab_network-adhoc + version: docs + nav: + - modules/ROOT/nav.adoc diff --git a/network-adhoc/modules/ROOT/images/bidirectional-communication.png b/network-adhoc/modules/ROOT/images/bidirectional-communication.png new file mode 100644 index 0000000..b0c425b Binary files /dev/null and b/network-adhoc/modules/ROOT/images/bidirectional-communication.png differ diff --git a/network-adhoc/modules/ROOT/images/docker-images.png b/network-adhoc/modules/ROOT/images/docker-images.png new file mode 100644 index 0000000..f12b8e4 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/docker-images.png differ diff --git a/network-adhoc/modules/ROOT/images/fluent-mongo.png b/network-adhoc/modules/ROOT/images/fluent-mongo.png new file mode 100644 index 0000000..dc37e7a Binary files /dev/null and b/network-adhoc/modules/ROOT/images/fluent-mongo.png differ diff --git a/network-adhoc/modules/ROOT/images/gynamic-swarm.png b/network-adhoc/modules/ROOT/images/gynamic-swarm.png new file mode 100644 index 0000000..187e12d Binary files /dev/null and b/network-adhoc/modules/ROOT/images/gynamic-swarm.png differ diff --git a/network-adhoc/modules/ROOT/images/intro.png b/network-adhoc/modules/ROOT/images/intro.png new file mode 100644 index 0000000..be24b71 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/intro.png differ diff --git a/network-adhoc/modules/ROOT/images/nvc.png b/network-adhoc/modules/ROOT/images/nvc.png new file mode 100644 index 0000000..8a18b59 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/nvc.png differ diff --git a/network-adhoc/modules/ROOT/images/nvc1.png b/network-adhoc/modules/ROOT/images/nvc1.png new file mode 100644 index 0000000..ecabdea Binary files /dev/null and b/network-adhoc/modules/ROOT/images/nvc1.png differ diff --git a/network-adhoc/modules/ROOT/images/openweb.png b/network-adhoc/modules/ROOT/images/openweb.png new file mode 100644 index 0000000..05bde8b Binary files /dev/null and b/network-adhoc/modules/ROOT/images/openweb.png differ diff --git a/network-adhoc/modules/ROOT/images/replica-set-primary-with-two-secondaries.bakedsvg.svg b/network-adhoc/modules/ROOT/images/replica-set-primary-with-two-secondaries.bakedsvg.svg new file mode 100644 index 0000000..628fd76 --- /dev/null +++ b/network-adhoc/modules/ROOT/images/replica-set-primary-with-two-secondaries.bakedsvg.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/network-adhoc/modules/ROOT/images/swarm-poc.png b/network-adhoc/modules/ROOT/images/swarm-poc.png new file mode 100644 index 0000000..afab527 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/swarm-poc.png differ diff --git a/network-adhoc/modules/ROOT/images/swarm-poc1.png b/network-adhoc/modules/ROOT/images/swarm-poc1.png new file mode 100644 index 0000000..f629234 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/swarm-poc1.png differ diff --git a/network-adhoc/modules/ROOT/images/swarmlab-connect.png b/network-adhoc/modules/ROOT/images/swarmlab-connect.png new file mode 100644 index 0000000..0520936 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/swarmlab-connect.png differ diff --git a/network-adhoc/modules/ROOT/images/swarmlab.png b/network-adhoc/modules/ROOT/images/swarmlab.png new file mode 100644 index 0000000..d94ea42 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/swarmlab.png differ diff --git a/network-adhoc/modules/ROOT/images/types-of-mounts-bind.png b/network-adhoc/modules/ROOT/images/types-of-mounts-bind.png new file mode 100644 index 0000000..2d8d409 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/types-of-mounts-bind.png differ diff --git a/network-adhoc/modules/ROOT/images/vue-modules.png b/network-adhoc/modules/ROOT/images/vue-modules.png new file mode 100644 index 0000000..be24b71 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/vue-modules.png differ diff --git a/network-adhoc/modules/ROOT/images/vue.png b/network-adhoc/modules/ROOT/images/vue.png new file mode 100644 index 0000000..be24b71 Binary files /dev/null and b/network-adhoc/modules/ROOT/images/vue.png differ diff --git a/network-adhoc/modules/ROOT/nav.adoc b/network-adhoc/modules/ROOT/nav.adoc new file mode 100644 index 0000000..cf040ad --- /dev/null +++ b/network-adhoc/modules/ROOT/nav.adoc @@ -0,0 +1,2 @@ +* xref:index.adoc[network-adhoc] +* xref:index-setup.adoc[setup] diff --git a/network-adhoc/modules/ROOT/pages/index-setup.adoc b/network-adhoc/modules/ROOT/pages/index-setup.adoc new file mode 100644 index 0000000..b3020c2 --- /dev/null +++ b/network-adhoc/modules/ROOT/pages/index-setup.adoc @@ -0,0 +1,87 @@ += Setup + + +== Intro + +[.float-group] +-- +[.right] +image::ROOT:swarm-poc.png[float=right] + +:hardbreaks: + +{empty} + +{empty} + +:!hardbreaks: + +.From -> To + +* [*] monolithic -> networking architecture +* [*] static -> Dynamic +* [*] host based -> Service based +* [*] linear -> agile +-- + +TIP: You will learn to code, coordinate and orchestrate a swarm of self-acting nodes. + +== Install systemd-networkd + + +.systemd-networkd +[source,sh] +---- + +# deinstall classic networking + +#sudo -Es # if not already done +systemctl daemon-reload +systemctl disable --now ifupdown dhcpcd dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog +apt --autoremove purge -f ifupdown dhcpcd dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog +rm -r /etc/network /etc/dhcp + +# setup/enable systemd-resolved and systemd-networkd + +systemctl disable --now avahi-daemon libnss-mdns +apt --autoremove -f purge avahi-daemon +apt install -f libnss-resolve +ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf +apt-mark hold avahi-daemon dhcpcd dhcpcd5 ifupdown isc-dhcp-client isc-dhcp-common libnss-mdns openresolv raspberrypi-net-mods rsyslog +systemctl enable systemd-networkd.service systemd-resolved.service +#exit + +cat > /etc/systemd/network/04-wired.network <