Actions
Bug #24981
closed[Satellite 6.3] ansible_provisioning_callback snippet does not set executable permission for '/root/ansible_provisioning_call.sh'
Difficulty:
Triaged:
No
Bugzilla link:
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 -%>
- Assume systemd is not available
<%= save_to_file('/root/ansible_provisioning_call.sh', snippet('ansible_tower_callback_script')) >
(crontabu 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 -%>
- 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;crontabu root -l 2>/dev/null; echo "@reboot /root/ansible_provisioning_call.sh" ) | crontab -u root - <====
----------------
Additional info:
Updated by The Foreman Bot over 6 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
Updated by Marek Hulán over 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset community-templates|dd466218bd5ec86cad2adcce287cf8c45c11c753.
Updated by Tomer Brisker over 6 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