Issue When Attempting to Add Class to Host Group

Hello –

I'm in the process of attempting to write a role to restrict access to
certain aspects of Foreman. I've begun by cloning the "Viewer" role, and
then adding permission for the role to

view_hostgroups,
create_hostgroups,
edit_hostgroups,
view_puppetclasses,
create_puppetclasses,
destroy_puppetclasses,
edit_puppetclasses, and
import_puppetclasses

Then, when I click on Configure > Host Groups and select a hostgroup, then
browse to the Puppet Classes tab, I'm unable to add or remove classes from
the Host Group. When I hover over the class I want to add or remove, I
receive a context message explaining that my role is "Not authorized to
edit classes."

What am I missing?

Thanks,
– Adam

··· ______________________ *J. Adam Craig* Linux & Windows Operating Systems Engineer VCU Computer Center 804.828.4886

“Don’t be a phishing victim – VCU and other reputable organizations will
never use email to request that you reply with your password, social
security number or confidential personal information. For more details,
visit http://infosecurity.vcu.edu/phishing.html

Try adding the "edit_classes" permission (under "HostClass"), I think
that's the one that controls associations from hosts/host groups to
Puppet classes.

··· On 04/12/14 15:20, J. Adam Craig wrote: > Hello -- > > I'm in the process of attempting to write a role to restrict access to > certain aspects of Foreman. I've begun by cloning the "Viewer" role, > and then adding permission for the role to > > view_hostgroups, > create_hostgroups, > edit_hostgroups, > view_puppetclasses, > create_puppetclasses, > destroy_puppetclasses, > edit_puppetclasses, and > import_puppetclasses > > Then, when I click on Configure > Host Groups and select a hostgroup, > then browse to the Puppet Classes tab, I'm unable to add or remove > classes from the Host Group. When I hover over the class I want to add > or remove, I receive a context message explaining that my role is "Not > authorized to edit classes." > > What am I missing?


Dominic Cleal
Red Hat Engineering