summaryrefslogtreecommitdiffstats
path: root/modules/rust/manifests/user.pp
blob: f06737e82bd642fae45bb0fff0da6c74f0dfc6f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
define rust::user($user=$name) {
  include rust

  exec { "install and configure stable toolchain for $user":
    provider => "shell",
    command => "rustup default stable",
    user => $user,
    unless => "rustup show active-toolchain | grep -q stable",
    timeout => 3600,
    require => [
      Package["rustup"],
      User[$user],
    ],
  }
}