summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-10-11 00:21:34 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-10-11 00:21:34 +0200
commit4048957881eba28d75ec108bc26aa04823d76045 (patch)
tree2facd91fd107e323af64357cd74e7efa10e678ea
parentFix metadata. (diff)
downloadcgit-4048957881eba28d75ec108bc26aa04823d76045.tar.gz
cgit-4048957881eba28d75ec108bc26aa04823d76045.tar.xz
Cleanup whitespace.
-rw-r--r--manifests/init.pp98
1 files 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
}
}
}