Skip to content

Instantly share code, notes, and snippets.

@joshribakoff
Created August 5, 2013 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshribakoff/6153282 to your computer and use it in GitHub Desktop.
Save joshribakoff/6153282 to your computer and use it in GitHub Desktop.
package {'php':
ensure => present,
before => File['/etc/php.ini'],
}
file {'/etc/php.ini':
ensure => file,
}
package {'httpd':
ensure => present,
}
service {'httpd':
ensure => running,
enable => true,
require => Package['httpd'],
subscribe => File['/etc/php.ini'],
}
package {'mysql-server':
ensure => 'present',
}
service {'mysqld':
ensure => running,
enable => true,
require => Package['mysql-server'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment