summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-07-13 19:26:26 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2021-07-13 19:29:10 +0200
commitea4a844ada18f42d0ce86b25a1200215472bcf7f (patch)
treed2d6bcc542132e4cba3f9a06debe8577eda492d3 /manifests
parentAdd way to manage pacman hooks. (diff)
downloadwebdav_server-ea4a844ada18f42d0ce86b25a1200215472bcf7f.tar.gz
webdav_server-ea4a844ada18f42d0ce86b25a1200215472bcf7f.tar.xz
Add pacman hooks to gandalf.
Diffstat (limited to 'manifests')
-rw-r--r--manifests/site.pp26
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/site.pp b/manifests/site.pp
index 9a35124..bbf89d0 100644
--- a/manifests/site.pp
+++ b/manifests/site.pp
@@ -2,6 +2,32 @@ node 'gandalf.adrift.space' {
profiles::remarkable { 'any name':
addr => '3',
}
+
+ # Rebuilt my local xmonad config after an upgrade to xmonad.
+ # It's required, I think due to something with dynamic linking.
+ # It's actually pretty ugly that I'm hardcoded in here, but
+ # something had to be done.
+ pacman::hook { 'xmonad':
+ description => 'Rebuild local xmonad config.',
+ when => 'PostTransaction',
+ exec => '/bin/sudo -Hu hugo xmonad --recompile',
+ trigger => {
+ type => 'Package',
+ operation => ['Upgrade', 'Install'],
+ target => 'xmonad*',
+ },
+ }
+
+ pacman::hook { 'systemd daemon-reload':
+ description => 'Reload systemd user daemon',
+ exec => '/bin/sudo -Hu hugo systemctl --user daemon-reload',
+ when => 'PostTransaction',
+ trigger => {
+ operation => 'Upgrade',
+ type => 'Path',
+ target => '/usr/lib/systemd/user/*',
+ },
+ }
}
node 'hornquist.se' {