Created
October 11, 2013 05:16
-
-
Save atton/6929906 to your computer and use it in GitHub Desktop.
Fedora19 with MySQL on Vagrant and puppet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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'] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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