Code Monkey home page Code Monkey logo

quadlet-demo's Introduction

Quadlet Demo

Mimic the Kubernetes Example: Deploying WordPress and MySQL with Persistent Volumes using Podman, Systemd and Quadlet

Deploy the demo using Ansible

  • Start a target machine
    • The demo was tested on a CentOS Stream 9 based EC2 instance
  • On your development machine:
    • Install ansible
      sudo dnf install ansible-core
      
    • Clone this repo
      git clone https://github.com/ygalblum/quadlet-demo.git
      
    • Install the required Galaxy collections
      ansible-galaxy collection install -r requirements.yml
      
    • Create the inventory.yml file:
      all:
        hosts:
          < FQDN or IP of the target machine >:
            ansible_connection: ssh
            ansible_user: < Username to connect with >
            ansible_ssh_private_key_file: < Location of the private key >
    • Run the playbook
      ansible-playbook playbook.yml
      
    • Open the machine's URL in a browser, using port 8000 and https:// and you should see the Wordpress setup page.

Deploy using Vagrant and libvirt

This repository contains a Vagrantfile, that can be used to create a new virtual machine and deploy the quadlet-demo using Ansible.

  • You need vagrant and vagrant-libvirt.
  • Fetch the box, per default this is generic/centos9s, using vagrant box add generic/centos9s.
  • Run vagrant up

To reach the container from the machine running vagrant you need to find out the Vagrant VM's IP address, e.g. by using the vagrant address plugin or roaming through the Ansible inventory file in .vagrant/provisioners/ansible/inventory/vagrant_ansible_inventory.

quadlet-demo's People

Contributors

ygalblum 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.