From c9dd1a739735ef6ec99aef0419aa84afccba2189 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Jan 2024 15:44:43 -0500 Subject: remove rust docs they are large, and unused on these machines --- modules/rust/manifests/user.pp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'modules/rust') 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"], + ], + } } -- cgit v1.2.3-54-g00ecf