Browse Source

ansible

master
zeus 2 years ago
parent
commit
074a3f90d9
  1. 2
      auto-complete.sh
  2. 9
      build.sh
  3. 21
      infrastructure-as-code/modules/ROOT/pages/index.adoc
  4. 5
      sidecar-firefox/antora.yml
  5. BIN
      sidecar-firefox/modules/ROOT/images/adhoc.png
  6. BIN
      sidecar-firefox/modules/ROOT/images/swarmlab.png
  7. BIN
      sidecar-firefox/modules/ROOT/images/trafic.png
  8. BIN
      sidecar-firefox/modules/ROOT/images/vehigle.png
  9. 1
      sidecar-firefox/modules/ROOT/nav.adoc
  10. 39
      sidecar-firefox/modules/ROOT/pages/index.adoc
  11. 4
      sidecar-firefox/run/build-intro.sh
  12. 4
      sidecar-firefox/run/build.sh
  13. 21
      sidecar-firefox/site.yml
  14. 4
      site.yml

2
auto-complete.sh

@ -4,7 +4,7 @@ function libs()
{
if [ "$1" != "" ];
then
COMPREPLY=($(compgen -W "all xelatex-thesis infrastructure-as-code network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}"))
COMPREPLY=($(compgen -W "all xelatex-thesis infrastructure-as-code sidecar-firefox network-scanning network-adhoc raspi-docker tech-list faq sensor-node ssh-tunneling iptables poc-datacollector help" "${COMP_WORDS[$COMP_CWORD]}"))
fi
}

9
build.sh

@ -45,6 +45,8 @@ usage ()
echo ""
echo -e " ${txtg}raspi-docker:${NOCOLOR} This tutorial demonstrates, howto setup docker on Raspberry PI & howto use it "
echo ""
echo -e " ${txtg}sidecar-firefox:${NOCOLOR} This tutorial demonstrates, howto setup firefox & howto use it as sidecar"
echo ""
echo -e " ${txtg}sensor-node:${NOCOLOR} This tutorial demonstrates, howto create a mote with Raspberry Pi and Arduino & howto use it "
echo ""
echo -e " ${txtg}ssh-tunneling:${NOCOLOR} This tutorial demonstrates, howto create a ssh-tunneling & howto use it "
@ -123,6 +125,13 @@ do
COMMAND_CREATE=1
;;
sidecar-firefox)
DESC="sidecar-firefox" ;
build="build.sh" ;
docdir="sidecar-firefox" ;
COMMAND_CREATE=1
;;
xelatex-thesis)
DESC="xelatex-thesis" ;
build="build.sh" ;

21
infrastructure-as-code/modules/ROOT/pages/index.adoc

@ -8,30 +8,29 @@ image::ROOT:swarmlab.png[swarmlab,150,float=right]
Imaging
* a single click and you’re able to get a full server up and running.
* one click and you can run a full server
** include your favorite operating system,
** to include your favorite operating system
** applications
** security rules
** and custom settings.
** and custom settings
And the configuration
*and this can be reproduced tens, hundreds or even thousands of times, all without human intervention*
can be replicated dozens, hundreds, or even thousands of times, all without human intervention.
Thats the world of infrastructure as code, IaC for short.
====
*Thats the world of infrastructure as code, IaC for short*
IaC is a process where, you define a configuration template with all the required settings and customizations, and a provisioning tool will take care of the rest.
IaC is a process where instead of manually setting up every server, you define a configuration script with all the required settings and customizations, and a provisioning tool will take care of the rest.
====
== implement infrastructure-as-code
To successfully implement infrastructure-as-code
and To keep the concept simple we will use:
To successfully implement the infrastructure-as-code and to keep the concept simple we will use
* git for "Code Repository and Versioning"
@ -103,7 +102,7 @@ edit inverntory.yml (ifconfig, nmap etc)
run fluentd.yml.sh
TIP: make a cup off cafe!
TIP: It's time to relax and have a cup of coffee!
====

5
sidecar-firefox/antora.yml

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

BIN
sidecar-firefox/modules/ROOT/images/adhoc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

BIN
sidecar-firefox/modules/ROOT/images/swarmlab.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
sidecar-firefox/modules/ROOT/images/trafic.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

BIN
sidecar-firefox/modules/ROOT/images/vehigle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

1
sidecar-firefox/modules/ROOT/nav.adoc

@ -0,0 +1 @@
* xref:index.adoc[firefox]

39
sidecar-firefox/modules/ROOT/pages/index.adoc

@ -0,0 +1,39 @@
= Sidecar firefox!
image::ROOT:swarmlab.png[swarmlab,150,float=right]
== What is a "sidecar"?
A Sidecar container is a container added to the a Network swarm.
Be placed it in a Network you can use the same resources being used by the main Network swarm.
With the Embedded container as a sicedar you are capable to access the resource.
== Usage
=== run instance
* Run "microservice-firefox"
** Instances->running Containers->Actions [microservice-firefox_masterservice_1]
=== Attach network
** Instances->running Containers->Actions [microservice-firefox_masterservice_1]
*** Networks->"Select Network"
=== open Gui
** Instances->running Containers->Actions [microservice-firefox_masterservice_1]->openGui

4
sidecar-firefox/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
sidecar-firefox/run/build.sh

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

21
sidecar-firefox/site.yml

@ -0,0 +1,21 @@
site:
title: Swarmlab sidecar-firefox
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs
start_page: swarmlab_sidecar-firefox::index.adoc
content:
sources:
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: sidecar-firefox
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

4
site.yml

@ -49,6 +49,10 @@ content:
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: infrastructure-as-code
- url: https://git.swarmlab.io:3000/docs/Documentation.git
branches: master
start_path: sidecar-firefox
ui:
bundle:
url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip

Loading…
Cancel
Save