[Satellite 6] How to create Ansible variables for provisioning templates?

Solution Verified - Updated -

Issue

  • How to add ansible_enabled variable for Ansible client to the finish template snippet in Red Hat Satellite 6 provisioning.
  • As like Salt, is there Ansible set up in the default finish template?
  • How to set an variable to use Ansible in the template, like with Salt it is salt_enabled.
<% if salt_enabled %>
yum -t -y -e 0 install salt-minion
cat > /etc/salt/minion << EOF
<%= snippet 'saltstack_minion' %>
EOF
# Setup salt-minion to run on system reboot
/sbin/chkconfig --level 345 salt-minion on
# Running salt-call to trigger key signing
salt-call --no-color --grains >/dev/null
<% end -%>

Environment

  • Red Hat Satellite 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In