Commits

Peter Eisentraut committed 5c7f63f

Add https

Comments (0)

Files changed (2)

   config.vm.box = "squeeze"
 
   config.vm.forward_port 80, 50080
+  config.vm.forward_port 443, 50443
 
   config.vm.provision :puppet do |puppet|
     puppet.manifest_file = "upgrade_puppet.pp"

manifests/pgci.pp

 class { 'apache': }
 class { 'apache::mod::proxy': }
 class { 'apache::mod::proxy_http': }
+class { 'apache::mod::ssl': }
 
 file { '/etc/apache2': ensure => directory }
 file { '/etc/apache2/conf.d': ensure => directory }
   notify => Service['httpd'],
 }
 
+file { '/etc/apache2/conf.d/pgci-ssl':
+  content => "\
+<VirtualHost _default_:443>
+  SSLEngine on
+  SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
+  SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
+
+  Include conf.d/pgci
+</VirtualHost>",
+
+  notify => Service['httpd'],
+}
+
 file { '/etc/default/jenkins':
   content => '
 JAVA=/usr/bin/java