diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 08:44:20 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-23 08:44:20 -0300 |
commit | bbfc27adeee9443a644b09d8ce83f11967d49b22 (patch) | |
tree | 60aa92e26eccbfe42b7da9c0f055a252b11f7e34 /manifests/subsystem | |
parent | 8e97faad323173a9f01f4e45457278880ca2faa0 (diff) | |
download | puppet-nodo-bbfc27adeee9443a644b09d8ce83f11967d49b22.tar.gz puppet-nodo-bbfc27adeee9443a644b09d8ce83f11967d49b22.tar.bz2 |
Adds nodo::subsystem::inception
Diffstat (limited to 'manifests/subsystem')
-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"], + } +} |