I would suggest considering enclosing this into a condition

```ruby
if @host.params['kt_activation_keys']
  # ...
end
```

That would allow the user to use the same template for Katello machines, as well as pure Foreman, and it would be given just by the presence of activation keys in the params. Opinions?