Bug 1454563 - [RFE] [6.3] Describe how to create a provisioning template code snippet for Ansible
Summary: [RFE] [6.3] Describe how to create a provisioning template code snippet for A...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Docs Managing Hosts
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: csherrar
QA Contact: Melanie Corr
URL:
Whiteboard:
: 1527206 (view as bug list)
Depends On:
Blocks: 1486095
TreeView+ depends on / blocked
 
Reported: 2017-05-23 04:40 UTC by Andrew Dahms
Modified: 2019-09-26 14:54 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-05-17 08:45:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andrew Dahms 2017-05-23 04:40:58 UTC
Red Hat Satellite 6.3 introduces integration with Ansible Tower. One of the key enhancements is the ability to add a snippet to provisioning templates that allows administrators to configure hosts provisioned through Satellite using Ansible Tower.

An example must be added to the Provisioning Guide that outlines how to create this snippet, and referenced in the new section created in BZ#1454562.

Comment 2 Andrew Dahms 2017-12-18 21:25:42 UTC
*** Bug 1527206 has been marked as a duplicate of this bug. ***

Comment 3 Andrew Dahms 2018-01-09 23:59:28 UTC
Assigning to Clifton for review.

Comment 5 Sachin Ghai 2018-02-14 04:11:40 UTC
Correct, Following snippets have been added to Satellite 6.3 for Ansible tower integration with satellite6.3

a) ansible_provisioning_callback
b) ansible_tower_callback_script 
c) ansible_tower_callback_service 


Please note that these snippets are being used by Satellite Kikcstart default and Satellite kickstart default Finish templates.

In case of network-based provisioning, "Satellite kickstart default template" is updated w/ a call to "ansible_provisioning_callback" which internally calls  "ansible_tower_callback_service: snippet for all hosts based on systemd( for rhel7 hosts).

For other hosts(rhel6) and image based provisioning, "Satellite Kickstart Default Finish" template is updated with "ansible_tower_callback_script" and that copies the script on hosts under "/root/ansible_provisioning_call.sh" and performs the provisioning callback.



For a successful Integration user needs to define following Parameters in Satellite6.3 at host/hostgroup level.

 ansible_tower_provisioning => true
 ansible_tower_fqdn => TOWER_FQDN
 ansible_job_template_id => TEMPLATE_ID(get it from Tower)
 ansible_host_config_key => CONFIG_KEY(get it from Tower Job template)


Referenced BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1468717#c19

Comment 6 csherrar 2018-02-14 15:07:46 UTC
(In reply to Sachin Ghai from comment #5)
> Correct, Following snippets have been added to Satellite 6.3 for Ansible
> tower integration with satellite6.3
> 
> a) ansible_provisioning_callback
> b) ansible_tower_callback_script 
> c) ansible_tower_callback_service 
> 
> 
> Please note that these snippets are being used by Satellite Kikcstart
> default and Satellite kickstart default Finish templates.
> 
> In case of network-based provisioning, "Satellite kickstart default
> template" is updated w/ a call to "ansible_provisioning_callback" which
> internally calls  "ansible_tower_callback_service: snippet for all hosts
> based on systemd( for rhel7 hosts).
> 
> For other hosts(rhel6) and image based provisioning, "Satellite Kickstart
> Default Finish" template is updated with "ansible_tower_callback_script" and
> that copies the script on hosts under "/root/ansible_provisioning_call.sh"
> and performs the provisioning callback.
> 
> For a successful Integration user needs to define following Parameters in
> Satellite6.3 at host/hostgroup level.
> 
>  ansible_tower_provisioning => true
>  ansible_tower_fqdn => TOWER_FQDN
>  ansible_job_template_id => TEMPLATE_ID(get it from Tower)
>  ansible_host_config_key => CONFIG_KEY(get it from Tower Job template)
> 
> Referenced BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1468717#c19

Hi Sachin,

Thank you for the detailed information and link to BZ#1468717.

Regards,

Comment 7 Andrew Dahms 2018-02-18 22:25:25 UTC
Resetting the assignee and QA contact.

Comment 39 Steve Bream 2018-02-21 13:47:41 UTC
Agreed. I retract my attempts to push this forward. We have a published version, let's step back and complete QA properly, and we'll republish when we have Sachin's comments and a clean bill of QA-health.

Apologies for the confusion - I got GA-fever.

Thanks,
Steve


Note You need to log in before you can comment on or make changes to this bug.