public function getChefSettings()
{
if ($this->GetRoleObject()->getProperty(Scalr_Role_Behavior_Chef::ROLE_CHEF_BOOTSTRAP)) {
$result = $this->GetRoleObject()->getProperties('chef.');
if ($this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_ATTRIBUTES)) {
$result[Scalr_Role_Behavior_Chef::ROLE_CHEF_ATTRIBUTES] = $this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_ATTRIBUTES);
}
if ($this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_LOG_LEVEL)) {
$result[Scalr_Role_Behavior_Chef::ROLE_CHEF_LOG_LEVEL] = $this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_LOG_LEVEL);
}
if ($this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_ENVIRONMENT)) {
$result[Scalr_Role_Behavior_Chef::ROLE_CHEF_ENVIRONMENT] = $this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_ENVIRONMENT);
}
if ($result[Scalr_Role_Behavior_Chef::ROLE_CHEF_ALLOW_TO_APPEND_RUNLIST] == 1) {
$result[Scalr_Role_Behavior_Chef::ROLE_CHEF_RUNLIST_APPEND] = $this->GetSetting(Scalr_Role_Behavior_Chef::ROLE_CHEF_RUNLIST_APPEND);
}
} else {
$result = $this->GetSettingsByFilter('chef.');
}
return $result;
}