Code Monkey home page Code Monkey logo

ansiblejfs17's Introduction

Ansible Demo for Java Forum Stuttgart 2017

Demoprojekt für unseren Vortrag "Lohnt sich der Steinige Weg zum automatisiertem Deployment", den wir auf dem Java Forum Stuttgart am 6.7.2017 gehalten haben.

Vorbedingungen

Die Demoumgebung wurde mit Vagrant umgesetzt, um sie in Betrieb zu nehmen muss auf dem Hostsystem Vagrant (https://www.vagrantup.com/) installiert sein.

Inbetriebnahme

Projekt auschecken, in das Projektverzeichnis navigieren und folgenden Befehl ausführen

vagrant up

Beispiele für AdHoc Kommandos

Hostnamen der Maschinen abrufen:

$ ansible all -a "hostname"

HTOP auf dem Datenbankserver installieren:

$ ansible db -s -m apt -a "name=htop state=present"

Datei auf den Webservern anlegen:

$ ansible app -m file -a "path=/tmp/jfs2017 state=touch"

Testsystem mit ansible provisionieren

Für die erfolgreiche Ausführung wird eine Internetverbindung benötigt, da u.A. MySQL über das mysql Modul installiert wird, welches eine Internetverbindung benötigt. Für den Play wird das default Inventory /etc/ansible/hosts herangezogen.

$ cd jfs2017/ansible
$ ansible-playbook playbook.yml

Demoservice Aufrufe

Nach der Installation lässt sich der Service mit folgenden Beispielbefehlen aufrufen:

Alle Todos abrufen:

$ wget -qO- 192.168.60.4:8080/all

Todo hinzufügen:

$ wget --post-data=test 192.168.60.4:8080/todo1

ansiblejfs17's People

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

thomasvamos

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.