[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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content