This document discusses managing MariaDB databases with SUSE Manager and Salt. Key points include:
- SUSE Manager can be used to deploy, configure, and manage MariaDB across systems through states and other Salt elements.
- States define the desired configuration of systems and can install packages, manage services, and configure files for MariaDB.
- Additional Salt elements like beacons, reactors, and orchestration can monitor for changes, execute actions in response to events, and manage complex deployments.
- SUSE Manager provides centralized package management and software lifecycle management for MariaDB along with automated provisioning and configuration of new systems.
4. 4
SUSE Software Catalog: MariaDB
● MariaDB is listed in SUSE's
Software Catalog
www.suse.com/isvcatalog
● MariaDB 10 is certified for
SLES 11 and 12
5. 5
MariaDB on Open Build Service
● Find projects that already
build newer versions of
MariaDB for SLES 12
● Build bleeding edge
versions for SLES
● OBS Packages are
without support!
● build.opensuse.org
6. 6
MariaDB on SUSE Studio
● Creating Software
Appliances
● Use OBS repositories
● Several Formats
available:
● Preload (usb, iso)
● Live CD
● VM (vmdk, ovf, img, qcow2)
● Cloud (ami, vhd)
9. 9
Deploy & Manage MariaDB with SUSE Manager
● Provisioning new machines with autoinstallation
● Centralize Packages Management incl. MariaDB
● Build and Manage software stagings for controlled operations of
Development, Testing & Production landscapes
● Rollout configuration of MariaDB settings
● Monitor configuration changes
10. 10
Provision New Machines
Different Levels of Automation
● Without PXE
● Kickoff installation with boot iso
● Select autoinstall profile
● Answer individualization questions during installation
● (Move new system after installation to MariaDB group)
● With PXE
● Kickoff PXE boot
● Select autoinstall
● Answer individualization questions during installation
● (Move new system after installation to MariaDB group)
11. 11
Provision New Machines
Different Levels of Automation
● With PXE and SUSE Manager Discovery
● Kickoff PXE boot
● Select System in SUSE Manager for Deployment
● Provide all required individualization by variables
● Start Machine
12. 12
Installation Example – Step 1
● Prerequisits:
● Distribution
● Installation Profile
● Task:
● Boot via PXE
● Select Profile to Install
13. 13
Installation Example – Step 2
● Prerequisits
● Ask Section in Autoprofile
● Default values (script or listing)
● Task
● Fill in or select required values
15. 15
Installation Example – Finish
● Complete Automation
● Keys, Roles, Grains,
States made your system
ready to go
● Best Effort Automation
● General OS deployed
● Roles, Grains, States
manually assigned by
moving system into a
group
17. 17
SUSE Manager 3
States
Description of how a system configuration
• YAML
• Jinja2 Templating
• Uses Salt State Modules
Salt States Catalog
• SUSE Manager provides an integrated, central store for own states definitions
– Assignable to SUSE Manager Organization, Group, Systems
• Optional you can store an own structure of states within /srv/salt for
using non-integrated Salt Features
19. 19
SUSE Manager 3 – Salt Basics
Example State
install_mariadb:
pkg.installed:
- name: mariadb
service_mariadb:
service.running:
- name: mysql
- enable: True
config_files_mycnf:
file.managed:
- name: /etc/my.cnf
- source: salt://my.cnf
- user: root
- group: root
- mode: 640
20. 20
SUSE Manager 3 – Salt Basics
State Dependencies
Requisit declarations define dependency/order of single state statements:
● Require
● Watch
● Onchanges
● Prereq
● Onfail
● Use
21. 21
SUSE Manager 3 – Salt Basics
Example State
[...]
service_mariadb:
service.running:
- name: mysql
- enable: True
- watch:
- pkg: mariadb
- file: /etc/my.cnf
[...]
23. 23
SUSE Manager 3 – Salt Basics
SUSE Manager States assigned to Group
24. 24
SUSE Manager 3
Salt Elements Beyond States
Beacons
• Monitor for changes/thresholds and send events in case
Reactors
• Execute “run books” on specific events
Orchestration
• Manage relations/actions between servers up to firing complete setups in private
or public clouds
Proxy
• Use minioncontroller to manage devices that are not capable to host agent
(python etc.)