Ask Your Question

Keeping the latest stable chrome installed (Ubuntu)

asked 2017-12-06 16:41:48 -0600

tylerecouture gravatar image

updated 2017-12-06 16:43:23 -0600

I'm currently using include 'google_chrome' from the Forge, however it doesn't update Chrome, and there doesn't appear to be an option to indicate latest.

Is there a way to get this module to keep Chrome up to date?

Alternately, is there a way I can use the apt module to do this?

How do I fit this info:

deb [arch=amd64] stable main

into here?

apt::source { 'debian_unstable':
  comment  => 'This is the iWeb Debian unstable mirror',
  location => '',
  release  => 'unstable',
  repos    => 'main contrib non-free',
  pin      => '-10',
  key      => {
    'id'     => 'A1BD8E9D78F7FE5C3E65D8AF8B48AD6246925553',
    'server' => '',
  include  => {
    'src' => true,
    'deb' => true,
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-07 04:18:36 -0600

stivesso gravatar image

Hi tylerecouture,

In response to your initial question (Is there a way to get this module to keep Chrome up to date?), I will say that the current version of that module doesn't allow to specify another value for ensure (Default value is installed). But, the beauty of Open-Source lies in the facts that most of us can easily contribute and help to improve software we're using.
So, I went ahead and submitted a PR (Pull Request) to give the possibility to modify any defaults parameters (including ensure which is by default set to installed). Meaning that you will be able to have something like (once checked and validated by the module's author):

  class { google_chrome:
    ensure           => 'latest',
edit flag offensive delete link more


Thank you! I'm on the verge of getting in to attempting to write puppet modules, but not there yet. Still too intimidated! You are why I love FOSS =)

tylerecouture gravatar imagetylerecouture ( 2017-12-07 11:17:12 -0600 )edit

You are welcome!

stivesso gravatar imagestivesso ( 2017-12-07 13:30:18 -0600 )edit

Note that the Forge Module has been updated last night...

stivesso gravatar imagestivesso ( 2017-12-07 23:18:34 -0600 )edit

answered 2017-12-07 11:22:07 -0600

tylerecouture gravatar image

Here's how to get the latest stable chrome via APT module:

  include apt

  apt::source { 'chrome-repo':
    location => '',
    release  => 'stable',
    repos    => 'main',
    key      => {
      id        => '4CCA1EAF950CEE4AB83976DCA040830F7FAC5991',  #
      source    => '',
      # 'server' => 'hkp://', #  default anyway

  package { 'google-chrome-stable':
    ensure  => latest,
    require => [ Class['apt::update'], Apt::Source['chrome-repo'] ],
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


Asked: 2017-12-06 16:41:48 -0600

Seen: 80 times

Last updated: Dec 07 '17