summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-15 15:31:39 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-16 22:29:54 +0100
commit3d0835f402a65c5fe8f3f3780f41d23250170736 (patch)
tree6e517a20604feec7492f4db50b586f1d6f26da81 /manifests
parentFix certificate for wiki. (diff)
downloadprofiles-3d0835f402a65c5fe8f3f3780f41d23250170736.tar.gz
profiles-3d0835f402a65c5fe8f3f3780f41d23250170736.tar.xz
Add profile for website_blog_2.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/website_blog_2.pp25
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/website_blog_2.pp b/manifests/website_blog_2.pp
new file mode 100644
index 0000000..70df8e8
--- /dev/null
+++ b/manifests/website_blog_2.pp
@@ -0,0 +1,25 @@
+class profiles::website_blog_2 {
+ class { 'website_blog_2':
+ blog_root => '/var/www/blog',
+ domain => 'blog.hornquist.se',
+ domain_aliases => [
+ 'blogg.hornquist.se',
+ ],
+ }
+
+ website_blog_2::instance { 'hugo':
+ author => 'Hugo Hörnquist',
+ blog_title => 'HugoNikanors blogg‽',
+ subtitle => 'A blog about nothing, but mostly itself.',
+ # vcs_repo => 'https://git.hornquist.se/blog-entries.git',
+ }
+
+ nginx::resource::location { "${website_blog_2::blog_server_name} /":
+ server => $website_blog_2::blog_server_name,
+ location => '= /',
+ location_cfg_append => {
+ 'return' => '307 /hugo',
+ },
+ * => letsencrypt::conf::nginx::location($website_blog_2::domain),
+ }
+}