Created
July 19, 2012 17:14
-
-
Save saegey/3145412 to your computer and use it in GitHub Desktop.
puppet for dev drupal
This file contains 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
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 => '[email protected]', | |
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