stejzyy23

Untitled

Jul 7th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. curl http://centos7-katello-devel-stable.example.com/unattended/template/aaa_registration/my_group | bash
  2.  
  3.  
  4. #
  5. # Todo
  6. #
  7. # => Accessing template via hostgroup - good or bad idea?
  8. # => Current steps:
  9. # - foreman registration (as unmanaged host)
  10. # - Rex setup
  11. # - katello-host-tools installation (do we want that?)
  12. # - WHAT ELSE?
  13. #
  14.  
  15. <%
  16. admin= "admin"
  17. password = "changeme"
  18. ssh_user = "root"
  19. activation_key = "key1"
  20. organization_label = load_organizations.first.first.label
  21. smart_proxy = load_smart_proxies.first.first
  22. %>
  23.  
  24.  
  25. curl -O <%= foreman_server_url %>/pub/bootstrap.py
  26. chmod +x bootstrap.py
  27.  
  28. ./bootstrap.py --server <%= foreman_server_fqdn %> \
  29. --login "<%= admin %>" \
  30. --password "<%= password %>" \
  31. --activationkey "<%= activation_key %>" \
  32. --organization "<%= organization_label %>" \
  33. --skip foreman \
  34. --add-domain \
  35. --rex \
  36. --rex-user root \
  37. --rex-proxies <%= smart_proxy %> \
  38. --force \
  39. --skip katello-host-tools
  40. # --force & --skip katello-host-tools just for testing purpose
  41.  
  42. #
  43. # Redhat Insights
  44. # This should be done already in subscription-manager registration
  45. #
  46. # yum install openscap-scanner scap-security-guide insights-client -y
  47. # insights-client --register
Add Comment
Please, Sign In to add comment