Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Creating a BLPackage for adding local users in the Azure Provider


A BLPackage is a collection of server assets, software packages, and an XML instruction set. The BLPackage includes parameterized property values, such as local user and password, among its server assets. The parameterized property values match the blueprint parameters that are used by the service blueprint.

For general information about creating a BLPackage Deploy Job, see Creating-and-modifying-Software-and-BLPackage-Deploy-Jobs.

To add local properties to the BLPackage

In BMC Server Automation, when you create a BLPackage Deploy Job for adding new users, you create the user and then set the password in the Local Properties of the BLPackage definition. The following procedure shows how to create a user for installing a software package on a Linux or Windows machine image or OS.

Click here for steps to create a Linux user.
  1. Create a UNIX user for the Linux Add User software package. 

    Linux1.png

    Note

    In the UNIX_USER property, the ?? characters before and after the property value indicate a variable, but the property value that you enter is actually UNIX_USER. The blueprint parameter name must match this property name.

  2. Create a UNIX password for the UNIX_USER property that you just defined. 

    Linux2.png

    Note

    In the UNIX_USER_PASSWORD property, the ?? characters before and after the property value indicate a variable, but the property value that you enter is actually UNIX_USER_PASSWORD. The blueprint parameter name must match this property name.

  3. After you create the BLPackage, create a BLPackage Deploy Job.
  4. Publish the BLPackage Deploy job from the Jobs > CSM_Applications folder to the specified BMC Cloud Lifecycle Management server.
Click here for steps to create a Windows user.
  1. Create a Windows user and password for the Windows Add User software package. 

    Windows1.png

    Note

    In the WINDOWS_USER property, the ?? characters before and after the property value indicate a variable, but the property value that you enter is actually WINDOWS_USER. The blueprint parameter name must match this property name.

    In the WINDOWS_USER_PASSWORD property, the ?? characters before and after the property value indicate a variable, but the property value that you enter is actually WINDOWS_USER_PASSWORD. The blueprint parameter name must match this property name.

  2. Create Add user to Group command to add the user to the Windows Administrator Group. 

    Windows2.png

     

  3. After you create the BLPackage, create a BLPackage Deploy Job.
  4. Publish the BLPackage Deploy job from the Jobs > CSM_Applications folder to the specified BMC Cloud Lifecycle Management server.

For more information, see Parameterizing-BLPackages-by-adding-local-properties or Publishing-the-Product-Catalog.

To add corresponding parameters to the service blueprint definition

After you publish the BLPackage to BMC Cloud Lifecycle Management, you can specify the blueprint parameters for the property values that you defined in the BLPackage definition. Specify these parameters for the BLPackage that you created.

  1. In BMC Cloud Lifecycle Management, access the Service Blueprint for your Azure instance, and then select the application component.
  2. On the Software Packages tab, look through the list of BladeLogic package types for the type to which you want to add parameters.
    UsrProv1.png
  3. Select the BladeLogic package type, and click OK.
  4. Click the service Definition tab option, and then click the Parameter option. 
    The following figure shows the service Definition Details window:

    UsrProv2.png
  5. To add a service definition parameter, click Add Parameter Addicn.png icon.
  6. Specify the UNIX_USER parameter as shown in the following figure, and click OK.

    UsrProv3.png

    Note

    For installing the software in the Windows OS, you must add the parameter as WINDOWS_USER. 

  7. Similarly, add the UNIX_USER_PASSWORD parameter, as shown in the following figure, and click OK

    UsrProv4.png

    Note

    For installing the software in the Windows OS, you must add the parameter as WINDOWS_USER_PASSWORD. 

  8. To add other users to the software package, perform the following actions:
    1. Repeat the process of creating BLPackages with user name and password properties in BMC Server Automation.
    2. Assign matching blueprint parameters in BMC Cloud Lifecycle Management.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*