Seite wählen

NETWAYS Blog

Ansible – check your data

The automation and deployment tool Ansible is able to configure applications in multiple environments. This is possible due to variables used in Roles.

Variables are key to make roles reusable, but without proper documentation or descriptions they can get complicated.
If you want to provide different scenarios which are defined by specific variables, you can provide a good documentation and hope it will be seen and understood, otherwise users will get failed runs.

But instead of failed runs with cryptic messages which show that the used variables are wrong, we can easily check beforehand if the variables are set correctly.

The Ansible module ansible.builtin.assert can provide the solution to this problem.

With Ansible when expressions you can define rules and check variables. If the conditions aren’t true the module will fail with a custom message or if true, reward the user with a custom „OK“ message.


- assert:
    that: role_enable_feature is true and role_feature_settings is defined 
    success_msg: The feature is configured correctly and will be managed. 
    fail_msg: To use the feature please configure the variable role_feature_settings, please look at the documentation section X.

With this module it’s easy to guide users when they forgot to use a specific variable or if they use multiple variables which shouldn’t be used together.

If you want to learn more about Ansible, checkout our Ansible Trainings or read more on our blog.

Thilo Wening
Thilo Wening
Manager Consulting

Thilo hat bei NETWAYS mit der Ausbildung zum Fachinformatiker, Schwerpunkt Systemadministration begonnen und unterstützt nun nach erfolgreich bestandener Prüfung tatkräftig die Kollegen im Consulting. In seiner Freizeit ist er athletisch in der Senkrechten unterwegs und stählt seine Muskeln beim Bouldern. Als richtiger Profi macht er das natürlich am liebsten in der Natur und geht nur noch in Ausnahmefällen in die Kletterhalle.

OSDC 2015: Thank you and see you again!

This year’s Open Source Data Center Conference has been a big success! With about
170 attendees from 12 countries we had one of the biggest and most international conferences so far.
We like to thank our sponsoring partners for their support!
Thomas Krenn and Linux Magazin are backing us and our conferences from the very beginning on and were of course part of this year’s OSDC   again.
Linux und TK-Kombi
 
 
We hope you all took the chance to visit Thomas Krenn at their booth and read a lot of issues of LINUX Magazin.
We are also very proud to welcome Attingo Data Rescue and ADMIN Magazine as two new partners and are looking forward to work with them again at future events.
Attingo und ADMIN Kombi
Maybe you already visited Attingo at their booth at the conference or read one of the ADMIN Magazines we distributed.
And of course we like to thank our speakers and attendees! It has been a pleasure to welcome you at the event! We hope to see you again at OSDC 2016!

Reminder für unser Webinar "Das Open Source Rechenzentrum"

netwaysAm Mittwoch starten wir auch wieder in 2015 mit unseren Webinaren durch – angefangen mit unserem Open Source Rechenzentrum. Neben unseren Dienstleistungen rund um Icinga, Icinga 2, Puppet und vielen weiteren Open Source Lösungen, sind wird auch im Hosting-Bereich aktiv. Dabei setzen wir unter anderem auf OpenNebula, Puppet, Foreman, Ceph und viele andere Tools um einen hochverfügbaren Betrieb unserer Kundenumgebungen sicherzustellen.
Im Rahmen des Webinars wollen wir einige Themen davon ansprechen und einen besseren Überblick verschaffen, wie unsere Infrastruktur aussieht.
Das Webinar findet am 11. Februar um 10:30 Uhr statt. Wer teilnehmen möchte, kann sich natürlich gerne noch registrieren! In unserem Webinar-Archiv finden sich bis dahin viele weitere Webinare, um die Wartezeit zu verkürzen.
Bis Mittwoch!

Christian Stein
Christian Stein
Manager Sales

Christian kommt ursprünglich aus der Personalberatungsbranche, wo er aber schon immer auf den IT Bereich spezialisiert war. Bei NETWAYS arbeitet er als Manager Sales und berät unsere Kunden in der vertrieblichen Phase rund um das Thema Monitoring. Gemeinsam mit Georg hat er sich Mitte 2012 auch an unserem Hardware-Shop "vergangen".