From 4048957881eba28d75ec108bc26aa04823d76045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 11 Oct 2022 00:21:34 +0200 Subject: Cleanup whitespace. --- manifests/init.pp | 98 +++++++++++++++++++++++++++---------------------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 1444d0d..c4e5334 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -1,13 +1,13 @@ class cgit ( - String $root = '/var/www/cgit', - String $filterpath = '/usr/lib/cgit/extra-filters', - String $root_title, - String $root_desc, - String $about_filter, - String $auth_filter, - String $source_filter, - String $scan_path, - Array[String] $clone_url, + String $root = '/var/www/cgit', + String $filterpath = '/usr/lib/cgit/extra-filters', + String $root_title, + String $root_desc, + String $about_filter, + String $auth_filter, + String $source_filter, + String $scan_path, + Array[String] $clone_url, Boolean $enable_http_clone = false, Array[String] $public_repos = [], Array[Struct[{ @@ -19,55 +19,55 @@ class cgit ( String $htpasswd = '/var/lib/nginx/cgit-htpasswd', ) { - # TODO figure out where CSS comes from + # TODO figure out where CSS comes from - ensure_packages([ + ensure_packages([ 'git', - 'cgit', - ], { ensure => installed }) + 'cgit', + ], { ensure => installed }) - file { '/etc/cgitrc': - ensure => file, - content => epp('cgit/cgitrc.epp'), - } + file { '/etc/cgitrc': + ensure => file, + content => epp('cgit/cgitrc.epp'), + } - file { "${root}/logo": - ensure => directory, - } + file { "${root}/logo": + ensure => directory, + } - file { "${root}/logo/logo.png": - ensure => file, - source => 'puppet:///modules/cgit/logo.png', - } + file { "${root}/logo/logo.png": + ensure => file, + source => 'puppet:///modules/cgit/logo.png', + } - file { "${root}/logo/logo_large.png": - ensure => file, - source => 'puppet:///modules/cgit/logo_large.png', - } + file { "${root}/logo/logo_large.png": + ensure => file, + source => 'puppet:///modules/cgit/logo_large.png', + } - file { "${root}/root_readme": - ensure => file, - source => 'puppet:///modules/cgit/root_readme', - } + file { "${root}/root_readme": + ensure => file, + source => 'puppet:///modules/cgit/root_readme', + } - file { dirname($filterpath): - ensure => directory, - } + file { dirname($filterpath): + ensure => directory, + } - file { $filterpath: - ensure => directory, - } + file { $filterpath: + ensure => directory, + } - [$about_filter, $source_filter].each |$f| { - file { "${filterpath}/${f}": - ensure => file, - source => "puppet:///modules/cgit/filters/${f}", - mode => stdlib::extname($f) ? { - '.lua' => '0444', - default => '0555', - }, - } - } + [$about_filter, $source_filter].each |$f| { + file { "${filterpath}/${f}": + ensure => file, + source => "puppet:///modules/cgit/filters/${f}", + mode => stdlib::extname($f) ? { + '.lua' => '0444', + default => '0555', + }, + } + } file { "${filterpath}/${auth_filter}": ensure => file, @@ -84,7 +84,7 @@ class cgit ( case $manage_server { false: {} 'nginx': { - include ::cgit::nginx + include ::cgit::nginx } } } -- cgit v1.2.3