propellor

propellor config for hosts.
git clone git://git.ricketyspace.net/propellor.git
Log | Files | Refs | LICENSE

commit 02e50ef2fb270ef797f6b3771c1280412b7ab9d8
parent 8338248e03759cd24c9c5e67709a9ef8152b7f53
Author: rsiddharth <s@ricketyspace.net>
Date:   Wed, 16 May 2018 01:48:27 +0000

propellor spin

Diffstat:
config.hs | 23+++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)

diff --git a/config.hs b/config.hs @@ -682,6 +682,8 @@ lyra = host "lyra.ricketyspace.net" $props & ricketyspaceNetLyraCertKey -- cgit & rsCgitRC + -- git-daemon + & rsGitDaemonDefaults `onChange` Service.restarted "git-daemon" -- opendkim & File.dirExists "/etc/opendkim" & File.containsLines "/etc/opendkim.conf" ricketyspaceNetOpenDkimConf @@ -721,6 +723,8 @@ lyra = host "lyra.ricketyspace.net" $props & File.hasContent "/root/.tmux.conf" tmuxConf -- www-data config & User.hasGroup (User "www-data") (Group "pubs") + -- gitdaemon config + & User.hasGroup (User "gitdaemon") (Group "pubs") -- w config & User.accountFor (User "w") & User.hasGroup (User "w") (Group "pubs") @@ -1050,6 +1054,25 @@ rsCgitRC = File.hasContent "/etc/cgitrc" ["#" , "scan-path=/home/g/c" ] +-- git-daemon +rsGitDaemonDefaults :: Property UnixLike +rsGitDaemonDefaults = File.hasContent "/etc/default/git-daemon" [ + "# Defaults for git-daemon initscript" + , "# sourced by /etc/init.d/git-daemon" + , "" + , "#" + , "# This is a POSIX shell fragment" + , "#" + , "" + , "GIT_DAEMON_ENABLE=true" + , "GIT_DAEMON_USER=gitdaemon" + , "GIT_DAEMON_BASE_PATH=/home/g" + , "GIT_DAEMON_DIRECTORY=/home/g/c" + , "" + , "# Additional options that are passed to the Daemon." + , "GIT_DAEMON_OPTIONS=\"\"" + ] + --- postfix rsPostfixHeaderChecks :: Property DebianLike rsPostfixHeaderChecks = Postfix.mappedFile "/etc/postfix/header_checks"