Giter VIP home page Giter VIP logo

collection_linuxha's Introduction

Introduction

I enjoy creating automation templates using the platform Ansible (by Red Hat).

Creating Ansible Roles and Modules/Collections should help others to get started faster.

Feedback is appreciated!

Principles

๐Ÿ’ญ User interaction

Keeping the user interaction clean and simple

  • Per example:

    If a network admin wants to configure a WireGuard VPN-Infrastructure he/she/... should not need to think about the role - just the abstracted topology!

  • Each role should use as few 'top-level' variables as possible

    Most roles will take ONE nested variable (dictionary)

  • Commonly redundant config is not accepable.

    The role should work its magic โœจ and handle it using inheritance, scoping and/or defaults

๐Ÿท Default = Opt-out

Preferring opt-out on optional features

  • IT-Infrastructure is a very sensitive domain.

    I hate it if some role/script does more than it should.

    That can lead to unpredictable results!

  • The roles allow the user to choose the features they want to opt-in.

๐Ÿ“— Documentation

Good documentation

  • The best tool is useless if you can not handle it..

    Documentation is the tools 'interface' and should be clean.

    I can't tell how often I came across a tool with a nice feature-set but could not use it as of the lack of good documentation!

  • Transparency is key when getting to know a role.

    Examples (config => result) are very vital for this.

    Not everybody wants to run the role to see what it actually does do.

๐Ÿ” Security

  • As security is very important in todays IT environment I'm checking my Roles and Modules/Collections for security best-practises.
  • Roles and Modules will at least warn you if unsecure settings are used or will not even fail on you if you use them in an unsecure way.
  • You should always use encrypted connectivity => Automation makes it very easy to add/generate certificates.

Epilog

Automation can save time and nerves, enables infrastructure-as-code (with all it's benefits) and scales well.

What are you waiting on? Automate! ๐Ÿ˜„


Have a nice day!

  • AnsibleGuy

collection_linuxha's People

Contributors

ansibleguy avatar

Stargazers

 avatar

Watchers

 avatar

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.