Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8194

powershell : allow pipe_timeout to be configurable

    XMLWordPrintable

Details

    • Hide

      Any of:

      • pipe_timeout is increased from 30 to an arbitrary higher value, like 90 or 180.
      • pipe_timeout is directly configurable via a new attribute.
      • pipe_timeout is indirectly configurable via the timeout attribute.

      An example implementing the indirectly configurable solution:

        def ps_manager
          manager_args = "#{command(:powershell)} #{self.class.powershell_args().join(' ')}"
          debug_output = Puppet::Util::Log.level == :debug
          pipe_timeout = (resource[:timeout] / 2).to_i
          PuppetX::PowerShell::PowerShellManager.instance(manager_args, debug_output, pipe_timeout)
        end
      

      Show
      Any of: pipe_timeout is increased from 30 to an arbitrary higher value, like 90 or 180. pipe_timeout is directly configurable via a new attribute. pipe_timeout is indirectly configurable via the timeout attribute. An example implementing the indirectly configurable solution: def ps_manager manager_args = "#{command(:powershell)} #{self.class.powershell_args().join(' ')}" debug_output = Puppet::Util::Log.level == :debug pipe_timeout = (resource[:timeout] / 2).to_i PuppetX::PowerShell::PowerShellManager.instance(manager_args, debug_output, pipe_timeout) end
    • Windows
    • Needs Assessment

    Description

      MODULES-4748 identified that the default pipe_timeout is too low in some cases.

      The pipe_timeout parameter is different than the timeout attribute of the containing Exec resource, the default pipe_timeout is 30 seconds, and pipe_timeout does not appear to be configurable, given:

      https://github.com/puppetlabs/puppetlabs-powershell/blob/master/lib/puppet/provider/exec/powershell.rb#L65

      https://github.com/puppetlabs/puppetlabs-powershell/blob/master/lib/puppet_x/puppetlabs/powershell/powershell_manager.rb#L12

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tom.kishel Thomas Kishel
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support