set -x set -e [[ -f /.testlab-apt-provision ]] && exit 0 export DEBIAN_FRONTEND="noninteractive" apt-get -y update <% if !@apt[:install].nil? -%> apt-get -y install <%= @apt[:install].flatten.compact.join(' ') %> <% end -%> <% if !@apt[:remove].nil? -%> apt-get -y remove <%= @apt[:remove].flatten.compact.join(' ') %> <% end -%> <% if !@apt[:purge].nil? -%> apt-get -y purge <%= @apt[:purge].flatten.compact.join(' ') %> <% end -%> touch /.testlab-apt-provision