<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 28/04/14 23:04, Alessandro Pilotti
      wrote:<br>
    </div>
    <blockquote
      cite="mid:B8B7CD09-7761-4F38-8936-AF2ED122B4B3@cloudbasesolutions.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hi all,
      <div><br>
      </div>
      <div>Following up to various conversations during the Icehouse
        cycle, we’d like to contribute the Heat templates work that we
        did at Cloudbase, partly available at:</div>
      <div><a moz-do-not-send="true"
          href="https://github.com/cloudbase/windows-heat-templates">https://github.com/cloudbase/windows-heat-templates</a></div>
      <div>
        <div apple-content-edited="true"><span class="Apple-style-span"
            style="border-collapse: separate; border-spacing: 0px;"><span
              class="Apple-style-span" style="border-collapse: separate;
              color: rgb(0, 0, 0); font-family: Helvetica; font-style:
              normal; font-variant: normal; font-weight: normal;
              letter-spacing: normal; line-height: normal; orphans: 2;
              text-align: -webkit-auto; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 2;
              word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
              -webkit-border-vertical-spacing: 0px;
              -webkit-text-decorations-in-effect: none;
              -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
              0px; ">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; ">
                <span class="Apple-style-span" style="border-collapse:
                  separate; color: rgb(0, 0, 0); font-family: Helvetica;
                  font-style: normal; font-variant: normal; font-weight:
                  normal; letter-spacing: normal; line-height: normal;
                  orphans: 2; text-align: -webkit-auto; text-indent:
                  0px; text-transform: none; white-space: normal;
                  widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    <br class="Apple-interchange-newline">
                  </div>
                </span></div>
            </span></span></div>
      </div>
    </blockquote>
    It looks like progress is being made on porting these templates to
    HOT:<br>
<a class="moz-txt-link-freetext" href="https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml">https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml</a><br>
    <br>
    To further this process I would suggest the following:<br>
    *
    <a class="moz-txt-link-freetext" href="https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml#L73">https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml#L73</a>

    This powershell should really be put in a separate file and included
    with {get_file: iis_drupal7_webpi.ps1}<br>
    *
    <a class="moz-txt-link-freetext" href="https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml#L69">https://github.com/cloudbase/windows-heat-templates/blob/master/iis/iis_drupal7_webpi.yaml#L69</a>

    setting user_data_format: RAW will stop heat from adding unnecessary
    files to the multipart-mime<br>
    * Consider adopting this pattern for cloudbase-init configuration
<a class="moz-txt-link-freetext" href="http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/example-cloud-init.yaml">http://git.openstack.org/cgit/openstack/heat-templates/tree/hot/software-config/example-cloud-init.yaml</a><br>
      Which is to specify a OS::Heat::SoftwareConfig resource for each
    powershell script (also using get_file), then use a
    OS::Heat::MultipartMime to combine multiple powershell scripts into
    a single configuration packet (I'm assuming cloudbase-init supports
    multipart-mime)
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <blockquote
      cite="mid:B8B7CD09-7761-4F38-8936-AF2ED122B4B3@cloudbasesolutions.com"
      type="cite">
      <div>
        <div apple-content-edited="true"><span class="Apple-style-span"
            style="border-collapse: separate; border-spacing: 0px;"><span
              class="Apple-style-span" style="border-collapse: separate;
              color: rgb(0, 0, 0); font-family: Helvetica; font-style:
              normal; font-variant: normal; font-weight: normal;
              letter-spacing: normal; line-height: normal; orphans: 2;
              text-align: -webkit-auto; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 2;
              word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
              -webkit-border-vertical-spacing: 0px;
              -webkit-text-decorations-in-effect: none;
              -webkit-text-size-adjust: auto; -webkit-text-stroke-width:
              0px; ">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; "><span
                  class="Apple-style-span" style="border-collapse:
                  separate; color: rgb(0, 0, 0); font-family: Helvetica;
                  font-style: normal; font-variant: normal; font-weight:
                  normal; letter-spacing: normal; line-height: normal;
                  orphans: 2; text-align: -webkit-auto; text-indent:
                  0px; text-transform: none; white-space: normal;
                  widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                  </div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    There’s also a BP for that <a moz-do-not-send="true"
href="https://blueprints.launchpad.net/heat/+spec/windows-instances"
                      style="text-align: -webkit-auto;">https://blueprints.launchpad.net/heat/+spec/windows-instances</a> and
                    a document discussing the critical Windows
                    integration areas (linked in the BP): <a
                      moz-do-not-send="true"
                      href="http://wiki.cloudbase.it/heat-windows"
                      style="text-align: -webkit-auto;">http://wiki.cloudbase.it/heat-windows</a></div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    <br>
                  </div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    <div style="word-wrap: break-word;
                      -webkit-nbsp-mode: space; -webkit-line-break:
                      after-white-space;">
                      I’m sending this now so that if anybody is
                      interested on the topic we can start some
                      discussions before heading to Atlanta’s design
                      sessions.</div>
                    <div><br>
                    </div>
                  </div>
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    At the current stage we are running templates of any
                    size and type on Havana and Icehouse without
                    problems with Cloudbase-Init, so there are no
                    particular blocking issues, but it’d be great to
                    have a community discussion about what to do with
                    the CFN tools porting on Windows for example and how
                    to make the Heat produced Nova userdata metadata
                    less Linux dependent.</div>
                </span><br>
              </div>
            </span></span></div>
      </div>
    </blockquote>
    So I'm all for heat-cfntools being ported to windows, and would
    happily review those patches. However a port of os-collect-config,
    os-apply-config and os-refresh-config[1] might be the most expedient
    way of being able to configure with powershell throughout the
    lifecycle of a windows server (not just boot config).<br>
    <br>
    It would be great if it was possible to have the powershell
    equivalent of this
<a class="moz-txt-link-freetext" href="https://review.openstack.org/#/c/70297/16/hot/software-config/example-templates/example-script-template.yaml">https://review.openstack.org/#/c/70297/16/hot/software-config/example-templates/example-script-template.yaml</a><br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://github.com/openstack/os-collect-config">https://github.com/openstack/os-collect-config</a><br>
        <a class="moz-txt-link-freetext" href="https://github.com/openstack/os-refresh-config">https://github.com/openstack/os-refresh-config</a><br>
        <a class="moz-txt-link-freetext" href="https://github.com/openstack/os-apply-config">https://github.com/openstack/os-apply-config</a><br>
  </body>
</html>