Configure PNDA creation process
The PNDA creation process is controlled primarily via a YAML configuration file.
A template YAML configuration can be found in the pnda-cli repository.
Designate client machine
Create or designate a suitable machine for running the PNDA CLI. We recommend CentOS 7.
Clone the pnda-cli repository repository from the master branch at a specific release tag (e.g.
release/3.5) to the client machine.
pnda_env_example.yaml to create
Set the following image related fields as below.
||Select 64 bit RHEL 7 image for region||Select 64 bit CentOS 7 image for region|
Set ec2 access keys
ec2_access.AWS_SECRET_ACCESS_KEY to the credentials created for accessing ec2 and CloudFormation.
These credentials are only stored on the client machine.
Decide whether you want to run the Cloudera CDH or the Hortonworks HDP Hadoop distribution.
hadoop.HADOOP_DISTRO to either
Set source of SaltStack provisioning scripts
The PNDA software is installed and configured using the SaltStack code found in the platform-salt repository. This can be supplied in two main ways.
A local copy of platform-salt can be used by setting
platform_salt.PLATFORM_SALT_LOCAL to the path to the platform-salt folder on the client machine.
platform_salt.PLATFORM_GIT_BRANCH to clone a remote git URI at the specified branch during provisioning.
If authenticated access to
platform_salt.PLATFORM_GIT_REPO_URI is required then place the ssh key to use, named git.pem, in the top level directory of this repository and set
platform_salt.PLATFORM_GIT_REPO_HOST to the hostname of the server.
Note Please ensure that the local clone of platform-salt or
platform_salt.PLATFORM_GIT_BRANCH correspond to the same release tag as the pnda-cli repository cloned above.
pnda_application_repo.PNDA_APPS_CONTAINER to the Application container configured during the preparation phase.
pnda_application_repo.PNDA_APPS_FOLDER to the Application folder configured during the preparation phase.
pnda_data_archive.PNDA_ARCHIVE_CONTAINER to the Dataset archive container configured during the preparation phase.
pnda_application_repo.PNDA_APPS_SECRET_ACCESS_KEY to the credentials created for object storage during the preparation phase.
mirrors.PNDA_MIRROR to the URI determined by the placement of the mirror and build components in the staging phase.
There are a wide range of parameters that can be set, please refer to
pnda_env_example.yaml in the pnda-cli repository for more details.
SSH key pair
Create an ssh keypair to use when creating the ec2 instances for PNDA as
Place the private key
key_name.pem in the root of the pnda-cli directory.
Ensure that key_name.pem has 0600 permissions.
For example, if the keypair in AWS is 'pnda' then the local private key file should be named 'pnda.pem'.