Exporting Properties to Consul Server
This section describes exporting default and tokenized properties to Consul Server
- Select Menu bar. from the
- Once the
Service Registry wizard opens, add the URL as
http://<consul_server_host>:<port>
for the Consul Server in the service registry configuration section. - Click Apply and OK
To export tokenized properties to the Consul Server
- Procedure
- Double click the application properties.
- In the Properties view, select the profile, and click the
Export Profile button.
The Export Profile wizard opens.
- In the Export Profile wizard, select the properties to be exported.
- To export to consul server, see select the Export to Consul checkbox and click Finish.
- To enable authentication for the Consul Server, select the
Consul Authentication checkbox and click
Finish.
This checkbox is available only when the Export to Consul checkbox is selected. When the Consul Authentication checkbox is selected, it is mandatory to provide a authentication token.Note:
- In the properties view, the values of the properties in the profile can be anything, when the profile is exported as a properties file it changes to
#<PropertyName>#
- The authentication token that has write authorization only can be exported to Consul Server. For more information, see the Using Consul as a Configuration Management Service.
Note: It is now possible to export the profile properties to the specific custom folder under by specifying its path in the Export to Consul checkbox.The following table lists the values of five different types of properties if the default values are not provided for all the properties and exported to consul server
Data Type Property Name Values Before Export Values After export Values After Export in Consul Server Default Default String newProperty5 #newProperty5# newProperty5 Password newProperty4 #newProperty4# <encrypted value of the password> Integer newProperty3 0 #newProperty3# 0 Long newProperty2 0 #newProperty2# 0 Boolean newProperty1 false #newProperty1# false The following table lists the values of five different types of properties if the default values are provided for all the properties and exported to consul server
Data Type Property Name Values Before Export Values After export Values After Export in Consul Server Default Default String newProperty5 TIBCO #newProperty5# TIBCO Password newProperty4 *** #newProperty4# <encrypted value of the password> Integer newProperty3 1 #newProperty3# 1 Long newProperty2 12345 #newProperty2# 12345 Boolean newProperty1 true #newProperty1# true The following table lists the values of five different types of properties if the default tokenized values are provided for all the properties and exported to consul server
Data Type Property Name Values Before Export Values After export Values After Export in Consul Server Default Default String newProperty5 #//test//newProperty5# #newProperty5# newProperty5 Password newProperty4 #//test//newProperty4# #newProperty4# a String:
PASSWORD
Integer newProperty3 #//test//newProperty3# #newProperty3# 0 Long newProperty2 #//test//newProperty2# #newProperty2# 0 Boolean newProperty1 #//test//newProperty1# #newProperty1# false Note: After exporting String type property in group to consul server, the exported profile has key and value asnewGroup.newGroup1.newGroup1Property5
- In the properties view, the values of the properties in the profile can be anything, when the profile is exported as a properties file it changes to