"blog.openstreetmap.net", "blog.openstreetmaps.org",
"blog.osmfoundation.org"]
ssl_enabled true
- ssl_certificate "osmfoundation"
- ssl_certificate_chain "startcom"
directory "/srv/blog.openstreetmap.org/wp"
database_name "osm-blog"
database_user "osm-blog-user"
directory site_directory
variables :aliases => Array(new_resource.aliases),
:urls => new_resource.urls,
- :ssl_enabled => new_resource.ssl_enabled,
- :ssl_certificate => new_resource.ssl_certificate,
- :ssl_certificate_chain => new_resource.ssl_certificate_chain
+ :ssl_enabled => new_resource.ssl_enabled
reload_apache false
end
attribute :database_password, :kind_of => String, :required => true
attribute :database_prefix, :kind_of => String, :default => "wp_"
attribute :ssl_enabled, :kind_of => [TrueClass, FalseClass], :default => false
-attribute :ssl_certificate, :kind_of => String
-attribute :ssl_certificate_chain, :kind_of => String
attribute :urls, :kind_of => Hash, :default => {}
attribute :reload_apache, :kind_of => [TrueClass, FalseClass], :default => true
ServerAdmin webmaster@openstreetmap.org
- #
- # Enable SSL
- #
SSLEngine on
-<% if @ssl_certificate -%>
- SSLCertificateFile /etc/ssl/certs/<%= @ssl_certificate %>.pem
- SSLCertificateKeyFile /etc/ssl/private/<%= @ssl_certificate %>.key
-<% end -%>
-<% if @ssl_certificate -%>
- SSLCertificateChainFile /etc/ssl/certs/<%= @ssl_certificate_chain %>.pem
-<% end -%>
+ SSLCertificateFile /etc/ssl/certs/<%= @name %>.pem
+ SSLCertificateKeyFile /etc/ssl/private/<%= @name %>.key
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log