Hi, 

 

I am trying to install msi package in the puppet-agents using "mco puppet 
runonce -I <hostname>" (*pushing* the configuration) from puppet master. 

Even though the package is installed and all the files are copied properly 
but, it is not shown in "Add/Remove Program" or is not shown the shortcuts 
in all programs.

I am using the following configuration to install the msi file.

 

###########################################################################

package { "Python PreReqs":

    require => Exec['CopyPythonPreReq'], #required msi file tobe copied

    ensure => '2.4.23',  # ensure => created

    source => 'C:\PuppetSWT\Python PreReqs 2.4.23.msi', 

}

###########################################################################

 

Using the same configuration, I can *pull* the configuration from 
puppet-agent (using "puppet agent -t") and the msi package is installing 
successfully with registering in "Add/Remove Programs" and creating 
shortcuts.

 

Again, I tried with another option by using the "exec" resource type to 
install the msi package.

 

###########################################################################

exec { 'Python PreReqs':

   path    => 'C:\Windows\System32',

   command => 'cmd /c "start "" /wait msiexec.exe /a \"C:\PuppetSWT\Python 
PreReqs 2.4.23.msi\" /qn /lv \"C:\PuppetSWT\PythonPreReqs.log\""',

   require => Exec['CopyPythonPreReq'],

}

###########################################################################

 

But, with the same option using,

 

·        *1. **"puppet agent -t" (pulling configuration) from puppet agent:* 
msi 
package is installed with registering in "Add/Remove Programs" in the 
control panel.

 

·        *2. **"mco puppet" (pushing configuration) from puppet master:* msi 
package is installed without registering in "Add/Remove Programs" in the 
control panel.

 

So, what is missing in the configuration to install the msi package showing 
the details in "Add/Remove Programs" in the control panel.

 

Thanks

Amrit

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/da6d5f9e-1a12-4e62-bf38-46e60860c673%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to