diff options
author | Jesse Luehrs <doy@tozt.net> | 2017-11-05 14:01:45 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2017-11-05 14:01:45 -0500 |
commit | e8328f2a365fe9195edbc1393d9903b95618ce9a (patch) | |
tree | 7f131af1d3d3381b34878ff159508d464dd06a0d /modules | |
parent | b138fce1b9edff904f057f6d9612e0fb8c9653ea (diff) | |
download | puppet-tozt-e8328f2a365fe9195edbc1393d9903b95618ce9a.tar.gz puppet-tozt-e8328f2a365fe9195edbc1393d9903b95618ce9a.zip |
add module to install packages with yaourt
Diffstat (limited to 'modules')
-rw-r--r-- | modules/package/manifests/yaourt.pp | 13 | ||||
-rw-r--r-- | modules/tozt/manifests/other_packages.pp | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/package/manifests/yaourt.pp b/modules/package/manifests/yaourt.pp new file mode 100644 index 0000000..8f86534 --- /dev/null +++ b/modules/package/manifests/yaourt.pp @@ -0,0 +1,13 @@ +define package::yaourt($asdeps=false) { + if $asdeps { + $_asdeps = " --asdeps" + } + else { + $_asdeps = "" + } + + exec { "/usr/bin/yaourt --noconfirm --needed$asdeps $name": + unless => "pacman -Q $name > /dev/null 2>&1", + require => Package::Makepkg["yaourt"]; + } +} diff --git a/modules/tozt/manifests/other_packages.pp b/modules/tozt/manifests/other_packages.pp index 3673fed..2530f56 100644 --- a/modules/tozt/manifests/other_packages.pp +++ b/modules/tozt/manifests/other_packages.pp @@ -35,4 +35,13 @@ class tozt::other_packages { package::makepkg { 'yaourt': require => Package::Makepkg['package-query']; } + + package::yaourt { + [ + "duplicati-latest", + "ipbt", + "ttyrec", + ]: + ensure => installed, + } } |