META-INF.rhq-plugin.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <plugin name="Sudoers" displayName="Sudo Access" description="Support for *nix hosts service" package="org.rhq.plugins.sudoers" pluginLifecycleListener="org.rhq.plugins.augeas.AugeasPluginLifecycleListener" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:xmlns:rhq-plugin" xmlns:c="urn:xmlns:rhq-configuration"> <depends plugin="Augeas"/> <service name="Sudoers" description="Configuration for system-wide sudo access" discovery="SudoersDiscoveryComponent" class="SudoersComponent" singleton="true"> <runs-inside> <parent-resource-type name="Linux" plugin="Platforms"/> <parent-resource-type name="Windows" plugin="Platforms"/> <parent-resource-type name="Solaris" plugin="Platforms"/> <parent-resource-type name="HP-UX" plugin="Platforms"/> <parent-resource-type name="AIX" plugin="Platforms"/> <parent-resource-type name="FreeBSD" plugin="Platforms"/> <parent-resource-type name="Mac OS X" plugin="Platforms"/> <parent-resource-type name="Java" plugin="Platforms"/> </runs-inside> <plugin-configuration> <c:simple-property name="augeasModuleName" displayName="Augeas Module Name" default="Sudoers" required="true" readOnly="true" description="the name of the Augeas module/lens to use for loading and updating this resource's configuration"/> <c:simple-property name="configurationFilesInclusionPatterns" displayName="Sudoers File Path" required="true" readOnly="true" default="/etc/sudoers" description="Location of the sudoers file."/> <c:simple-property name="resourceConfigurationRootNode" required="true" readOnly="true" default="/files/etc/sudoers"/> </plugin-configuration> <resource-configuration> <c:list-property name="." displayName="Entries"> <c:map-property name="spec"> <c:simple-property name="user" displayName="User/Group" type="string" required="true" readOnly="true" activationPolicy="immediate" description="The User/User Alias/Group/Group Alias who needs to be given access to run a command. Alternatively you can specify aliases defined using User_Alias. Eg: if you had this defined previously User_Alias OPERATORS = joe, mike, jude - You could enter OPERATORS for the user"/> <c:simple-property name="host_group/host" displayName="Host Alias" type="string" required="true" activationPolicy="immediate" description="The Host alias of the terminal from which the above user can run the given command. Set it to ALL if the user is allowed to execute from any host. Alternatively if you have a Host_Alias defined you can use that here. Eg: if you defined Host_Alias OFNET = 10.1.2.0/255.255.255.0 - you could use "OFNET'" here"/> <c:simple-property name="host_group/command" displayName="Command" type="string" required="false" activationPolicy="immediate" description="The Command/Command Alias that the specified user is allowed to execute from the specified hosts. Set it to ALL if the user is allowed to execute any command. Alternatively if you have a Cmnd_Alias defined you can use that here. Eg:if you defined Cmnd_Alias NETWORKING = /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables - in /etc/sudoers you can specify NETWORKING here."/> <c:simple-property name="host_group/command/runas_user" displayName="Run as User" type="string" required="false" activationPolicy="immediate" description="The User name/Run Alias of the user the specified command will be run as. For example if you wanted the command to be run as user 'foo' you would specify foo here. Set it to ALL if the user is allowed to execute the command as any user. Alternatively if you have a Run_Alias defined you can use that here. Eg:if you defined Runas_Alias OP = root, operator - in /etc/sudoers you can specify OP here."/> <c:simple-property name="host_group/command/tag" displayName="Tag Specification" type="boolean" required="false" activationPolicy="immediate" description="True if password is required to execute the command. False otherwise."/> </c:map-property> </c:list-property> </resource-configuration> </service> </plugin>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy