Browse Source

adhoc

master
zeus 3 years ago
parent
commit
9ffcb303fc
  1. 5
      network-adhoc/antora.yml
  2. BIN
      network-adhoc/modules/ROOT/images/bidirectional-communication.png
  3. BIN
      network-adhoc/modules/ROOT/images/docker-images.png
  4. BIN
      network-adhoc/modules/ROOT/images/fluent-mongo.png
  5. BIN
      network-adhoc/modules/ROOT/images/gynamic-swarm.png
  6. BIN
      network-adhoc/modules/ROOT/images/intro.png
  7. BIN
      network-adhoc/modules/ROOT/images/nvc.png
  8. BIN
      network-adhoc/modules/ROOT/images/nvc1.png
  9. BIN
      network-adhoc/modules/ROOT/images/openweb.png
  10. 1
      network-adhoc/modules/ROOT/images/replica-set-primary-with-two-secondaries.bakedsvg.svg
  11. BIN
      network-adhoc/modules/ROOT/images/swarm-poc.png
  12. BIN
      network-adhoc/modules/ROOT/images/swarm-poc1.png
  13. BIN
      network-adhoc/modules/ROOT/images/swarmlab-connect.png
  14. BIN
      network-adhoc/modules/ROOT/images/swarmlab.png
  15. BIN
      network-adhoc/modules/ROOT/images/types-of-mounts-bind.png
  16. BIN
      network-adhoc/modules/ROOT/images/vue-modules.png
  17. BIN
      network-adhoc/modules/ROOT/images/vue.png
  18. 2
      network-adhoc/modules/ROOT/nav.adoc
  19. 87
      network-adhoc/modules/ROOT/pages/index-setup.adoc
  20. 33
      network-adhoc/modules/ROOT/pages/index.adoc
  21. 4
      network-adhoc/run/build-intro.sh
  22. 4
      network-adhoc/run/build.sh
  23. 21
      network-adhoc/site.yml

5
network-adhoc/antora.yml

@ -0,0 +1,5 @@
name: swarmlab_network-adhoc
title: swarmlab_network-adhoc
version: docs
nav:
- modules/ROOT/nav.adoc

BIN
network-adhoc/modules/ROOT/images/bidirectional-communication.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

BIN
network-adhoc/modules/ROOT/images/docker-images.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
network-adhoc/modules/ROOT/images/fluent-mongo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

BIN
network-adhoc/modules/ROOT/images/gynamic-swarm.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
network-adhoc/modules/ROOT/images/intro.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
network-adhoc/modules/ROOT/images/nvc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
network-adhoc/modules/ROOT/images/nvc1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

BIN
network-adhoc/modules/ROOT/images/openweb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

1
network-adhoc/modules/ROOT/images/replica-set-primary-with-two-secondaries.bakedsvg.svg

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 12 KiB

BIN
network-adhoc/modules/ROOT/images/swarm-poc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
network-adhoc/modules/ROOT/images/swarm-poc1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
network-adhoc/modules/ROOT/images/swarmlab-connect.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 KiB

BIN
network-adhoc/modules/ROOT/images/swarmlab.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
network-adhoc/modules/ROOT/images/types-of-mounts-bind.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
network-adhoc/modules/ROOT/images/vue-modules.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

BIN
network-adhoc/modules/ROOT/images/vue.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

2
network-adhoc/modules/ROOT/nav.adoc

@ -0,0 +1,2 @@
* xref:index.adoc[network-adhoc]
* xref:index-setup.adoc[setup]

87
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 <<EOF
[Match]
Name=e*
[Network]
## Uncomment only one option block
# Option: using a DHCP server and multicast DNS
LLMNR=no
LinkLocalAddressing=no
MulticastDNS=yes
DHCP=ipv4
# Option: using link-local ip addresses and multicast DNS
#LLMNR=no
#LinkLocalAddressing=yes
#MulticastDNS=yes
# Option: using static ip address and multicast DNS
# (example, use your settings)
Address=192.168.1.18/24
Gateway=192.168.1.1
DNS=8.8.8.8 1.1.1.1
MulticastDNS=yes
EOF
echo "reboot"
----

33
network-adhoc/modules/ROOT/pages/index.adoc

@ -0,0 +1,33 @@
= Ad Hoc Network!
image::ROOT:swarmlab.png[swarmlab,150,float=right]
The "data collector" is a lightweight microservice application that collect and sends metadata, collected from a system, such as an IoT network, distributed system, data center, etc to a storage system.
* The data are transmitted, stored, and can be retrieved at any time.
*"data collector"* are developed with a platform agnostic"container-based application strategy
[NOTE]
====
A platform-agnostic approach offers many choices
* Can be seamlessly moved from local development machine to production deployments
* Flexibility, Reliability
** Avoiding Vendor Lock-In
* From Code to full-blown systems
** from a single container on your local machine
** to a running cloud native - container-based environment
====

4
network-adhoc/run/build-intro.sh

@ -0,0 +1,4 @@
antora --fetch /antora/site-intro.yml
antora /antora/site-intro.yml
ifconfig
http-server build/site -c-1

4
network-adhoc/run/build.sh

@ -0,0 +1,4 @@
antora --fetch /antora/site.yml
antora /antora/site.yml
ifconfig
http-server build/site -c-1

21
network-adhoc/site.yml

@ -0,0 +1,21 @@
site:
title: Swarmlab network-adhoc
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
start_page: swarmlab_network-adhoc::index.adoc
content:
sources:
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: network-adhoc
ui:
bundle:
url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip
snapshot: true
supplemental_files: ./supplemental-ui
asciidoc:
attributes:
:plantuml-server-url: http://www.plantuml.com/plantuml
extensions:
- '@djencks/asciidoctor-mathjax'
- asciidoctor-plantuml
Loading…
Cancel
Save