Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-1124

CoInitialize uses STA, not supported on Windows Nano Server

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • puppet-agent 5.0.0
    • None
    • Windows Nano Server

    • To allow Puppet to run on Nano server without immediately crashing requires a patch to the COM initialization code inside Ruby 2.4. This does not allow for complete support of Puppet on Nano server, but at least allows it to startup.
    • No Action

    Description

      Nano Server does not support the COM STA model, MTA needs to be used.

      In order to set MTA, CoInitializeEx needs to be used in place of CoInitialize:
      https://github.com/puppetlabs/puppet/blob/98d22be27447bcb34c33aa4a44610ab8768390f5/lib/puppet/util/windows/com.rb#L210

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexpilotti Alessandro Pilotti
              Eric Delaney Eric Delaney
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support