{% macro instructions_tab_link(package, platform, is_first) %} {% if is_first %}
  • {{ platform_name(platform) }}
  • {% else %}
  • {{ platform_name(platform) }}
  • {% endif %} {% endmacro %} {% macro instructions_tab_content(package, platform, value, host_url, setup_url, is_first) %} {% if is_first %}
    {% else %}
    {% endif %}

    Instructions for {{ platform_name(platform) }}

    {% if platform in ("redhat", "oracle", "centos", "ubuntu", "suse") and value.requires_setup %}

    Setup (first time only)

    {% endif %} {% if platform == "aix" and value.requires_setup %}

    Setup (first time only)

    Download and install curl {% endif %} {% if value.install %}

    Install

    {{ instructions_content_part(platform, value.install, value.installable, host_url) }} {% endif %} {% if value.upgrade %}

    Upgrade

    {{ instructions_content_part(platform, value.upgrade, value.installable, host_url) }} {% endif %}
    {% endmacro %} {% macro instructions_content_part(platform, instructions, installable, host_url) %} {% if platform == 'vmware' %} {% if instructions.notes %} {% for note in instructions.notes %} {{ note }}
    {% endfor %} {% else %} Download the OVF and deploy it via VMware vSphere. {% endif %} {% elif platform == 'python-docs' %} Download and extact the documentation archive. {% else %} {% if instructions.command %} {% elif instructions.download_link %} {% if installable %} Download the installer and run it. {% else %} Download the executable and run it. {% endif %} {% else %} {{ instructions|safe }} {% endif %} {% endif %} {% endmacro %} {% macro platform_name(platform) %} {% if platform == "aix" %} AIX {% elif platform == "redhat" %} RedHat {% elif platform == "centos" %} CentOS {% elif platform == "oracle" %} Oracle {% elif platform == "windows-x86" %} Windows (x86) {% elif platform == "windows-x64" %} Windows (x64) {% elif platform == "vmware" %} VMware {% elif platform == "solaris" %} Solaris {% elif platform == "suse" %} SUSE {% elif platform == "ubuntu" %} Ubuntu {% elif platform == "python" %} Python {% elif platform == "python-docs" %} Python Docs {% else %} {{ platform }} {% endif %} {% endmacro %}