diff options
-rw-r--r-- | manifests/subsystem/inception.pp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/manifests/subsystem/inception.pp b/manifests/subsystem/inception.pp new file mode 100644 index 0000000..9311af9 --- /dev/null +++ b/manifests/subsystem/inception.pp @@ -0,0 +1,25 @@ +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 => '784a3b7ae620b18105e1cab7006dda4126899e00', + 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"], + } +} |