Skip to content

Commit

Permalink
Add virt-who-configure to hammer-devel box
Browse files Browse the repository at this point in the history
  • Loading branch information
jturel authored and evgeni committed Dec 12, 2020
1 parent 702a746 commit a273517
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions roles/hammer_devel/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ hammer_devel_repositories:
- theforeman/hammer-cli-foreman-admin
- theforeman/hammer-cli-foreman-tasks
- theforeman/hammer_cli_foreman_remote_execution
- theforeman/hammer-cli-foreman-virt-who-configure
- katello/hammer-cli-csv
- katello/hammer-cli-katello
hammer_devel_local_gems: |-
Expand All @@ -22,4 +23,5 @@ hammer_devel_local_gems: |-
gem 'hammer_cli_foreman_admin'
gem 'hammer_cli_foreman_tasks'
gem 'hammer_cli_foreman_remote_execution'
gem 'hammer_cli_foreman_virt_who_configure'
gem 'hammer_cli_csv'
6 changes: 6 additions & 0 deletions roles/hammer_devel/tasks/hammer_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
creates: ~/.hammer/cli.modules.d/foreman_remote_execution.yml
when: ('theforeman/hammer_cli_foreman_remote_execution' in hammer_devel_repositories)

- name: 'Configure hammer_cli_virt_who_configure'
command: cp ~/hammer-cli-foreman-virt-who-configure/config/foreman_virt_who_configure.yml ~/.hammer/cli.modules.d/
args:
creates: ~/.hammer/cli.modules.d/foreman_virt_who_configure.yml
when: ('theforeman/hammer-cli-foreman-virt-who-configure' in hammer_devel_repositories)

- name: 'Alias hammer'
lineinfile: dest=~/.bash_profile line="alias hammer='BUNDLE_GEMFILE=~/hammer-cli-foreman/Gemfile bundle exec hammer'"

Expand Down

0 comments on commit a273517

Please sign in to comment.