]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/tests/vhost_ssl.pp
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / tests / vhost_ssl.pp
diff --git a/3rdparty/modules/apache/tests/vhost_ssl.pp b/3rdparty/modules/apache/tests/vhost_ssl.pp
new file mode 100644 (file)
index 0000000..8e7a2b2
--- /dev/null
@@ -0,0 +1,23 @@
+## SSL-enabled vhosts
+# SSL-enabled vhosts respond only to HTTPS queries.
+
+# Base class. Turn off the default vhosts; we will be declaring
+# all vhosts below.
+class { 'apache':
+  default_vhost => false,
+}
+
+# Non-ssl vhost
+apache::vhost { 'first.example.com non-ssl':
+  servername => 'first.example.com',
+  port       => '80',
+  docroot    => '/var/www/first',
+}
+
+# SSL vhost at the same domain
+apache::vhost { 'first.example.com ssl':
+  servername => 'first.example.com',
+  port       => '443',
+  docroot    => '/var/www/first',
+  ssl        => true,
+}