summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/rust/manifests/user.pp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/rust/manifests/user.pp b/modules/rust/manifests/user.pp
index f06737e..badbd9e 100644
--- a/modules/rust/manifests/user.pp
+++ b/modules/rust/manifests/user.pp
@@ -12,4 +12,16 @@ define rust::user($user=$name) {
User[$user],
],
}
+
+ exec { "uninstall rust docs":
+ provider => "shell",
+ command => "rustup component remove rust-docs",
+ user => $user,
+ onlyif => "rustup component list | grep -q rust-docs",
+ require => [
+ Package["rustup"],
+ User[$user],
+ Exec["install and configure stable toolchain for $user"],
+ ],
+ }
}