aboutsummaryrefslogtreecommitdiff
path: root/modules/pacman/templates
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-10 00:07:27 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-10 01:35:50 +0200
commit8ed6fb29b46bbac3f28adc0d0918a71b6a694322 (patch)
treeaa3f985daf920bf8a765a652354a682804feee07 /modules/pacman/templates
parent919d772aaa9bb6f298b1d0a433b6b32d15c0410f (diff)
downloadPuppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.tar.gz
Puppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.tar.zst
Puppet-8ed6fb29b46bbac3f28adc0d0918a71b6a694322.zip
Add pacman configuration
Diffstat (limited to 'modules/pacman/templates')
-rw-r--r--modules/pacman/templates/pacman.conf.customrepo.erb6
-rw-r--r--modules/pacman/templates/pacman.conf.main.erb103
-rw-r--r--modules/pacman/templates/pacman.conf.repo.erb15
3 files changed, 124 insertions, 0 deletions
diff --git a/modules/pacman/templates/pacman.conf.customrepo.erb b/modules/pacman/templates/pacman.conf.customrepo.erb
new file mode 100644
index 0000000..91e66fe
--- /dev/null
+++ b/modules/pacman/templates/pacman.conf.customrepo.erb
@@ -0,0 +1,6 @@
1
2# An example of a custom package repository. See the pacman manpage for
3# tips on creating your own repositories.
4#[custom]
5#SigLevel = Optional TrustAll
6#Server = file:///home/custompkgs
diff --git a/modules/pacman/templates/pacman.conf.main.erb b/modules/pacman/templates/pacman.conf.main.erb
new file mode 100644
index 0000000..2c2df5b
--- /dev/null
+++ b/modules/pacman/templates/pacman.conf.main.erb
@@ -0,0 +1,103 @@
1#
2# /etc/pacman.conf
3#
4# See the pacman.conf(5) manpage for option and repository directives
5
6#
7# GENERAL OPTIONS
8#
9[options]
10# The following paths are commented out with their default values listed.
11# If you wish to use different paths, uncomment and update the paths.
12#RootDir = /
13RootDir = <%= @rootdir %>
14
15#DBPath = /var/lib/pacman/
16DBPath = <%= @dbpath %>
17
18#CacheDir = /var/cache/pacman/pkg/
19CacheDir = <%= @cachedir %>
20
21#LogFile = /var/log/pacman.log
22LogFile = <%= @logfile %>
23
24#GPGDir = /etc/pacman.d/gnupg/
25GPGDir = <%= @gpgdir %>
26
27#HoldPkg = pacman glibc
28HoldPkg = <%= @holdpkg %>
29
30#XferCommand = /usr/bin/curl -C - -f %u > %o
31#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
32XferCommand = <%= @xfercommand %>
33
34#CleanMethod = KeepInstalled
35CleanMethod = <%= @cleanmethod %>
36
37#UseDelta = 0.7
38UseDelta = <%= @usedelta %>
39
40#Architecture = auto
41Architecture = <%= @architecture %>
42
43# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
44IgnorePkg = <%= @ignorepkg %>
45IgnoreGroup = <%= @ignoregroup %>
46
47NoUpgrade = <%= @noupgrade %>
48NoExtract = <%= @noextract %>
49
50# Misc options
51#UseSyslog
52<% if @usesyslog -%>
53UseSyslog
54<% end -%>
55#color
56<% if @color -%>
57Color
58<% end -%>
59#TotalDownload
60<% if @totaldownload -%>
61TotalDownload
62<% end -%>
63#CheckSpace
64<% if @checkspace -%>
65CheckSpace
66<% end -%>
67#VerbosePkgLists
68<% if @verbosepkglist -%>
69VerbosePkgLists
70<% end -%>
71
72# By default, pacman accepts packages signed by keys that its local keyring
73# trusts (see pacman-key and its man page), as well as unsigned packages.
74SigLevel = <%= @mainsiglevel %>
75LocalFileSigLevel = <%= @localfilesiglevel %>
76RemoteFileSigLevel = <%= @remotefilesiglevel %>
77
78# NOTE: You must run `pacman-key --init` before first using pacman; the local
79# keyring can then be populated with the keys of all official Arch Linux
80# packagers with `pacman-key --populate archlinux`.
81
82#
83# REPOSITORIES
84# - can be defined here or included from another file
85# - pacman will search repositories in the order defined here
86# - local/custom mirrors can be added here or in separate files
87# - repositories listed first will take precedence when packages
88# have identical names, regardless of version number
89# - URLs will have $repo replaced by the name of the current repo
90# - URLs will have $arch replaced by the name of the architecture
91#
92# Repository entries are of the format:
93# [repo-name]
94# Server = ServerName
95# Include = IncludePath
96#
97# The header [repo-name] is crucial - it must be present and
98# uncommented to enable the repo.
99#
100
101# The testing repositories are disabled by default. To enable, uncomment the
102# repo name header and Include lines. You can add preferred servers immediately
103# after the header, and they will be used before the default mirrors.
diff --git a/modules/pacman/templates/pacman.conf.repo.erb b/modules/pacman/templates/pacman.conf.repo.erb
new file mode 100644
index 0000000..8038c47
--- /dev/null
+++ b/modules/pacman/templates/pacman.conf.repo.erb
@@ -0,0 +1,15 @@
1
2[<%= @name %>]
3<% if @description -%>
4# Description: <%= @description %>
5<% end -%>
6# Order: <%= @order %>
7<%if @siglevel -%>
8SigLevel = <%= @siglevel %>
9<% end -%>
10<%if @server -%>
11Server = <%= @server %>
12<% end -%>
13<%if @include -%>
14Include = <%= @include%>
15<% end -%>