Skip to content

Instantly share code, notes, and snippets.

@atton
Created October 11, 2013 05:16
Show Gist options
  • Save atton/6929906 to your computer and use it in GitHub Desktop.
Save atton/6929906 to your computer and use it in GitHub Desktop.
Fedora19 with MySQL on Vagrant and puppet
# -*- mode: ruby -*-
# vi: set ft=ruby :
package { 'net-tools':
ensure => latest
}
file { '/etc/hostname':
ensure => present,
content => 'localhost.localdomain',
}
$install_yum_packages = [
'community-mysql',
'community-mysql-server'
]
package { $install_yum_packages:
ensure => latest,
require => Exec['yum-update']
}
exec { 'yum-update':
command => '/usr/bin/yum update -y',
timeout => 0
}
service { 'mysqld':
enable => true,
require => Package['community-mysql-server']
}
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "fedora-19"
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "mysql.pp"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment