Code Monkey home page Code Monkey logo

moodle-saltstack's Introduction

moodle-saltstack

Description

moodle-saltstack is a set of SaltStack states designed for the automated installation and configuration of Moodle, an open-source learning management system. This project ensures a smooth and consistent deployment of Moodle with Nginx and PostgreSQL on Ubuntu 24.04 servers using Salt SSH .

Installation

To install and set up Moodle using this SaltStack routine, follow these steps:

  1. Install SaltStack: Follow the official SaltStack installation guide to install SaltStack on your local machine.
  2. Configure Salt SSH: Ensure Salt SSH is properly configured. You will need to configure the roster file to define the target servers. Example roster file:
myserver:
  host: 192.168.0.1
  user: myuser
  passwd: mypassword
  1. Clone the Repository:
    cd /srv/salt
    git clone https://github.com/gaydaci/moodle-saltstack.git
    cd moodle-saltstack
  2. Deploy on targets:
    salt-ssh '*' state.apply
    

States Structure

  • nginx: Installs the Nginx web server.
  • php8: Installs PHP version 8 and handles its configuration.
  • postgresql: Installs and sets up the PostgreSQL database server. Creates user and database for Moodle.
  • moodle: Manages the installation and configuration of the Moodle learning management system.
  • cfg_nginx: Configures the Nginx server, with the simple configuration in nginx/moodle.conf.
  • letsencrypt: Handles the generation and automatic installation of Let's Encrypt SSL certificates for Nginx using certbot.

moodle-saltstack's People

Contributors

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