diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 22:15:39 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-01-03 22:21:50 +0100 |
commit | c8e9b56cf3b7664e980f312b75c6bfac9b276703 (patch) | |
tree | 6a1a2dc13e88fe0b661b550d685e578f03a19051 /modules/blog/manifests/init.pp | |
parent | Allow lists in networkd config. (diff) | |
download | webdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.gz webdav_server-c8e9b56cf3b7664e980f312b75c6bfac9b276703.tar.xz |
stuff
Diffstat (limited to 'modules/blog/manifests/init.pp')
-rw-r--r-- | modules/blog/manifests/init.pp | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/modules/blog/manifests/init.pp b/modules/blog/manifests/init.pp deleted file mode 100644 index a639311..0000000 --- a/modules/blog/manifests/init.pp +++ /dev/null @@ -1,78 +0,0 @@ -define blog ( - String $root, -) { - vcsrepo { $root: - ensure => latest, - provider => git, - source => 'https://github.com/HugoNikanor/website-blog-2.git', - revision => 'master', - # keep_local_changes => true, - owner => 'hugo', - group => 'www-data', - } - - vcsrepo { "${root}/entries": - ensure => latest, - provider => git, - source => '/home/git/git/blog-entries.git', - revision => 'master', - owner => 'hugo', - group => 'www-data', - } - - file { "${root}/settings.php": - ensure => file, - content => @(EOF) - <?php - # FILE MANAGED BY PUPPET - $author = "Hugo Hornquist"; - $blog_title = "HugoNikanors blogg‽"; - $blog_subtitle = "A blog about nothing, but mostly itself."; - $http_host = $_SERVER["HTTP_HOST"]; - $urlbase = "http://$http_host/hugo"; - $has_comments = false; - | EOF - } - - file { "${root}/footnote": - ensure => directory, - recurse => true, - } - - $foot_files = [ - ['about.md', 'About'], - ['contact.md', 'Contact'], - ['legal.md', 'Legal'], - ['qna.md', '"Q&A"'], - ] - - $foot_files.each |$item| { - file { "${root}/footnote/${item[0]}": - source => "puppet:///modules/blog/footers/${item[0]}", - } - } - - - $files_ini = join($foot_files.map |$item| { - @("EOF") - files[] = ${item[0]} - title[] = ${item[1]} - | EOF - }) - - file { "${root}/special-files.ini": - ensure => file, - content => @("EOF") - ; FILE MANAGED BY PUPPET - ; - ; Which files on the website that are "special" - ; This basicly means that they shouldn't have comments - [footnote] - ${files_ini} - - [other] - files[] = list - files[] = entry-not-found.md - | EOF - } -} |