Do main stuff after package install

This commit is contained in:
Jake Howard 2017-10-20 08:30:43 +01:00
parent 08b7eb4fd9
commit 082af0253d
Signed by: jake
GPG key ID: 57AFB45680EDD477
6 changed files with 20 additions and 23 deletions

View file

@ -2,12 +2,10 @@
set -e set -e
puppet apply manifests/main.pp --modulepath=modules/ --verbose puppet apply manifests/pre-packages.pp --modulepath=modules/ --verbose
patch /usr/bin/makepkg -N < makepkg.patch patch /usr/bin/makepkg -N < makepkg.patch
puppet apply manifests/packages.pp --verbose puppet apply manifests/packages.pp --verbose
patch /usr/bin/makepkg -NR < makepkg.patch patch /usr/bin/makepkg -NR < makepkg.patch
puppet apply manifests/post-packages.pp --verbose puppet apply manifests/main.pp --modulepath=modules/ --verbose

View file

@ -6,7 +6,6 @@ node default {
include stdlib include stdlib
include common include common
include yaourt
include gnome include gnome
include config include config
include shell include shell

View file

@ -1,18 +0,0 @@
node default {
Exec {
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
}
file {'Autostart Compton':
ensure => link,
path => '/home/jake/.config/autostart/compton.desktop',
mode => '0644',
owner => 'jake',
source => '/usr/share/applications/compton.desktop'
}
exec {'Set Java version':
command => 'archlinux-java set intellij-jdk',
unless => 'archlinux-java get | grep intellij-jdk'
}
}

5
manifests/pre-package.pp Normal file
View file

@ -0,0 +1,5 @@
node default {
include stdlib
include yaourt
}

View file

@ -12,4 +12,9 @@ class common {
path => '/home/jake', path => '/home/jake',
owner => 'jake' owner => 'jake'
} }
exec {'Set Java version':
command => 'archlinux-java set intellij-jdk',
unless => 'archlinux-java get | grep intellij-jdk'
}
} }

View file

@ -25,4 +25,12 @@ class i3::autostart {
source => "/etc/xdg/autostart/$program.desktop" source => "/etc/xdg/autostart/$program.desktop"
} }
} }
file {'Autostart Compton':
ensure => link,
path => '/home/jake/.config/autostart/compton.desktop',
mode => '0644',
owner => 'jake',
source => '/usr/share/applications/compton.desktop'
}
} }