• Category: Citrix

Citrix Optimizer Community Template Marketplace

Recently, Martin Zugec from Citrix released version 2.0 of the popular Citrix Optimizer tool and one of the cool new features added is the ability to add custom template marketplaces.  Once added a marketplace can allow users to choose then download and upgrade specific templates all from the Optimizer GUI.  Out of the box, Optimizer includes a marketplace for all the Citrix maintained templates as you can see below.

base

After playing with the new version I thought it would be nice if there was a central location for the community to be able to submit, view and share their own custom templates.  I ended up creating a home for a marketplace on Github and this post goes over the introduction of the marketplace and how I hope the community can utilize it.

How to use the marketplace

Citrix Optimizer is designed to use XML for the marketplace data, including the URL location of a template and any metadata to display to the user such as author and version.  This makes it easy enough to simply point Optimizer to a custom XML URL and Optimizer will be able to render the information and allow templates to be downloaded or updated.  Let's go over the steps to add the community marketplace to Optimizer.

  1. From Citrix Optimizer select Template Marketplace from the left
  2. Select Add New Marketplace
  3. Add the URL https://raw.githubusercontent.com/ryancbutler/Citrix_Optimizer_Community_Template_Marketplace/master/communitymarketplace.xml and select Done
    add
  4. Now on the left, you should see Citrix Community Marketplace
    market
  5. Templates available to download will appear on the right
  6. As the marketplace grows this will allow users to download and update existing templates right from Optimizer

Submit Templates

This marketplace is worthless without templates.  If you have created custom templates I want them!  This section will go over how to submit your templates to the marketplace so they can be shared.

Cm2

Template Format Rules

Before submitting there are a couple of rules that must be followed or else your submission\pull request will fail.

  1. Only templates created with Optimizer 2.0 will be allowed. (1.x will need to be converted)
  2. Only unique display names and ids will be allowed
  3. Template author name must match the directory name of the template

rule

Submit via GIT

This is the preferred method.  If you haven't used GIT before this is a perfect situation to learn.  Don't get discouraged!

  1. First, you'll need a Github account https://github.com/join
  2. Go to the Github repo at https://github.com/ryancbutler/Citrix_Optimizer_Community_Template_Marketplace and fork to your own repo
    fork
    If you aren't familiar with this process I can't stress the benefits of at least learning the basics of GIT can be.  There are plenty of guides out there to help. Keep going!
  3. Within your fork go to the templates directory and create a new folder named the same as the author of the templates.
  4. Copy your template(s) to the newly created folder
  5. (Optional but highly recommended) Create a readme within your directory explaining your templates along with any other information you would like.  Feel free to include your contact info, twitter or whatever.
  6. An example of the layout can be found in the templates\Ryan Butler directory
    example
  7. Once you're ready to submit to the marketplace you'll want to submit a pull request.
  8. If all the tests pass I'll be able to review and approve the PR making it part of the marketplace!

Note: There is no need to edit the communitymarketplace.xml file.  This will automatically be re-generated for each submission.

OTHER

If you aren't comfortable with the GIT process feel free to reach out to me on Twitter or wherever else and I'll be happy to add them or help you get them submitted.