mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-12 09:17:41 +03:00
Bug #2624: Add --admin_resources option
This commit is contained in:
parent
e6acfb4d6d
commit
1010a9ed94
@ -159,7 +159,16 @@ EOT
|
||||
'Which resources can be created by group users "\
|
||||
"(VM+NET+IMAGE+TEMPLATE by default)',
|
||||
:format => String
|
||||
}
|
||||
},
|
||||
{
|
||||
:name => 'admin_resources',
|
||||
:large => '--admin_resources resources_str',
|
||||
:short => "-o",
|
||||
:description =>
|
||||
'Which resources can be created by group users "\
|
||||
"(VM+NET+IMAGE+TEMPLATE by default)',
|
||||
:format => String
|
||||
}
|
||||
]
|
||||
|
||||
#NOTE: Other options defined using this array, add new options at the end
|
||||
|
@ -84,9 +84,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
onegroup create group_description.tmpl
|
||||
|
||||
- create a group with admin group, admin user and allow group users
|
||||
to only create new templates and VMs
|
||||
to only create new templates and VMs, and group admins to manage
|
||||
templates, vms, images and virtual networks
|
||||
|
||||
onegroup create -name groupA -admin_group admin_groupA
|
||||
onegroup create --name groupA --admin_group admin_groupA
|
||||
--admin_user admin_userA --admin_password somestr
|
||||
--resource TEMPLATE+VM
|
||||
--admin_resources TEMPLATE+VM+IMAGE+NET
|
||||
|
Loading…
Reference in New Issue
Block a user