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

DSC reboot should be able to apply anywhere in the manifest, not just the end

    XMLWordPrintable

Details

    • New Feature
    • Status: Accepted
    • Normal
    • Resolution: Unresolved
    • None
    • None
    • dsc
    • Modules
    • Modules - Product Backlog

    Description

      Take the following example of DSC resources:

      dsc_xcomputer { 'config':
      dsc_name => 'server2012r2b',
      dsc_domainname => 'spencer.test',
      dsc_credential =>

      { user => 'spencer.test\Administrator', password => 'Puppet123' },
      notify => Reboot['dsc_reboot'],
      }

      dsc_xexchinstall { 'install exchange':
      ensure => present,
      dsc_path => 'C:\exchange\setup.exe',
      dsc_credential => { user => 'spencer.testAdministrator', password => 'Puppet123' }

      ,
      dsc_arguments => "/mode:Install /role:Mailbox,ClientAccess /OrganizationName:puppet /Iacceptexchangeserverlicenseterms",
      require => Exec['Exchange'],
      notify => Reboot['dsc_reboot'],
      }

      Ideally, I'd like to be able to trigger a reboot after dsc_xcomputer is applied, like we can do with the regular reboot resource. However, since dsc_reboot goes at the end of the run, puppet will fail on the dsc_xexchinstall because dsc_xcomputer needs a reboot. The machine will then reboot, and dsc_xexchinstall will be applied successfully.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spencer Spencer Seebald
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Zendesk Support