From 956a8e1986a978e8ad7f1883a8f8e1b7c6685987 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 18 Jul 2021 13:57:04 +0100 Subject: [PATCH] fix(pp): update oh-my-zsh to use vcsrepo oh-my-zsh will now use vcsrepo to install the package. This will now keep it up to date with the master branch. I don't think this package has been updated in quite some time. --- site-modules/core/manifests/zsh.pp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/site-modules/core/manifests/zsh.pp b/site-modules/core/manifests/zsh.pp index d796004..6c95630 100644 --- a/site-modules/core/manifests/zsh.pp +++ b/site-modules/core/manifests/zsh.pp @@ -1,9 +1,9 @@ class core::zsh { - - exec { 'git clone ohmyzsh': - creates => "${user_home}/.oh-my-zsh", - path => '/usr/bin:/usr/sbin:/bin', - command => "git clone git://github.com/robbyrussell/oh-my-zsh.git ${user_home}/.oh-my-zsh", + vcsrepo { "${user_home}/.oh-my-zsh": + source => 'git://github.com/robbyrussell/oh-my-zsh.git', + provider => 'git', + user => $user, + revision => 'master', } file { "${user_home}/.zshrc": @@ -21,7 +21,7 @@ class core::zsh { ensure => 'link', owner => $user, target => find_file('core/oh-my-zsh/custom'), - require => [Exec['git clone ohmyzsh']], + require => [Vcsrepo["${user_home}/.oh-my-zsh"]], force => true, } @@ -29,7 +29,7 @@ class core::zsh { ensure => 'link', owner => $user, target => find_file('core/oh-my-zsh/lib'), - require => [Exec['git clone ohmyzsh']], + require => [Vcsrepo["${user_home}/.oh-my-zsh"]], force => true, } @@ -37,7 +37,7 @@ class core::zsh { ensure => 'link', owner => $user, target => find_file('core/oh-my-zsh/custom.zsh'), - require => [Exec['git clone ohmyzsh']], + require => [Vcsrepo["${user_home}/.oh-my-zsh"]], force => true, } @@ -45,7 +45,7 @@ class core::zsh { ensure => 'link', owner => $user, target => find_file('core/oh-my-zsh/plugins/notmuch'), - require => [Exec['git clone ohmyzsh']], + require => [Vcsrepo["${user_home}/.oh-my-zsh"]], force => true, }