The situation of maintained ansible roles for boring server stuff like setting up a LEMP stack (Linux, nginx, mariadb, php) is dire and I would like to improve that. This project is about creating a handful of ansible roles with focus on

  • Fully supported in openSUSE (Leap and Tumbleweed)
  • Configurable to fit a basic setup but not more
  • Automated testing of the deployment
  • If possible support all SLE variants (SLE > 15)
  • If possible support support for Debian, Ubuntu + RHEL, this is secondary though

Wishlist of roles I want to create

  • LEMP stack (Linux, nginx, mariadb, php)
  • LAMP stack (Linux, apache, mariadb, php)
  • PXE Boot server
  • Simple standalone mail server (postfix + dovecot)
  • Perhaps a openQA installation role, analog to the bootstrapping bash script

Looking for hackers with the skills:

ansible

This project is part of:

Hack Week 20

Activity

  • over 3 years ago: nicoladm liked this project.
  • over 3 years ago: nicoladm joined this project.
  • almost 4 years ago: jbaier_cz liked this project.
  • almost 4 years ago: toe liked this project.
  • almost 4 years ago: RicardoFelipeKlein liked this project.
  • almost 4 years ago: jadamek liked this project.
  • almost 4 years ago: pdostal liked this project.
  • almost 4 years ago: pdostal disliked this project.
  • almost 4 years ago: pdostal liked this project.
  • almost 4 years ago: ybonatakis liked this project.
  • almost 4 years ago: ph03nix started this project.
  • almost 4 years ago: ph03nix added keyword "ansible" to this project.
  • almost 4 years ago: ph03nix originated this project.

  • Comments

    • pagarcia
      almost 4 years ago by pagarcia | Reply

      Why not Salt? https://www.uyuni-project.org/uyuni-docs/uyuni/salt/formulas-custom.html

      In fact, why not go the extra mile and implement an Uyuni Cluster Provider (which is a Salt module and a one YAML file for the UI) to Uyuni? https://github.com/uyuni-project/uyuni/wiki/Cluster-Provider-development

      BTW: Uyuni already provides a formula to deploy a PXE boot server with Salt. It can be used with Salt alone too: https://github.com/SUSE/salt-formulas/tree/master/pxe-formula

    • ph03nix
      almost 4 years ago by ph03nix | Reply

      The reason I still prefer ansible over salt is that I hadn't any good experiences with agentless salt, which is 100% the use case I'm aiming for.

      However feel free to take that project. I'm sure, that to give people the choice to choose between ansible and salt is definitely of value to the openSUSE and SUSE communities! add-emoji

      • pagarcia
        almost 4 years ago by pagarcia | Reply

        I'm doing Windows management with Uyuni :-) https://hackweek.suse.com/20/projects/uyuni-slash-suse-manager-windows-client-support

    • ybonatakis
      almost 4 years ago by ybonatakis | Reply

      i am also in favor of ansible. it is more simple and clear IMO.

    • ph03nix
      almost 4 years ago by ph03nix | Reply

      As part of the work, I had to build a custom openSUSE Leap container that allows me to test the Ansible roles.

      I've wrote a blog post about creating a custom openSUSE Leap container

    • ph03nix
      almost 4 years ago by ph03nix | Reply

      Today was fairly successful: I've created the Geeko Ops organisation on GitHub and three roles:

      All roles are automatically tested with GitHub actions and use Molecule to deploy and test the corresponding role in a docker container.

    • ph03nix
      almost 4 years ago by ph03nix | Reply

      As finalizing touch, I've created https://geekoops.github.io/ and a rich webserver example there: https://geekoops.github.io/posts/20210326-example-webserver/

    • ph03nix
      almost 4 years ago by ph03nix | Reply

      As finalizing touch, I've created https://geekoops.github.io/ and a rich webserver example there

    • nicoladm
      over 3 years ago by nicoladm | Reply

      Nice one! we can probably add these roles (or any new ones!) to this project i created https://github.com/gnuninu/kwinble the aim there is to build a desired image with kiwi and the run ansible with roles to get a running VM (or multiple) which reflects the selected roles. For libvirt it should also support multiple kvm hosts....and looking also for a way to integrate cloud platform like Azure, AWS (in that case probably terraform, pulumi is the better option but code base and the dependencies grow proportionally)

    • nicoladm
      over 3 years ago by nicoladm | Reply

      linking my project Kwinble

    • ph03nix
      over 2 years ago by ph03nix | Reply

      Thanks for the link, I will keep this for the next hackweek project

    • nicoladm
      over 2 years ago by nicoladm | Reply

      Hi another ansible project i have created for HW21: https://hackweek.opensuse.org/21/projects/extend-k3s-ansible-support-with-new-functionalities-or-fork-slash-create-new-one

    Similar Projects

    Ansible for add-on management by lmanfredi

    Description

    Machines can contains various combinations of add-ons and are often modified during the time.

    The list of repos can change so I would like to create an automation able to reset the status to a given state, based on metadata available for these machines

    Goals

    Create an Ansible automation able to take care of add-on (repo list) configuration using metadata as reference

    Resources

    Results

    Created WIP project Ansible-add-on-openSUSE