Skip to content

Instantly share code, notes, and snippets.

@GregSutcliffe
Forked from ehelms/gist:8844821
Created February 6, 2014 14:50
Show Gist options
  • Save GregSutcliffe/8845589 to your computer and use it in GitHub Desktop.
Save GregSutcliffe/8845589 to your computer and use it in GitHub Desktop.
Original:
class { '::certs::pulp_parent': } ~>
class { 'pulp':
oauth_key => $katello::oauth_key,
oauth_secret => $katello::oauth_secret,
messaging_url => 'ssl://localhost:5671',
before => Exec['foreman-rake-db:seed']
}
New:
# == Class: katello::pulp
#
# Sets up Pulp for use with Katello
#
class katello::pulp {
class { '::pulp':
oauth_key => $katello::oauth_key,
oauth_secret => $katello::oauth_secret,
messaging_url => 'ssl://localhost:5671',
repo => Class['katello::install']
} ~>
class { '::certs::pulp_parent': }
}
And then called via:
class { 'katello::pulp':
before => Exec['foreman-rake-db:seed'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment