summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-30 23:08:56 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-30 23:08:56 -0500
commitd2c61b8c5ab0eda6b68abe8186be1b2487b91fc6 (patch)
treef9f625685247ca77a5761aa3d699e6d786f778e5
parentea91c59b343dec18f600805a94cc11536432e69e (diff)
downloadpuppet-tozt-d2c61b8c5ab0eda6b68abe8186be1b2487b91fc6.tar.gz
puppet-tozt-d2c61b8c5ab0eda6b68abe8186be1b2487b91fc6.zip
install a custom mirrorlist for tozt too
-rw-r--r--modules/tozt/files/mirrorlist5
-rw-r--r--modules/tozt/manifests/operatingsystem.pp6
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/tozt/files/mirrorlist b/modules/tozt/files/mirrorlist
new file mode 100644
index 0000000..d1c515d
--- /dev/null
+++ b/modules/tozt/files/mirrorlist
@@ -0,0 +1,5 @@
+Server = https://arch.mirror.constant.com/$repo/os/$arch
+Server = https://mirrors.sorengard.com/archlinux/$repo/os/$arch
+Server = https://mirror.stephen304.com/archlinux/$repo/os/$arch
+Server = https://mirror.wdc1.us.leaseweb.net/archlinux/$repo/os/$arch
+Server = https://mirrors.rit.edu/archlinux/$repo/os/$arch
diff --git a/modules/tozt/manifests/operatingsystem.pp b/modules/tozt/manifests/operatingsystem.pp
new file mode 100644
index 0000000..f5da5bb
--- /dev/null
+++ b/modules/tozt/manifests/operatingsystem.pp
@@ -0,0 +1,6 @@
+class tozt::operatingsystem {
+ file { '/etc/pacman.d/mirrorlist':
+ source => 'puppet:///modules/tozt/mirrorlist';
+ }
+ File['/etc/pacman.d/mirrorlist'] -> Package<| provider == "pacman" |>
+}