Skip to content

Instantly share code, notes, and snippets.

@jmathai
Created February 15, 2012 18:34
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 jmathai/1838031 to your computer and use it in GitHub Desktop.
Save jmathai/1838031 to your computer and use it in GitHub Desktop.
OpenPhoto puppet script
class openphoto {
exec { "apt-update":
command => "/usr/bin/apt-get update",
refreshonly => true;
}
# base
package {
"exiftran" :
ensure => installed,
}
package {
"libpcre3-dev" :
ensure => installed,
}
package {
"build-essential" :
ensure => installed,
}
# apache
package { "apache2":
ensure => present,
}
service { "apache2":
ensure => running,
require => Package["apache2"],
}
# php
package {
"php5" :
ensure => installed,
}
package {
"php5-curl" :
ensure => installed,
}
package {
"php5-gd" :
ensure => installed,
}
package {
"php5-mcrypt" :
ensure => installed,
}
package {
"php-apc" :
ensure => installed,
}
package {
"php5-imagick" :
ensure => installed,
}
package {
"libapache2-mod-php5" :
ensure => installed,
require => Package["php5"]
}
}
include openphoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment