Project

General

Profile

Actions

Bug #24981

closed

[Satellite 6.3] ansible_provisioning_callback snippet does not set executable permission for '/root/ansible_provisioning_call.sh'

Added by Marek Hulán over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1565903

Description of problem:
[Satellite 6.3] 'ansible_provisioning_callback snippet' does not set executable permission for '/root/ansible_provisioning_call.sh'

Version-Release number of selected component (if applicable):

Red Hat Satellite 6.3

How reproducible:

Always

Steps to Reproduce:
1. on GUI see the below in snippet "ansible_provisioning_callback":

---------------
<% else -%>
  1. Assume systemd is not available
    <%= save_to_file('/root/ansible_provisioning_call.sh', snippet('ansible_tower_callback_script')) >
    (crontab u root -l 2>/dev/null; echo "@reboot /root/ansible_provisioning_call.sh" ) | crontab -u root -
    <
    end ->
    <
    end -%>
    --------------
In above creating the "/root/ansible_provisioning_call.sh" but without executable permission due to which after reboot cron get run but without success.

Actual results:

File create without executable permission.

Expected results:

File should create with executable permission:

e.g. snippet

-----------------
<% else -%>
  1. Assume systemd is not available
    <%= save_to_file('/root/ansible_provisioning_call.sh', snippet('ansible_tower_callback_script')) %>
    (chmod +x /root/ansible_provisioning_call.sh;crontab u root -l 2>/dev/null; echo "@reboot /root/ansible_provisioning_call.sh" ) | crontab -u root - <====
    ----------------

Additional info:

Actions #1

Updated by The Foreman Bot over 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Marek Hulán
  • Pull request https://github.com/theforeman/community-templates/pull/516 added
Actions #2

Updated by Marek Hulán over 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Tomer Brisker over 5 years ago

  • Subject changed from [Satellite 6.3] ansible_provisioning_callback snippet does not set executable permission for '/root/ansible_provisioning_call.sh' to [Satellite 6.3] ansible_provisioning_callback snippet does not set executable permission for '/root/ansible_provisioning_call.sh'
  • Category set to Templates
  • Fixed in Releases 1.20.0 added
Actions

Also available in: Atom PDF