define nodo::subsystem::inception( $bundle = 'console', $git_dev = $name, ) { vcsrepo { "/home/${name}/apps": ensure => present, owner => $name, group => $name, user => $name, provider => git, source => "https://git.fluxo.info/${git_dev}/apps", revision => '296228d40fb0e14f2005fdba41851d62be19166b', submodules => true, require => [ File["/home/${name}"], User[$name] ], } exec { "inception-install-${name}": user => $name, environment => [ "HOME=/home/${name}" ], cwd => "/home/${name}", creates => "/home/${name}/.dotfiles", command => "/home/${name}/apps/infection install ${bundle}", require => Vcsrepo["/home/${name}/apps"], } }