Project

General

Profile

Actions

Bug #14143

closed

Chef client bootstrap detection fails in safe mode

Added by Marek Hulán about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Since chef_enabled is using respond_to? it behaves differently in preview and real rendering. When safe mode is enabled, respond_to? does not find the method in safebox and results to false.

https://github.com/theforeman/community-templates/blob/develop/kickstart/provision.erb#L39
https://github.com/theforeman/community-templates/blob/develop/preseed/finish.erb#L13

Actions #1

Updated by Marek Hulán about 8 years ago

  • Status changed from New to Rejected
  • Assignee set to Marek Hulán

false alert, different template was picked :-) anyway a workaround would be

chef_enabled = @host.chef_proxy rescue NoMethodError
Actions

Also available in: Atom PDF