Un petit script pour check si les modules ont de nouvelles version dispo (il faut jq)
#!/bin/bash
modules=$(puppet module list|grep '\(v[0-9]\.[0-9]\.[0-9]\)')
IFS=$'\n'
for line in $modules; do
name=$(echo $line|cut -d' ' -f2)
version=$(echo $line|grep -o '\(v[0-9]\.[0-9]\.[0-9]\)'|sed 's/v//')
current_version=$(curl -s https://forgeapi.puppetlabs.com/v3/modules/${name}|jq '.current_release.version'|sed 's/"//g')
if [[ $version == $current_version ]]; then
echo "OK $name $version $current_version"
else
echo "OUTDATED $name $version $current_version"
fi
done
Pour forger des packet en python... mieux que hping3 ;)