```ruby
case node['nginx_server']['repo']
when 'epel'
  include_recipe 'yum-epel::default'
when 'nginx-stable'
  include_recipe 'yum-nginx::default'
when 'nginx-mainline'
  node.default['yum-nginx']['repos']['nginx-stable']['manages'] = false
  node.default['yum-nginx']['repos']['nginx-mainline']['manages'] = true
  include_recipe 'yum-nginx::default'
else
  fail("#{node['nginx_server']['repo']} is not an allowed value for
    node['nginx_server']['repo'].")
end
```

Fix attirbute names that allow choosing the nginx-mainline repo
user
```ruby
case node['nginx_server']['repo']
when 'epel'
  include_recipe 'yum-epel::default'
when 'nginx-stable'
  include_recipe 'yum-nginx::default'
when 'nginx-mainline'
  node.default['yum-nginx']['repos']['nginx-stable']['managed'] = false
  node.default['yum-nginx']['repos']['nginx-mainline']['managed'] = true
  include_recipe 'yum-nginx::default'
else
  fail("#{node['nginx_server']['repo']} is not an allowed value for
    node['nginx_server']['repo'].")
end
```
assistant