SlideShare a Scribd company logo
Setup MySQL using 
Puppet 
Configuration management with puppet 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Who am I? 
• Krishna Prajapati, MySQL Engineer at Olindata 
http://www.olindata.com/ 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Overview 
• What is puppet (for those not aware)? 
• What is MySQL? 
• Puppet Module selection 
• Install puppet module 
• Deploying MySQL client 
• Deploying MySQL Server 
• MySQL Management: database, user, grants 
• Questions 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
What is Puppet and why do we care? 
• Configuration management software 
- http://www.olindata.com/blog/2014/08/puppet-master-agent-setup 
- http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache- 
centos 
• Scales very well (from 1 to 200k+ nodes) 
• Multi-platform (windows, *nix, Mac OS, BSD) 
• Commercially supported Open Source 
• Infrastructure as code 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
What is MySQL ? 
• MySQL is a relational database management system 
(RDBMS) 
• Opensource 
• Multi-platform (windows, *nix, Mac OS, BSD) 
• MySQL Flavours 
- Percona 
- MariaDB 
• Central component of the widely used LAMP 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Puppet Module selection? 
1. Puppet forge https://forge.puppetlabs.com/ 
2. Supported modules. 
https://forge.puppetlabs.com/supported 
3. Repositories included in Linux Distributions 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Install puppet module 
[root@master]# puppet module search mysql 
Notice: Searching https://forgeapi.puppetlabs.com ... 
NAME DESCRIPTION AUTHOR KEYWORDS 
puppetlabs-mysql Mysql module @puppetlabs mysql centos rhel ubuntu 
debian 
alkivi-mysql Control MySQL server and allow database/user creation @alkivi debian mysql 
database 
example42-mysql Puppet module for mysql @example42 
example42 mysql 
. 
. 
. 
devopera-domysqldb MySQL installation and configuration module@devopera ubuntu rhel centos mysqld 
mysql 
jlondon-surrogate Puppet module to install Surrogate, an xtrabackup script @jlondon 
redhat ubuntu debian mysql 
[root@master]# 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Install puppet module 
[root@master]# puppet module install puppetlabs-mysql 
Notice: Preparing to install into /etc/puppet/modules ... 
Notice: Downloading from https://forgeapi.puppetlabs.com ... 
Notice: Installing -- do not interrupt ... 
/etc/puppet/modules 
└─┬ puppetlabs-mysql (v2.3.1) 
└── puppetlabs-stdlib (v4.3.2) 
[root@master]# 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
MySQL Client 
Deploying mysql client is very straight forward. 
/etc/puppet/manifests/site.pp 
node 'client.olindata.com' { 
class { 'mysql::client': } 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
MySQL Server 
Deploying mysql server is as simple as including mysql server 
class. 
/etc/puppet/modules/profile/manifests/mysql.pp 
class profile::mysql { 
class { '::mysql::server': 
root_password => 'strongpassword', 
override_options => { 'mysqld' => { 
'max_connections' => '1024' } } 
} 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
/etc/puppet/modules/role/manifests/database.pp 
class role::database { 
include profile::mysql 
} 
/etc/puppet/manifests/site.pp 
node 'client.olindata.com' { 
class { 'mysql::client': } 
} 
node 'server.olindata.com' { 
include role::database 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Creating mysql database 
• MySQL Server alone is nothing without mysql database. 
/etc/puppet/modules/profile/manifests/mysql.pp 
mysql::db { 'mydb': 
user => 'admin', 
password => 'secret', 
host => 'client.olindata.com ', 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
MySQL User 
• We need to configure user and grants, so we are able to 
provide permissions to the state of the table. 
/etc/puppet/modules/profile/manifests/mysql.pp 
mysql_user { 'root@127.0.0.1': 
ensure => 'present', 
max_connections_per_hour => '100', 
max_queries_per_hour => '200', 
max_updates_per_hour => '200', 
max_user_connections => '80', 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
MySQL Grants 
• Grants are the privileges, provided to access the 
database/tables 
/etc/puppet/modules/profile/manifests/mysql.pp 
mysql_grant { 'root@localhost/*.*': 
ensure => 'present', 
options => ['GRANT'], 
privileges => ['ALL'], 
table => '*.*', 
user => 'root@localhost', 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
MySQL Flavour Install 
• Other mysql flavours like MariaDB, Percona can be installed 
with the existing module ‘puppetlabs-mysql’ 
/etc/puppet/modules/profile/manifests/mysql.pp 
class profile::mysql { 
class { '::mysql::server': 
package_ensure => 'present', 
package_name => 'mariadb-server', 
} 
} 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Upcoming training 
• Puppet Fundamentals Training, Barcelona 
Monday, November 24, 2014 
• Puppet Fundamentals Training, Hyderabad 
Monday, November 24, 2014 
• Puppet Fundamentals Training, Pune 
Monday, December 1, 2014 
• Puppet Fundamentals Training, Singapore 
Wednesday, December 17, 2014 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Previous Webinars 
Managing files with puppet 
• by our CEO Walter Heck 
• Link: https://www.youtube.com/watch?v=7fjwrOGRnSc 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
We’re hiring! 
EU and Asia based 
trainers 
jobs@olindata.com 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing
Questions? 
@krishna / @olindata 
http://www.olindata.com 
krishna@olindata.com 
http://github.com/olindata 
OlinData Webinar 2014 - 
https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF 
MIbMsBg/edit?usp=sharing

More Related Content

What's hot

Django & Buildout (en)
Django & Buildout (en)Django & Buildout (en)
Django & Buildout (en)
zerok
 
Odoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenvOdoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenv
acsone
 
Prototyping in the cloud
Prototyping in the cloudPrototyping in the cloud
Prototyping in the cloud
Kirsten Hunter
 
Drupal Development : Tools, Tips, and Tricks
Drupal Development : Tools, Tips, and TricksDrupal Development : Tools, Tips, and Tricks
Drupal Development : Tools, Tips, and Tricks
Gerald Villorente
 
Hands on the Gradle
Hands on the GradleHands on the Gradle
Hands on the Gradle
Matthias Käppler
 
Introduction to Kalabox
Introduction to KalaboxIntroduction to Kalabox
Introduction to Kalabox
Gerald Villorente
 
Access google command list from the command line
Access google command list from the command lineAccess google command list from the command line
Access google command list from the command line
Ethan Lorance
 
Automated release management with team city & octopusdeploy - NDC 2013
Automated release management with team city & octopusdeploy - NDC 2013Automated release management with team city & octopusdeploy - NDC 2013
Automated release management with team city & octopusdeploy - NDC 2013
Kristoffer Deinoff
 
Bower - A package manager for the web
Bower - A package manager for the webBower - A package manager for the web
Bower - A package manager for the web
Larry Nung
 
Mehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp Köln
Walter Ebert
 
Screenshot as a service
Screenshot as a serviceScreenshot as a service
Screenshot as a service
KAI CHU CHUNG
 
Introduction to Express and Grunt
Introduction to Express and GruntIntroduction to Express and Grunt
Introduction to Express and Grunt
Peter deHaan
 
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
Tsuyoshi Yamamoto
 
Die .htaccess richtig nutzen
Die .htaccess richtig nutzenDie .htaccess richtig nutzen
Die .htaccess richtig nutzen
Walter Ebert
 
Front-end tools
Front-end toolsFront-end tools
Front-end tools
Gleb Vinnikov
 
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
Jake Borr
 
Using Composer with Drupal and Drush
Using Composer with Drupal and DrushUsing Composer with Drupal and Drush
Using Composer with Drupal and Drush
Pantheon
 
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
KAI CHU CHUNG
 
Drupal 101 V-0.1
Drupal 101 V-0.1Drupal 101 V-0.1
Drupal 101 V-0.1
Gerald Villorente
 
Docker Demo @ IuK Seminar
Docker Demo @ IuK SeminarDocker Demo @ IuK Seminar
Docker Demo @ IuK Seminar
Martin Scharm
 

What's hot (20)

Django & Buildout (en)
Django & Buildout (en)Django & Buildout (en)
Django & Buildout (en)
 
Odoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenvOdoo development workflow with pip and virtualenv
Odoo development workflow with pip and virtualenv
 
Prototyping in the cloud
Prototyping in the cloudPrototyping in the cloud
Prototyping in the cloud
 
Drupal Development : Tools, Tips, and Tricks
Drupal Development : Tools, Tips, and TricksDrupal Development : Tools, Tips, and Tricks
Drupal Development : Tools, Tips, and Tricks
 
Hands on the Gradle
Hands on the GradleHands on the Gradle
Hands on the Gradle
 
Introduction to Kalabox
Introduction to KalaboxIntroduction to Kalabox
Introduction to Kalabox
 
Access google command list from the command line
Access google command list from the command lineAccess google command list from the command line
Access google command list from the command line
 
Automated release management with team city & octopusdeploy - NDC 2013
Automated release management with team city & octopusdeploy - NDC 2013Automated release management with team city & octopusdeploy - NDC 2013
Automated release management with team city & octopusdeploy - NDC 2013
 
Bower - A package manager for the web
Bower - A package manager for the webBower - A package manager for the web
Bower - A package manager for the web
 
Mehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp KölnMehr Performance für WordPress - WordCamp Köln
Mehr Performance für WordPress - WordCamp Köln
 
Screenshot as a service
Screenshot as a serviceScreenshot as a service
Screenshot as a service
 
Introduction to Express and Grunt
Introduction to Express and GruntIntroduction to Express and Grunt
Introduction to Express and Grunt
 
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
第1回名古屋Grails/Groogy勉強会「Grailsを始めてみよう!」
 
Die .htaccess richtig nutzen
Die .htaccess richtig nutzenDie .htaccess richtig nutzen
Die .htaccess richtig nutzen
 
Front-end tools
Front-end toolsFront-end tools
Front-end tools
 
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
Drupal Console Deep Dive: How to Develop Faster and Smarter on Drupal 8
 
Using Composer with Drupal and Drush
Using Composer with Drupal and DrushUsing Composer with Drupal and Drush
Using Composer with Drupal and Drush
 
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
60分鐘完送百萬edm,背後雲端ci/cd實戰大公開
 
Drupal 101 V-0.1
Drupal 101 V-0.1Drupal 101 V-0.1
Drupal 101 V-0.1
 
Docker Demo @ IuK Seminar
Docker Demo @ IuK SeminarDocker Demo @ IuK Seminar
Docker Demo @ IuK Seminar
 

Similar to Webinar - Setup MySQL with Puppet

Webinar - Manage Galera Cluster with Puppet
Webinar - Manage Galera Cluster with PuppetWebinar - Manage Galera Cluster with Puppet
Webinar - Manage Galera Cluster with Puppet
OlinData
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014
Lars Thalmann
 
MySQL crash course by moshe kaplan
MySQL crash course by moshe kaplanMySQL crash course by moshe kaplan
MySQL crash course by moshe kaplan
Moshe Kaplan
 
Using Puppet in Small Infrastructures
Using Puppet in Small InfrastructuresUsing Puppet in Small Infrastructures
Using Puppet in Small Infrastructures
Rachel Andrew
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp Boston
Puppet
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?
Thava Alagu
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
Keith Hollman
 
OpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
OpenNebulaConf 2014 - Puppet and OpenNebula - David LutterkortOpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
OpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
OpenNebula Project
 
OpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
OpenNebula Conf 2014 | Puppet and OpenNebula - David LutterkortOpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
OpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
NETWAYS
 
Using Puppet - Real World Configuration Management
Using Puppet - Real World Configuration ManagementUsing Puppet - Real World Configuration Management
Using Puppet - Real World Configuration Management
James Turnbull
 
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
Frederic Descamps
 
PuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of PuppetPuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of Puppet
OlinData
 
PuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of PuppetPuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of Puppet
Walter Heck
 
Ansible MySQL MHA
Ansible MySQL MHAAnsible MySQL MHA
Ansible MySQL MHA
Alkin Tezuysal
 
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
Automating OSD and Post-OSD Configuration with Powershell and OrchestratorAutomating OSD and Post-OSD Configuration with Powershell and Orchestrator
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
Digicomp Academy AG
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
Ben Krug
 
Writing & Sharing Great Modules on the Puppet Forge
Writing & Sharing Great Modules on the Puppet ForgeWriting & Sharing Great Modules on the Puppet Forge
Writing & Sharing Great Modules on the Puppet Forge
Puppet
 
Deploying Django with Ansible
Deploying Django with AnsibleDeploying Django with Ansible
Deploying Django with Ansible
andrewmirskynet
 
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
Christian Sanabria MSc, PMP, CSM
 
Puppet quick start guide
Puppet quick start guidePuppet quick start guide
Puppet quick start guide
Suhan Dharmasuriya
 

Similar to Webinar - Setup MySQL with Puppet (20)

Webinar - Manage Galera Cluster with Puppet
Webinar - Manage Galera Cluster with PuppetWebinar - Manage Galera Cluster with Puppet
Webinar - Manage Galera Cluster with Puppet
 
MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014MySQL Fabric Tutorial, October 2014
MySQL Fabric Tutorial, October 2014
 
MySQL crash course by moshe kaplan
MySQL crash course by moshe kaplanMySQL crash course by moshe kaplan
MySQL crash course by moshe kaplan
 
Using Puppet in Small Infrastructures
Using Puppet in Small InfrastructuresUsing Puppet in Small Infrastructures
Using Puppet in Small Infrastructures
 
Writing & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp BostonWriting & Sharing Great Modules - Puppet Camp Boston
Writing & Sharing Great Modules - Puppet Camp Boston
 
How to Contribute Code to MySQL?
How to Contribute Code to MySQL?How to Contribute Code to MySQL?
How to Contribute Code to MySQL?
 
Meb Backup & Recovery Performance
Meb Backup & Recovery PerformanceMeb Backup & Recovery Performance
Meb Backup & Recovery Performance
 
OpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
OpenNebulaConf 2014 - Puppet and OpenNebula - David LutterkortOpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
OpenNebulaConf 2014 - Puppet and OpenNebula - David Lutterkort
 
OpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
OpenNebula Conf 2014 | Puppet and OpenNebula - David LutterkortOpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
OpenNebula Conf 2014 | Puppet and OpenNebula - David Lutterkort
 
Using Puppet - Real World Configuration Management
Using Puppet - Real World Configuration ManagementUsing Puppet - Real World Configuration Management
Using Puppet - Real World Configuration Management
 
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
OpenWorld 2014 - Schema Management: versioning and automation with Puppet and...
 
PuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of PuppetPuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of Puppet
 
PuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of PuppetPuppetCamp SEA 1 - Use of Puppet
PuppetCamp SEA 1 - Use of Puppet
 
Ansible MySQL MHA
Ansible MySQL MHAAnsible MySQL MHA
Ansible MySQL MHA
 
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
Automating OSD and Post-OSD Configuration with Powershell and OrchestratorAutomating OSD and Post-OSD Configuration with Powershell and Orchestrator
Automating OSD and Post-OSD Configuration with Powershell and Orchestrator
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
Writing & Sharing Great Modules on the Puppet Forge
Writing & Sharing Great Modules on the Puppet ForgeWriting & Sharing Great Modules on the Puppet Forge
Writing & Sharing Great Modules on the Puppet Forge
 
Deploying Django with Ansible
Deploying Django with AnsibleDeploying Django with Ansible
Deploying Django with Ansible
 
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
SQL Server 2014 Backup to Azure - SQL Saturday CR 2015
 
Puppet quick start guide
Puppet quick start guidePuppet quick start guide
Puppet quick start guide
 

More from OlinData

AWS Cost Control: Cloud Custodian
AWS Cost Control: Cloud CustodianAWS Cost Control: Cloud Custodian
AWS Cost Control: Cloud Custodian
OlinData
 
Introduction to 2FA on AWS
Introduction to 2FA on AWSIntroduction to 2FA on AWS
Introduction to 2FA on AWS
OlinData
 
AWS Data Migration case study: from tapes to Glacier
AWS Data Migration case study: from tapes to GlacierAWS Data Migration case study: from tapes to Glacier
AWS Data Migration case study: from tapes to Glacier
OlinData
 
Issuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vaultIssuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vault
OlinData
 
Log monitoring with Logstash and Icinga
Log monitoring with Logstash and IcingaLog monitoring with Logstash and Icinga
Log monitoring with Logstash and Icinga
OlinData
 
FOSDEM 2017: GitLab CI
FOSDEM 2017:  GitLab CIFOSDEM 2017:  GitLab CI
FOSDEM 2017: GitLab CI
OlinData
 
Cfgmgmtcamp 2017 docker is the new tarball
Cfgmgmtcamp 2017  docker is the new tarballCfgmgmtcamp 2017  docker is the new tarball
Cfgmgmtcamp 2017 docker is the new tarball
OlinData
 
Icinga 2 and Puppet - Automate Monitoring
Icinga 2 and Puppet - Automate MonitoringIcinga 2 and Puppet - Automate Monitoring
Icinga 2 and Puppet - Automate Monitoring
OlinData
 
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
Webinar - Auto-deploy Puppet Enterprise: Vagrant and OscarWebinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
OlinData
 
Webinar - High Availability and Distributed Monitoring with Icinga2
Webinar - High Availability and Distributed Monitoring with Icinga2Webinar - High Availability and Distributed Monitoring with Icinga2
Webinar - High Availability and Distributed Monitoring with Icinga2
OlinData
 
Webinar - Windows Application Management with Puppet
Webinar - Windows Application Management with PuppetWebinar - Windows Application Management with Puppet
Webinar - Windows Application Management with Puppet
OlinData
 
Webinar - Continuous Integration with GitLab
Webinar - Continuous Integration with GitLabWebinar - Continuous Integration with GitLab
Webinar - Continuous Integration with GitLab
OlinData
 
Webinar - Centralising syslogs with the new beats, logstash and elasticsearch
Webinar - Centralising syslogs with the new beats, logstash and elasticsearchWebinar - Centralising syslogs with the new beats, logstash and elasticsearch
Webinar - Centralising syslogs with the new beats, logstash and elasticsearch
OlinData
 
Icinga 2 and puppet: automate monitoring
Icinga 2 and puppet: automate monitoringIcinga 2 and puppet: automate monitoring
Icinga 2 and puppet: automate monitoring
OlinData
 
Webinar - Project Management for DevOps
Webinar - Project Management for DevOpsWebinar - Project Management for DevOps
Webinar - Project Management for DevOps
OlinData
 
Using puppet in a traditional enterprise
Using puppet in a traditional enterpriseUsing puppet in a traditional enterprise
Using puppet in a traditional enterprise
OlinData
 
Webinar - Scaling your Puppet infrastructure
Webinar - Scaling your Puppet infrastructureWebinar - Scaling your Puppet infrastructure
Webinar - Scaling your Puppet infrastructure
OlinData
 
Webinar - Managing your Docker containers and AWS cloud with Puppet
Webinar - Managing your Docker containers and AWS cloud with PuppetWebinar - Managing your Docker containers and AWS cloud with Puppet
Webinar - Managing your Docker containers and AWS cloud with Puppet
OlinData
 
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
OlinData
 
Workshop puppet (dev opsdays ams 2015)
Workshop puppet (dev opsdays ams 2015)Workshop puppet (dev opsdays ams 2015)
Workshop puppet (dev opsdays ams 2015)
OlinData
 

More from OlinData (20)

AWS Cost Control: Cloud Custodian
AWS Cost Control: Cloud CustodianAWS Cost Control: Cloud Custodian
AWS Cost Control: Cloud Custodian
 
Introduction to 2FA on AWS
Introduction to 2FA on AWSIntroduction to 2FA on AWS
Introduction to 2FA on AWS
 
AWS Data Migration case study: from tapes to Glacier
AWS Data Migration case study: from tapes to GlacierAWS Data Migration case study: from tapes to Glacier
AWS Data Migration case study: from tapes to Glacier
 
Issuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vaultIssuing temporary credentials for my sql using hashicorp vault
Issuing temporary credentials for my sql using hashicorp vault
 
Log monitoring with Logstash and Icinga
Log monitoring with Logstash and IcingaLog monitoring with Logstash and Icinga
Log monitoring with Logstash and Icinga
 
FOSDEM 2017: GitLab CI
FOSDEM 2017:  GitLab CIFOSDEM 2017:  GitLab CI
FOSDEM 2017: GitLab CI
 
Cfgmgmtcamp 2017 docker is the new tarball
Cfgmgmtcamp 2017  docker is the new tarballCfgmgmtcamp 2017  docker is the new tarball
Cfgmgmtcamp 2017 docker is the new tarball
 
Icinga 2 and Puppet - Automate Monitoring
Icinga 2 and Puppet - Automate MonitoringIcinga 2 and Puppet - Automate Monitoring
Icinga 2 and Puppet - Automate Monitoring
 
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
Webinar - Auto-deploy Puppet Enterprise: Vagrant and OscarWebinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
Webinar - Auto-deploy Puppet Enterprise: Vagrant and Oscar
 
Webinar - High Availability and Distributed Monitoring with Icinga2
Webinar - High Availability and Distributed Monitoring with Icinga2Webinar - High Availability and Distributed Monitoring with Icinga2
Webinar - High Availability and Distributed Monitoring with Icinga2
 
Webinar - Windows Application Management with Puppet
Webinar - Windows Application Management with PuppetWebinar - Windows Application Management with Puppet
Webinar - Windows Application Management with Puppet
 
Webinar - Continuous Integration with GitLab
Webinar - Continuous Integration with GitLabWebinar - Continuous Integration with GitLab
Webinar - Continuous Integration with GitLab
 
Webinar - Centralising syslogs with the new beats, logstash and elasticsearch
Webinar - Centralising syslogs with the new beats, logstash and elasticsearchWebinar - Centralising syslogs with the new beats, logstash and elasticsearch
Webinar - Centralising syslogs with the new beats, logstash and elasticsearch
 
Icinga 2 and puppet: automate monitoring
Icinga 2 and puppet: automate monitoringIcinga 2 and puppet: automate monitoring
Icinga 2 and puppet: automate monitoring
 
Webinar - Project Management for DevOps
Webinar - Project Management for DevOpsWebinar - Project Management for DevOps
Webinar - Project Management for DevOps
 
Using puppet in a traditional enterprise
Using puppet in a traditional enterpriseUsing puppet in a traditional enterprise
Using puppet in a traditional enterprise
 
Webinar - Scaling your Puppet infrastructure
Webinar - Scaling your Puppet infrastructureWebinar - Scaling your Puppet infrastructure
Webinar - Scaling your Puppet infrastructure
 
Webinar - Managing your Docker containers and AWS cloud with Puppet
Webinar - Managing your Docker containers and AWS cloud with PuppetWebinar - Managing your Docker containers and AWS cloud with Puppet
Webinar - Managing your Docker containers and AWS cloud with Puppet
 
1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster1 m+ qps on mysql galera cluster
1 m+ qps on mysql galera cluster
 
Workshop puppet (dev opsdays ams 2015)
Workshop puppet (dev opsdays ams 2015)Workshop puppet (dev opsdays ams 2015)
Workshop puppet (dev opsdays ams 2015)
 

Recently uploaded

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
kumardaparthi1024
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
Techgropse Pvt.Ltd.
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
danishmna97
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
IndexBug
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Speck&Tech
 

Recently uploaded (20)

Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
GenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizationsGenAI Pilot Implementation in the organizations
GenAI Pilot Implementation in the organizations
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdfAI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
AI-Powered Food Delivery Transforming App Development in Saudi Arabia.pdf
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
How to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptxHow to Get CNIC Information System with Paksim Ga.pptx
How to Get CNIC Information System with Paksim Ga.pptx
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial IntelligenceAI 101: An Introduction to the Basics and Impact of Artificial Intelligence
AI 101: An Introduction to the Basics and Impact of Artificial Intelligence
 
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
Cosa hanno in comune un mattoncino Lego e la backdoor XZ?
 

Webinar - Setup MySQL with Puppet

  • 1. Setup MySQL using Puppet Configuration management with puppet OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 2. Who am I? • Krishna Prajapati, MySQL Engineer at Olindata http://www.olindata.com/ OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 3. Overview • What is puppet (for those not aware)? • What is MySQL? • Puppet Module selection • Install puppet module • Deploying MySQL client • Deploying MySQL Server • MySQL Management: database, user, grants • Questions OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 4. What is Puppet and why do we care? • Configuration management software - http://www.olindata.com/blog/2014/08/puppet-master-agent-setup - http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache- centos • Scales very well (from 1 to 200k+ nodes) • Multi-platform (windows, *nix, Mac OS, BSD) • Commercially supported Open Source • Infrastructure as code OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 5. What is MySQL ? • MySQL is a relational database management system (RDBMS) • Opensource • Multi-platform (windows, *nix, Mac OS, BSD) • MySQL Flavours - Percona - MariaDB • Central component of the widely used LAMP OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 6. Puppet Module selection? 1. Puppet forge https://forge.puppetlabs.com/ 2. Supported modules. https://forge.puppetlabs.com/supported 3. Repositories included in Linux Distributions OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 7. Install puppet module [root@master]# puppet module search mysql Notice: Searching https://forgeapi.puppetlabs.com ... NAME DESCRIPTION AUTHOR KEYWORDS puppetlabs-mysql Mysql module @puppetlabs mysql centos rhel ubuntu debian alkivi-mysql Control MySQL server and allow database/user creation @alkivi debian mysql database example42-mysql Puppet module for mysql @example42 example42 mysql . . . devopera-domysqldb MySQL installation and configuration module@devopera ubuntu rhel centos mysqld mysql jlondon-surrogate Puppet module to install Surrogate, an xtrabackup script @jlondon redhat ubuntu debian mysql [root@master]# OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 8. Install puppet module [root@master]# puppet module install puppetlabs-mysql Notice: Preparing to install into /etc/puppet/modules ... Notice: Downloading from https://forgeapi.puppetlabs.com ... Notice: Installing -- do not interrupt ... /etc/puppet/modules └─┬ puppetlabs-mysql (v2.3.1) └── puppetlabs-stdlib (v4.3.2) [root@master]# OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 9. MySQL Client Deploying mysql client is very straight forward. /etc/puppet/manifests/site.pp node 'client.olindata.com' { class { 'mysql::client': } } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 10. MySQL Server Deploying mysql server is as simple as including mysql server class. /etc/puppet/modules/profile/manifests/mysql.pp class profile::mysql { class { '::mysql::server': root_password => 'strongpassword', override_options => { 'mysqld' => { 'max_connections' => '1024' } } } } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 11. /etc/puppet/modules/role/manifests/database.pp class role::database { include profile::mysql } /etc/puppet/manifests/site.pp node 'client.olindata.com' { class { 'mysql::client': } } node 'server.olindata.com' { include role::database } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 12. Creating mysql database • MySQL Server alone is nothing without mysql database. /etc/puppet/modules/profile/manifests/mysql.pp mysql::db { 'mydb': user => 'admin', password => 'secret', host => 'client.olindata.com ', } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 13. MySQL User • We need to configure user and grants, so we are able to provide permissions to the state of the table. /etc/puppet/modules/profile/manifests/mysql.pp mysql_user { 'root@127.0.0.1': ensure => 'present', max_connections_per_hour => '100', max_queries_per_hour => '200', max_updates_per_hour => '200', max_user_connections => '80', } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 14. MySQL Grants • Grants are the privileges, provided to access the database/tables /etc/puppet/modules/profile/manifests/mysql.pp mysql_grant { 'root@localhost/*.*': ensure => 'present', options => ['GRANT'], privileges => ['ALL'], table => '*.*', user => 'root@localhost', } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 15. MySQL Flavour Install • Other mysql flavours like MariaDB, Percona can be installed with the existing module ‘puppetlabs-mysql’ /etc/puppet/modules/profile/manifests/mysql.pp class profile::mysql { class { '::mysql::server': package_ensure => 'present', package_name => 'mariadb-server', } } OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 16. Upcoming training • Puppet Fundamentals Training, Barcelona Monday, November 24, 2014 • Puppet Fundamentals Training, Hyderabad Monday, November 24, 2014 • Puppet Fundamentals Training, Pune Monday, December 1, 2014 • Puppet Fundamentals Training, Singapore Wednesday, December 17, 2014 OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 17. Previous Webinars Managing files with puppet • by our CEO Walter Heck • Link: https://www.youtube.com/watch?v=7fjwrOGRnSc OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 18. We’re hiring! EU and Asia based trainers jobs@olindata.com OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing
  • 19. Questions? @krishna / @olindata http://www.olindata.com krishna@olindata.com http://github.com/olindata OlinData Webinar 2014 - https://docs.google.com/presentation/d/1lstjM9TXsBBi1ESZivy1ejIaSpVVvkcOmagF MIbMsBg/edit?usp=sharing