Restricting Formats

UForge Portal allows users to generate the templates provided to all the formats the user has access to. In certain circumstances, you may want to restrict the formats shown to the user. To restrict the available machine image formats in the UI you must update the /var/opt/UShareSoft/uforge-client/gwt/uforge/templates/forge-config.xml file.

To disable a format in the UI configuration, find the <t:target> section of the machine image format you want to disable, then either add or change the value of the <t:enabled> tag. For example to deactivate OpenStack, the following changes should be made to the configuration file:

<t:target>
    <t:id>openstack</t:id>
    <t:name>OpenStack</t:name>
    <t:enabled>false</t:enabled>
    <t:visible>true</t:visible>
</t:target>

To hide a format completely, then update the <t:visible> tag to false.

Note

Restricting formats for specific users can also been done through RBAC in the platform.

Restricting the Cloud Accounts

When using the UForge Portal, all the cloud account types to which the user has access are displayed. You can restrict the cloud accounts that are visible by updating the /var/opt/UShareSoft/uforge-client/gwt/uforge/templates/forge-config.xml file of the UI. To hide a specific cloud format, find the <t:account section of the account type you want to hide, then set the <t:visible> tag to false. For example, to remove the CloudStack account type, the following changes should be made to the configuration file:

<t:account>
    <t:id>cloudstack</t:id>
    <t:type>cloudstack</t:type>
    <t:name>Cloudstack</t:name>
    <t:visible>false</t:visible>
</t:account>