-
Follow standard Katello development instructions that include installing Katello via RPM and switching to git
-
Check out the engine branch (if you haven't already)
-
Clone Foreman beside Katello, such that:
workspace/ worksapce/foreman workspace/katello
-
cd foreman
-
Create local Gemfile -
vim bundler.d/katello.local.rb
#gem 'katello', :path => '../katello' gem 'facter' gem 'puppet'
-
Copy config/settings.yaml.example and config/database.yml.example to config/settings.yaml and config/database.yml
-
bundle install
-
rake db:create db:migrate
-
enable Katello - vim bundler.d/katello.local.rb
gem 'katello', :path => '../katello'
-
bundle install
-
rake db:migrate db:seed
-
rails s
-
Login to Foreman
-
Create initial Foreman organization
-
Navigate to Katello page
To reset environment:
-
cd katello/
-
./script/katello-reset-dbs
-
disable Katello - vim bundler.d/katello.local.rb
#gem 'katello', :path => '../katello'
-
rake db:drop && rake db:create && rake db:migrate
-
enable Katello - vim bundler.d/katello.local.rb
gem 'katello', :path => '../katello'
-
bundle
-
rake db:migrate
-
rake db:seed