Assigning a policy project name in the server.conf yaml file

You can configure a default policy for the manufacturing nodes by setting the Policy project name into the server.conf yaml file.

Before you begin

About this task

To override a deployed policy at run time, complete the following steps.

Procedure

  1. Navigate to the folder where the server.conf yaml file is.
    • Windows The server.conf yaml file is available in the C:\Program Data\IBM\MQSI\components\<node-name>\servers\<integration_server_name> folder.
    • Linux Unix

      The server.conf.yaml file is available in the /var/mqsi/components/<node-name>/servers/<integration_server_name> folder.

    Note:
    • The <node-name>, is the integration node name that is created to develop the manufacturing message flows.
    • The <integration_server_name>, is the integration server name that is created to develop the manufacturing message flows.
  2. Open the file in edit mode, by using the following command:
    For example, Windows

    Right click the server.conf yaml file, and select to Edit in text mode.

    LinuxUnix
    vi /var/mqsi/components/<node-name>/servers/<integration_server_name>
  3. Specify an existing policy project name into the server.conf yaml file.
    1. Specify the policy project name that you want to use on the manufacturing nodes.

      Add the policy project name (policyProject: '<PolicyProjectName>') under the content text area of Defaults:.

      For example:
      Defaults:
      #defaultApplication: ''  # Name a default application under which independent resources will be placed
                               # Defaults to the <name of the integration server>_DefaultApplication for integration servers owned by integration nodes
      policyProject: 'DefaultPolicies'   # Name of the Policy project that will be used for unqualified Policy references, default is 'DefaultPolicies'
        
        Policies:
          # Set default policy names, optionally qualified with a policy project as {policy project}:name
          #HTTPConnector: ''           # Default HTTP connector policy
          #HTTPSConnector: ''          # Default HTTPS connector policy
          #monitoringProfile: ''       # Default Monitoring profile

Results

By default, if there is no any policy project name specified in the policy property of a OPC UA node, it would take the policy name that is specified in the server.conf.yaml file.

What to do next

You can override a deployed policy by putting an updated policy in the overrides subdirectory of the integration server work directory. For more information, see Overriding deployed policies at run time with the overrides directory.