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
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

View File

@ -6,7 +6,6 @@ node default {
include stdlib
include common
include yaourt
include gnome
include config
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',
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"
}
}
file {'Autostart Compton':
ensure => link,
path => '/home/jake/.config/autostart/compton.desktop',
mode => '0644',
owner => 'jake',
source => '/usr/share/applications/compton.desktop'
}
}