Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Uninstall LibreOffice windows 7 with puppet

Hi,

I am creating a module to control the LibreOffice software in Win7. I created:

init.pp

class libreoffice {
  include libreoffice::params
  include libreoffice::install

  Class['libreoffice::params'] ->
  Class['libreoffice::install']
}

install.pp

class   libreoffice::install (

  $libreofficesource = $libreoffice::params::libreofficesource) inherits libreoffice {

      package { 'libreoffice':
        ensure          => installed,
        source          => $libreofficesource,
        install_options => [ '/S' ],
      }

  }

params.pp

class   libreoffice::params {

  $libreofficesource = 'C:/temp/OpenOffice_3.4.1_Win_x86_install_en-US.exe'

}

But, how do I create or configure the uninstall.pp file?