Do main stuff after package install
This commit is contained in:
parent
08b7eb4fd9
commit
082af0253d
6 changed files with 20 additions and 23 deletions
|
@ -2,12 +2,10 @@
|
|||
|
||||
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
|
||||
|
||||
puppet apply manifests/packages.pp --verbose
|
||||
|
||||
patch /usr/bin/makepkg -NR < makepkg.patch
|
||||
|
||||
puppet apply manifests/post-packages.pp --verbose
|
||||
puppet apply manifests/main.pp --modulepath=modules/ --verbose
|
||||
|
|
|
@ -6,7 +6,6 @@ node default {
|
|||
include stdlib
|
||||
|
||||
include common
|
||||
include yaourt
|
||||
include gnome
|
||||
include config
|
||||
include shell
|
||||
|
|
|
@ -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
5
manifests/pre-package.pp
Normal file
|
@ -0,0 +1,5 @@
|
|||
node default {
|
||||
include stdlib
|
||||
|
||||
include yaourt
|
||||
}
|
|
@ -12,4 +12,9 @@ class common {
|
|||
path => '/home/jake',
|
||||
owner => 'jake'
|
||||
}
|
||||
|
||||
exec {'Set Java version':
|
||||
command => 'archlinux-java set intellij-jdk',
|
||||
unless => 'archlinux-java get | grep intellij-jdk'
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,4 +25,12 @@ class i3::autostart {
|
|||
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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue