Creating a server profile
You can create a server profile from a configured server in PingAuthorize Server.
About this task
To create a server profile from a configured server, use the generate-profile subcommand.
Steps
-
Create a profile directory.
Example:
$ mkdir -p /opt/server-profiles/pingauthorize -
Run
generate-profile.Example:
$ bin/manage-profile generate-profile --profileRoot /opt/server-profiles/pingauthorize -
Customize the resulting profile to suit your needs and to remove deployment environment-specific values.
Choose from:
-
Specify a consistent location for the license key file:
-
Copy the license key file to the server profile’s
misc-filesdirectory.$ cp {pingauthorize}.lic /opt/server-profiles/pingauthorize/misc-files/ -
Open the
setup-arguments.txtfile in a standard text editor. -
Locate the
--licenseKeyFileargument. -
Change the value of
--licenseKeyFileto the following value.Use
PING_PROFILE_ROOTonly with files that are not needed after initial setup, such as password files insetup-arguments.txt. Do not use thePING_PROFILE_ROOTvariable for files needed while the server is running. Themanage-profiletool creates a temporary copy of the server profile that is deleted after the tool completes, so files are not accessible underPING_PROFILE_ROOTwhen the server is running. For files you need while the server is running, such as keystore and truststore files, copy the files into the server root using the profile’sserver-root/pre-setupdirectory, and then refer to the files using with thePING_SERVER_ROOTvariable.${PING_PROFILE_ROOT}/misc-files/{pingauthorize}.lic -
Save your changes.
-
-
Remove deployment environment-specific values and replace them with variables. For example, to refer to a different PingFederate server in your development environments versus your test environments, perform the following steps:
-
Open the
/opt/server-profiles/pingauthorize/dsconfig/00-config.dsconfigfile in a standard text editor. -
Locate the value specified for
base-urlfor the external server that identifies your PingFederate server. -
Replace the value with a variable, like
${PF_BASE_URL}. -
Save your changes.
-
Create or update a server profile variables file for your development environment.
-
Add a row like the following example to the variables file.
PF_BASE_URL=https://sso.dev.example.com:9031
-
Save your changes.
-
Continue replacing deployment environment-specific values with variables until the server profile contains no more deployment environment-specific values.
At this point, you can check the server profile in to a version-control system, like Git, share with your team, and integrate into your deployment automation.
-
-