diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-03-21 15:23:28 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-03-21 15:49:27 +0100 |
commit | 841494767100e6abebde6e800796cf19e1f797e8 (patch) | |
tree | adda2cb084de9b1cfa3da7ec03b5566f525d9fac /templates | |
parent | Fix metadata. (diff) | |
download | pacman-841494767100e6abebde6e800796cf19e1f797e8.tar.gz pacman-841494767100e6abebde6e800796cf19e1f797e8.tar.xz |
Basically rewrote everything.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/hook.epp | 8 | ||||
-rw-r--r-- | templates/pacman.conf.epp | 43 | ||||
-rw-r--r-- | templates/repo.epp | 13 |
3 files changed, 60 insertions, 4 deletions
diff --git a/templates/hook.epp b/templates/hook.epp index 08377d9..bdc4c15 100644 --- a/templates/hook.epp +++ b/templates/hook.epp @@ -3,8 +3,8 @@ String $exec, Enum['PreTransation', 'PostTransaction'] $when, Array[String] $depends, - Boolean $abortOnFail, - Boolean $needsTargets, + Boolean $abort_on_fail, + Boolean $needs_targets, | -%> # Managed by Puppet @@ -27,5 +27,5 @@ When = <%= $when %> <%- $depends.each |$depend| { -%> Depends = <%= $depend %> <%- } -%> -<%- if ($abortOnFail) { -%>AbortOnFail<% } %> -<%- if ($needsTargets) { -%>NeedsTargets<% } %> +<%- if ($abort_on_fail) { -%>AbortOnFail<% } %> +<%- if ($needs_targets) { -%>NeedsTargets<% } %> diff --git a/templates/pacman.conf.epp b/templates/pacman.conf.epp new file mode 100644 index 0000000..ee68a80 --- /dev/null +++ b/templates/pacman.conf.epp @@ -0,0 +1,43 @@ +# +# GENERAL OPTIONS +# +[options] +# The following paths are commented out with their default values listed. +# If you wish to use different paths, uncomment and update the paths. +#RootDir = / +#DBPath = /var/lib/pacman/ +#CacheDir = /var/cache/pacman/pkg/ +#LogFile = /var/log/pacman.log +#GPGDir = /etc/pacman.d/gnupg/ +#HookDir = /etc/pacman.d/hooks/ +HookDir = <%= $pacman::hooks_.join(' ') %> +HoldPkg = pacman glibc +#XferCommand = /usr/bin/curl -L -C - -f -o %o %u +#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u +#CleanMethod = KeepInstalled +Architecture = auto +<% if $pacman::ilovecandy { %>ILoveCandy<% } %> + +# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup +#IgnorePkg = +#IgnoreGroup = + +#NoUpgrade = +#NoExtract = + +# Misc options +#UseSyslog +#Color +#NoProgressBar +CheckSpace +#VerbosePkgLists +<% if $pacman::parallel_downloads_ { -%> +ParallelDownloads = <%= $pacman::parallel_downloads_ %> +<%- } %> + +# By default, pacman accepts packages signed by keys that its local keyring +# trusts (see pacman-key and its man page), as well as unsigned packages. +SigLevel = Required DatabaseOptional +LocalFileSigLevel = Optional +#RemoteFileSigLevel = Required + diff --git a/templates/repo.epp b/templates/repo.epp new file mode 100644 index 0000000..a988cf2 --- /dev/null +++ b/templates/repo.epp @@ -0,0 +1,13 @@ +<%- | String $name, + Optional[String] $siglevel = undef, + Optional[String] $usage = undef, + Array[String] $source | -%> + +[<%= $name %>] +<%= $source.join('\n') %> +<% if $siglevel { %> +SigLevel = <%= $siglevel %> +<% } %> +<% if $usage { %> +Usage = <%= $usage %> +<% } %> |