Puppet Windows provider package re-installs package on third run.

asked 2017-01-05 09:24:13 -0500

btoohey gravatar image

Using RH Satellite bundled puppet 3.6.2 master with a 3.6.0 agent on both Windows 2008 R2 and 2012 R2 and both install a Semantic Endpoint Protection agent without issue on an initial server provisioning first puppet run. The following code is used:

case $::hardwaremodel {
    /^x64$/ : { $install = '\\fileserver.somecompany.com\infrastructure\T4Automation\_install\SEP12\SEP 12.1.6 MP5 No NTP\My Company_Default Group_WIN64BIT\Symantec Endpoint Protection version 12.1.7004.6500 - English\setup.exe' }
    /^x86$/ : { $install = '\\fileserver.somecompany.com\infrastructure\T4Automation\_install\SEP12\SEP 12.1.6 MP5 No NTP\My Company_Default Group_WIN32BIT\Symantec Endpoint Protection version 12.1.7004.6500 - English' }
      }

  package { 'Symantec Endpoint Protection' :
    ensure          => installed,
    source          => "$install",
    install_options => ['/s'],
    notify          => Reboot['after_run_for_sep_install'],
  }

  reboot { 'after_run_for_sep_install' :
    apply => finished,
  }

The first run ends with a reboot and is followed by a second puppet run. On the third run 30 minutes later, even though the SEP agent is installed, the SEP install runs again. Here is the debug:

Debug: Executing 'cmd.exe /c start "puppet-install" /w "\\fileserver.somecompany.com\infrastructure\T4Automation\_install\SEP12\SEP 12.1.6 MP5 No NTP\My Company_Default Group_WIN64BIT\Symantec Endpoint Protection version 12.1.7004.6500 - English\setup.exe" /s'
Notice: /Stage[main]/Win_agent_sep/Package[Symantec Endpoint Protection]/ensure: created
Info: /Stage[main]/Win_agent_sep/Package[Symantec Endpoint Protection]: Scheduling refresh of Reboot[after_run_for_sep_install]
Debug: /Stage[main]/Win_agent_sep/Package[Symantec Endpoint Protection]: The container Class[Win_agent_sep] will propagate my refresh event
Notice: Scheduling system reboot with message: "Puppet is rebooting the computer"
Debug: Adding C:\Windows\sysnative\shutdown.exe /r /t 60 /d p:4:1 /c "Puppet is rebooting the computer" to ruby's at_exit handler
Notice: /Stage[main]/Win_agent_sep/Reboot[after_run_for_sep_install]: Triggered 'refresh' from 1 events
Debug: /Stage[main]/Win_agent_sep/Reboot[after_run_for_sep_install]: The container Class[Win_agent_sep] will propagate my refresh event
Debug: Class[Win_agent_sep]: The container Stage[main] will propagate my refresh event
edit retag flag offensive close merge delete