Skip to content

(GCP) Create Privacera Manager Host#

These are instructions for the creation of the Privacera Platform host in GCP cloud environment.

The first step is to create a new virtual machine that will be dedicated to the Privacera Platform.  This virtual machine, along with your service account, must, initially, have sufficient privileges to allow it to download additional Privacera Platform required and optional components.

Once running, this VM and associated service accounts, must also have sufficient privileges to the target data repositories and all other referenced resources.

The second step is to install Docker and Docker Compose to the Privacera Manager host.

Note

Single-node/Docker deployment, Privacera Manager deploys and configures Privacera Platform core components as assigned containers that run on the same platform. In this 'single-node' configurations, the Privacera Manager host is also the Privacera Platform host.

Virtual Machine Creation#

Create an GCP Virtual Machine (VM) as follows:

  • CentOS installed

  • To learn which ports are used by different Privacera services, click here.

Install Docker and Docker Compose#

  1. SSH to the VM as the administrator ( ${VM_USER} ).

  2. Install Docker on the VM.

    Run the following command.

    sudo yum install -y wget
    sudo yum install -y docker
    sudo vi /etc/sysconfig/docker
    

    Update the OPTIONS variable with the following:

    OPTIONS="--default-ulimit nofile=1024000:1024000"
    

    Run the following command.

    sudo service docker start
    sudo usermod -a -G docker $VM_USER
    

    Note

    Do the following, if you see any of the following issues:

    Error message: "usermod: group ‘docker’ does not exist"
    1. Run the following command to check if “docker” is added to groups.

      id
      
    2. If you find ‘dockerroot’, instead of ‘docker’, edit or create /etc/docker/daemon.json.

      { 
          "group": "dockerroot"
      }
      
    3. Run the following.

      sudo usermod -aG dockerroot ${USER_NAME}
      sudo service docker restart
      
    Repository is unavailable or subscription manager is not found in the CentOS base
    1. Open the config file.

      sudo vi /etc/yum/pluginconf.d/subscription-manager.conf
      
    2. Disable the subscription manager.

      [main]
      enabled=0
      
    SELinux Enabled
    1. Verify the status of SELinux. If it is enforcing, you need to disable it.

      getenforce
      
    2. Run the following.

      sudo vi /etc/selinux/config
      
    3. To disable SELinux, set the following line.

      SELINUX=disabled
      
    4. Reboot the system.

      sudo reboot
      
  3. Install Docker Compose

    If Docker Compose is not configured in Ansible, then run the following commands:

    DOCKER_COMPOSE_VERSION="1.23.2"
    sudo  curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
    sudo chmod +x /usr/local/bin/docker-compose
    

What's Next#

Configure and Install Core Services


Last update: August 24, 2021