diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-01 08:25:11 +0000 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-02-01 08:25:11 +0000 |
commit | 6d488c1513675c5fc009986cba1336c42b4f58bf (patch) | |
tree | 88ceae93833d78daab7f14225e25d2f39f1c56ba | |
parent | a0782f73c62f216992de2d60620711dded9046cb (diff) |
update things
-rw-r--r-- | config-base-collectd.PKGBUILD (renamed from config-mgmt-collectd.PKGBUILD) | 0 | ||||
-rw-r--r-- | config-base-pacman.PKGBUILD | 23 | ||||
-rw-r--r-- | config-mgmt-config.PKGBUILD | 17 | ||||
-rw-r--r-- | config-mgmt-pacman-repo-config.PKGBUILD | 17 | ||||
-rw-r--r-- | config-mgmt-pacman-repo-lukeshu.PKGBUILD | 16 | ||||
-rw-r--r-- | config-mgmt-pacman.PKGBUILD | 21 | ||||
-rw-r--r-- | config-service-myhostname.PKGBUILD | 39 |
7 files changed, 112 insertions, 21 deletions
diff --git a/config-mgmt-collectd.PKGBUILD b/config-base-collectd.PKGBUILD index ca7e4e9..ca7e4e9 100644 --- a/config-mgmt-collectd.PKGBUILD +++ b/config-base-collectd.PKGBUILD diff --git a/config-base-pacman.PKGBUILD b/config-base-pacman.PKGBUILD new file mode 100644 index 0000000..a815d45 --- /dev/null +++ b/config-base-pacman.PKGBUILD @@ -0,0 +1,23 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20170131 + +depends=(pacman) + +package() { +preamble +# #### pacman + +# In order for configuration sets to modularly adjust the pacman +# configuration, we patch `/etc/pacman.conf` to include +# `/etc/pacman.d/*.conf`. +add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/pacman.conf.holoscript <<EOF +#!/bin/sh +{ + grep -vxF 'Include = /etc/pacman.d/*.conf' + echo + echo 'Include = /etc/pacman.d/*.conf' +} | cat -s +EOF + +postamble +} diff --git a/config-mgmt-config.PKGBUILD b/config-mgmt-config.PKGBUILD new file mode 100644 index 0000000..2828fcb --- /dev/null +++ b/config-mgmt-config.PKGBUILD @@ -0,0 +1,17 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20170131 + +package() { +preamble + +depends+=( + config-mgmt-pacman-repo-config + config-mgmt-etckeeper + + # Until there is a suitable Holo in PCR + config-mgmt-pacman-repo-lukeshu + holo-lukeshu +) + +postamble +} diff --git a/config-mgmt-pacman-repo-config.PKGBUILD b/config-mgmt-pacman-repo-config.PKGBUILD new file mode 100644 index 0000000..7af21aa --- /dev/null +++ b/config-mgmt-pacman-repo-config.PKGBUILD @@ -0,0 +1,17 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20170131 + +package() { +preamble +# #### pacman + +depends+=(config-base-pacman) + +add-file etc/pacman.d/repo-config.conf <<EOF +[config] +SigLevel = Optional TrustAll +Server = https://config.parabola.nu/ +EOF + +postamble +} diff --git a/config-mgmt-pacman-repo-lukeshu.PKGBUILD b/config-mgmt-pacman-repo-lukeshu.PKGBUILD new file mode 100644 index 0000000..2d74b61 --- /dev/null +++ b/config-mgmt-pacman-repo-lukeshu.PKGBUILD @@ -0,0 +1,16 @@ +. ${BUILDFILE%/*}/common.sh +pkgver=20170131 + +package() { +preamble +# #### pacman + +depends+=(config-base-pacman) + +add-file etc/pacman.d/repo-lukeshu.conf <<EOF +[~lukeshu] +Include = /etc/pacman.d/mirrorlist +EOF + +postamble +} diff --git a/config-mgmt-pacman.PKGBUILD b/config-mgmt-pacman.PKGBUILD index a815d45..7fa5d31 100644 --- a/config-mgmt-pacman.PKGBUILD +++ b/config-mgmt-pacman.PKGBUILD @@ -1,22 +1,17 @@ . ${BUILDFILE%/*}/common.sh -pkgver=20170131 - -depends=(pacman) +pkgver=20170131.1 package() { preamble # #### pacman -# In order for configuration sets to modularly adjust the pacman -# configuration, we patch `/etc/pacman.conf` to include -# `/etc/pacman.d/*.conf`. -add-file -m755 usr/share/holo/files/10-"$pkgname"/etc/pacman.conf.holoscript <<EOF -#!/bin/sh -{ - grep -vxF 'Include = /etc/pacman.d/*.conf' - echo - echo 'Include = /etc/pacman.d/*.conf' -} | cat -s +depends+=(config-base-pacman) + +add-file etc/pacman.d/options.conf <<EOF +[options] +Color +TotalDownload +VerbosePkgLists EOF postamble diff --git a/config-service-myhostname.PKGBUILD b/config-service-myhostname.PKGBUILD index 5285c8b..ff32aaa 100644 --- a/config-service-myhostname.PKGBUILD +++ b/config-service-myhostname.PKGBUILD @@ -1,15 +1,11 @@ . ${BUILDFILE%/*}/common.sh -pkgver=20161112 +pkgver=20170201.1 package() { preamble # #### Host information -depends+=( - config-mgmt-nginx - config-mgmt-uwsgi - uwsgi-plugin-cgi -) +depends+=(config-mgmt-nginx) add-file etc/nginx/sites/server-myhostname.conf <<EOF # -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*- @@ -33,6 +29,13 @@ server { } EOF +# Let's have a simple CGI script show server info + +depends+=( + config-mgmt-uwsgi + uwsgi-plugin-cgi +) + add-file -m755 srv/http/myhostname/sysinfo <<EOF #!/bin/bash # Copyright 2016 Luke Shumaker @@ -56,8 +59,6 @@ for cmd in "\${cmds[@]}"; do done EOF -ln -s /var/cache/pacman/pkg srv/http/myhostname/pkg - add-file etc/uwsgi/myhostname.ini <<EOF [uwsgi] master = true @@ -72,5 +73,27 @@ EOF add-unit etc/systemd/system/sockets.target.wants/uwsgi@myhostname.socket +# Expose the pacman cache so pinned packages can be duplicated +ln -s /var/cache/pacman/pkg srv/http/myhostname/pkg + +# Expose collectd via RRD files +ln -s /var/lib/collectd srv/http/myhostname/collectd + +depends+=( + config-base-collectd + rrdtool + config-mgmt-pacman-repo-lukeshu # for systemd-timesyncd-wait-git + systemd-timesyncd-wait-git +) + +add-unit etc/systemd/system/multi-user.target.wants/collectd.service + +add-file -m644 etc/systemd/system/collectd.service.d/time-sync.conf <<EOF +[Unit] +# Because we write RRD files with timestamps in them, we need to have +# a functional clock. Otherwise the RRD files will get garbled. +After=time-sync.target +EOF + postamble } |