diff --git a/modules/people/manifests/hanjianwei.pp b/modules/people/manifests/hanjianwei.pp index 32bf82d..187275f 100644 --- a/modules/people/manifests/hanjianwei.pp +++ b/modules/people/manifests/hanjianwei.pp @@ -1,8 +1,4 @@ -class people::hanjianwei ( - $home = $people::hanjianwei::config::home, - $dotfiles = $people::hanjianwei::config::dotfiles, - $srcdir = $people::hanjianwei::config::srcdir -) inherits people::hanjianwei::config { +class people::hanjianwei { include people::hanjianwei::osx include people::hanjianwei::repositories include people::hanjianwei::applications diff --git a/modules/people/manifests/hanjianwei/applications.pp b/modules/people/manifests/hanjianwei/applications.pp index 16f4e56..c1152cd 100644 --- a/modules/people/manifests/hanjianwei/applications.pp +++ b/modules/people/manifests/hanjianwei/applications.pp @@ -87,5 +87,6 @@ class people::hanjianwei::applications { 'vim', 'vimperator', 'zsh']: + require => Repository["${::boxen_srcdir}/dotfiles"], } } diff --git a/modules/people/manifests/hanjianwei/config.pp b/modules/people/manifests/hanjianwei/config.pp deleted file mode 100644 index c03d63b..0000000 --- a/modules/people/manifests/hanjianwei/config.pp +++ /dev/null @@ -1,5 +0,0 @@ -class people::hanjianwei::config { - $home = "/Users/${::boxen_user}" - $srcdir = "${boxen_srcdir}" - $dotfiles = "${srcdir}/dotfiles" -} diff --git a/modules/people/manifests/hanjianwei/repositories.pp b/modules/people/manifests/hanjianwei/repositories.pp index b6a5902..118d76a 100644 --- a/modules/people/manifests/hanjianwei/repositories.pp +++ b/modules/people/manifests/hanjianwei/repositories.pp @@ -1,3 +1,5 @@ class people::hanjianwei::repositories { - + repository { "${::boxen_srcdir}/dotfiles": + source => 'hanjianwei/dotfiles', + } }