{% extends "moneta/base_package.html" %}{% load staticfiles i18n moneta %} {% block repo_content %}
{% if elements %}
{% trans 'Copy-paste one of the following commands in a terminal' %}
{% if tab_info.3 == state_slug %} {% for element in elements %}cat << EOF > Vagrantfile Vagrant.configure(2) do |config| config.vm.box = "{{ element.0 }}" config.vm.box_url = '{{ absolute_url }}{{ element.1 }}' config.vm.box_download_checksum = '{{ element.2 }}' config.vm.box_download_checksum_type = 'sha1' config.vm.box_check_update = false end EOF{% endfor %} {% if not use_https %}{% trans 'If you server certificate is not recognized by the Mozilla CA cert bundle, you should add one of these lines to your Vagrantfile: ' %}
config.vm.box_download_insecure = true config.vm.box_download_ca_cert = "{% trans '/Path/to/your/ROOT/CA.pem' %}"{% endif %} {% endif %} {% else %}
{% trans 'Non box has been uploaded yet.' %}
{% endif %} {% if upload_allowed %}FILENAME=boxname-version.box ARCHIVE=boxname VERSION=version {% curl %} --data-binary @$FILENAME {{ absolute_url }}{% url 'moneta:add_element_post' rid=repo.id %}\?filename=$FILENAME\&archive=$ARCHIVE\&version=$VERSION{% for state in tab_info.2 %}\&states={{ state }}{% endfor %}{% endif %}