Class: Kitchen::Provisioner::DscLcm::LcmV5
- Defined in:
- lib/kitchen/provisioner/dsc_lcm/lcm_v5.rb
Instance Method Summary collapse
Methods inherited from LcmBase
#certificate_id, #initialize, #lcm_config, #method_missing
Constructor Details
This class inherits a constructor from Kitchen::Provisioner::DscLcm::LcmBase
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Kitchen::Provisioner::DscLcm::LcmBase
Instance Method Details
#lcm_configuration_script ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/kitchen/provisioner/dsc_lcm/lcm_v5.rb', line 30 def lcm_configuration_script <<-LCMSETUP [DSCLocalConfigurationManager()] configuration SetupLCM { Settings { ActionAfterReboot = '#{action_after_reboot}' AllowModuleOverwrite = [bool]::Parse('#{allow_module_overwrite}') CertificateID = #{certificate_id} ConfigurationMode = '#{configuration_mode}' ConfigurationModeFrequencyMins = #{configuration_mode_frequency_mins} DebugMode = '#{debug_mode}' RebootNodeIfNeeded = [bool]::Parse('#{reboot_if_needed}') RefreshFrequencyMins = #{refresh_frequency_mins} RefreshMode = '#{refresh_mode}' } } LCMSETUP end |
#lcm_properties ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/kitchen/provisioner/dsc_lcm/lcm_v5.rb', line 16 def lcm_properties { action_after_reboot: "StopConfiguration", allow_module_overwrite: false, certificate_id: nil, configuration_mode: "ApplyAndAutoCorrect", configuration_mode_frequency_mins: 15, debug_mode: "All", reboot_if_needed: false, refresh_mode: "PUSH", refresh_frequency_mins: 30, } end |