Skip to content

Instantly share code, notes, and snippets.

@saegey
Created July 19, 2012 17:14
Show Gist options
  • Save saegey/3145412 to your computer and use it in GitHub Desktop.
Save saegey/3145412 to your computer and use it in GitHub Desktop.
puppet for dev drupal
include php
include apache
include apache::ssl
include apache::mod::rewrite
include apache::php
include pear
include ldap
include synapse-www
pear::package { "PEAR": }
pear::package { "drush":
version => "5.4.0",
repository => "pear.drush.org",
require => Pear::Package["PEAR"],
}
exec { "pecl install uploadprogress":
cwd => "/root",
path => ["/usr/bin", "/usr/sbin", "/bin"],
# onlyif => "pecl list | grep uploadprogress",
creates => "/usr/share/php/docs/uploadprogress",
logoutput => true,
}
package { [ "make", "zip", "unzip", "mysql-client" ]:
ensure => installed,
}
add_user { deployer:
uid => 6003,
groups => ['www-data']
}
apache::vhost::drupal { 'dev.synapse.com':
serveraliases => 'www.dev.synapse.com',
port => '443',
docroot => '/var/www/current',
logroot => '/var/log/apache2',
serveradmin => 'it@synapse.com',
ssl => true,
ssl_certificate_file => 'wildcard.crt',
ssl_certificate_key_file => 'wildcard.key',
loglevel => 'debug',
}
# class { 'ssl::common' : }
# ssl::config::apache2 { 'wildcard':
# tls_key => 'wildcard',
# tls_cert => 'wildcard',
# tls_chain => 'wildcard',
# }
file { '/etc/apache2/sites-enabled/000-default':
ensure => 'absent',
}
class {'puppet':
agent => true,
puppet_server => 'puppetmaster.synapsedev.com',
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment