Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl http://centos7-katello-devel-stable.example.com/unattended/template/aaa_registration/my_group | bash
- #
- # Todo
- #
- # => Accessing template via hostgroup - good or bad idea?
- # => Current steps:
- # - foreman registration (as unmanaged host)
- # - Rex setup
- # - katello-host-tools installation (do we want that?)
- # - WHAT ELSE?
- #
- <%
- admin= "admin"
- password = "changeme"
- ssh_user = "root"
- activation_key = "key1"
- organization_label = load_organizations.first.first.label
- smart_proxy = load_smart_proxies.first.first
- %>
- curl -O <%= foreman_server_url %>/pub/bootstrap.py
- chmod +x bootstrap.py
- ./bootstrap.py --server <%= foreman_server_fqdn %> \
- --login "<%= admin %>" \
- --password "<%= password %>" \
- --activationkey "<%= activation_key %>" \
- --organization "<%= organization_label %>" \
- --skip foreman \
- --add-domain \
- --rex \
- --rex-user root \
- --rex-proxies <%= smart_proxy %> \
- --force \
- --skip katello-host-tools
- # --force & --skip katello-host-tools just for testing purpose
- #
- # Redhat Insights
- # This should be done already in subscription-manager registration
- #
- # yum install openscap-scanner scap-security-guide insights-client -y
- # insights-client --register
Add Comment
Please, Sign In to add comment