Skip to content

Instantly share code, notes, and snippets.

@ehelms
Last active December 26, 2015 06:39
Show Gist options
  • Save ehelms/7109114 to your computer and use it in GitHub Desktop.
Save ehelms/7109114 to your computer and use it in GitHub Desktop.
  1. Follow standard Katello development instructions that include installing Katello via RPM and switching to git

  2. Clone Foreman beside Katello, such that:

     workspace/
     worksapce/foreman
     workspace/katello
    
  3. cd foreman

  4. copy settings.yml.sample to settings.yml

  5. Create local Gemfile - vim bundler.d/Gemfile.local.rb

     #gem 'katello', :path => '../katello'
     gem 'facter'
     gem 'puppet'
    
  6. bundle install

  7. rake db:create db:migrate

  8. enable Katello - vim bundler.d/Gemfile.local.rb

     gem 'katello', :path => '../katello'
    
  9. bundle install

  10. rake db:migrate db:seed

  11. rails s

  12. Login to Foreman

  13. Create initial Foreman organization

  14. Navigate to Katello page

To reset environment:

  1. cd katello/

  2. ./script/katello-reset-dbs

  3. disable Katello - vim bundler.d/Gemfile.local.rb

     #gem 'katello', :path => '../katello'
    
  4. rake db:drop && rake db:create && rake db:migrate

  5. enable Katello - vim bundler.d/Gemfile.local.rb

     gem 'katello', :path => '../katello'
    
  6. bundle

  7. rake db:migrate

  8. rake db:seed

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