Skip to content

Instantly share code, notes, and snippets.

@richardc
Last active December 18, 2015 07:59
Show Gist options
  • Select an option

  • Save richardc/5750556 to your computer and use it in GitHub Desktop.

Select an option

Save richardc/5750556 to your computer and use it in GitHub Desktop.
# == Class: mongodb::install
#
#
class mongodb::install {
include $::mongodb::params::repo_class
anchor { 'mongodb::install::begin': } ->
package { 'mongodb-stable':
name => $::mongodb::params::old_server_pkg_name,
ensure => absent,
} ->
Class[$::mongodb::params::repo_class] ->
package { 'mongodb-10gen':
name => $::mongodb::params::server_pkg_name,
ensure => installed,
} ->
anchor { 'mongodb::install::end': }
}
@richardc
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment