1 2 3 4 5 6
if $operatingsystem == 'Ubuntu' { exec { "install collectd": command => "apt-get install -y collectd", path => "/usr/bin:/usr/sbin:/bin:/sbin"; } }