Skip to content

Instantly share code, notes, and snippets.

@baldurrensch
Created October 29, 2012 20:45
Show Gist options
  • Save baldurrensch/3976428 to your computer and use it in GitHub Desktop.
Save baldurrensch/3976428 to your computer and use it in GitHub Desktop.
Add Mysql
diff --git a/.puppet/modules/hautelook/manifests/init.pp b/.puppet/modules/hautelook/manifests/init.pp
index 19b88fd..46fadb1 100644
--- a/.puppet/modules/hautelook/manifests/init.pp
+++ b/.puppet/modules/hautelook/manifests/init.pp
@@ -69,6 +69,21 @@ class hautelook {
require => Package["memcached"]
}
+ package { "mysql-server":
+ ensure => installed,
+ provider => yum,
+ require => [ Yumrepo["remi"]]
+ }
+
+ service { "mysqld":
+ enable => true,
+ hasstatus => true,
+ hasrestart => true,
+ restart => "/etc/init.d/mysqld restart",
+ ensure => running,
+ require => Package["mysql-server"]
+ }
+
package { "nginx":
ensure => installed,
provider => yum,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment