%set %%tag = [%%eole_module.upper(),]
%if %%getVar('variante_type' , '') != ''
  %%tag.append(%%variante_type)
%end if
%if %%getVar('service_type' , '') != ''
  %%tag.append(%%service_type)
%end if
%if %%getVar('activer_ocsinventory', 'non' ) == 'oui'
%%tag.append('OCS')
%%ocs_contact_cron root PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin; /usr/bin/ocsinventory-agent -S %%ocs_serveur_national -T "Serveur %%custom_join(%%tag, '/')" -W %%ocs_contact_tempo  &>/dev/null
%else
%%ocs_contact_cron root PATH=/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin; /usr/bin/ocsinventory-agent -S %%ocs_serveur_national -T "Serveur %%custom_join(%%tag, '/')" -W %%ocs_contact_tempo  &>/dev/null
%end if
