Ask Your Question
0

Uninstall LibreOffice windows 7 with puppet

asked 2014-12-05 14:14:52 -0500

Cesar Sturion gravatar image

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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-12-09 16:38:54 -0500

rnelson0 gravatar image

Try:

class libreoffice::uninstall {
  package {'libreoffice':
    ensure => absent,
  }
}
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-05 14:14:52 -0500

Seen: 670 times

Last updated: Dec 09 '14