JSDN Deployment using Ansible Automation Scripts

Pre-requisites:

  • Physical / virtual server with OS Centos Core version 7 installed along with update’s.
  • Server Should have static IP.

Amend Ansible Hosts file:

  • Please provide the client node IP Addresses in the hosts file (/etc/ansible/hosts).
  • For single server deployment, update/replace IP Address of client node server as shown in the below screen shot:

  • For multi server deployment update IP Address of client node servers as shown in the below screen shot:

Validating the connection between Jamcracker Ansible master server and Client node servers:

  • Execute the below command in Ansible master server for generating public key.

ssh-keygen

  • Client node servers with password authentication
  • Execute the below command for all Client node servers

ssh-copy-id user@<<IP address of Client node server>>

Example:

Client node servers with key file authentication

  • copy the key value from /root/.ssh/id_rsa.pub in ansible master server.

  • Login to the all client node servers and paste the key value in the file (/root/.ssh/authorized_keys) which was copied from Ansible master server.
  • Execute the below command from Ansible Master as shown below and then exit.
    ssh user@ip(ip of client node server)
    exit
  • Execute the below command in Ansible master server to check the communication between Client node servers.
    ansible -m ping all

Infrastructure Deployment

  • Login to the Jamcracker Ansible master server.
  • Update the highlighted values according to the Client node servers in the file /etc/ansible/infra_vars.yml
    ###########----Heat----############
    schemausername:<<Schema_username>>
    schemapassword: <<Schema_password>>
    DBserverIP: <<DB_IP_Address>>
    schemaname: <<Schema_name>>
    Jbossip: auth_host=<<jboss_server_IP>>
    Jbossip2: auth_uri=http://<<jboss_server_IP>>:8080/api/v2.0/
    Jbossip3: identity_uri=http:// <<jboss_server_IP>>:8080/api/v2.0
    #######----POSTGRES-----############
    pg_webserver: <<Webserver_IP>>
    #########---- Tomcat ---- ##########
    jobserverip: <<job_server_IP>>
    #########------Httpd----############
    jbossip1: <<App1_Server_IP>>
    jbossip2: <<App2_Server_IP>>
    apacheip: <<Web_Server_IP>>
    port_no: <<Port_number>>
    DB_IPADDRESS: <<DB_IP_Address>>
    PassworD: <<Schema_password>>
    UsernamE: <<Schema_name>>
    DB_Name: <<Schema_name>>
  • Execute the below commands to deploy JSDN Infrastructure Components on Client node servers.
    cd /etc/ansible
    ansible-playbook infrastructure.yml

JSDN Deployent

  • Login to the Jamcracker Ansible master server.
  • Update the highlighted values according to the Client node servers in the file
    • /etc/ansible/jsdn-vars.yml
      JOBSERVER_IP: <<JOB_SERVER_IP>>
      smtp_port: <<SMTP_PORT>>
      smtp_username: <<SMTP_USERNAME>>
      smtp_password: <<SMTP_PASSWORD>>
      cluster_ips:  <<Cluster_IPS>>
      jboss_label: <<jboss_label>>
      smtp_host_ip: <<SMTP_HOST>>
      guacd_ip: <<guacd_IP>>
      app_server_ip:<<App_server_IP>>
      heat_server_ip: <<Heat_server_IP>>
      monitoring_ip: <<Monitoring_IP>>
      cassendra_ip: <<Cassendra_ip>>
      cassendra_key_space: <<Cassandra_key_space>>
      static_domain_url: <<Static_Domain_url>>
      dashboard_domain_name: <<Dashboard_domain_name>>
      db_server_ip: <<DB_SERVER_IP>>
      db_port: <<DB_PASSWORD>>
      db_schema_name: <<DB_SCHEMA_NAME>>
      db_schema_password: <<DB_SCHEMA_PASSWORD>>
      DB_USERNAME: <<DB_Username>>
      DB_PASSWORD: <<DB_Password>>
  • Execute the below commands to deploy JSDN Application on Client node servers.
    cd /etc/ansible
    ansible-playbook JSDN.yml
If JSDN Deployment is fresh please follow KMF Installation
cd /etc/ansible
ansible-playbook KMF.yml

CMS Schema Creation

  • Login to the Jamcracker Ansible master server.
  • Execute the below commands to create CMS DB Schema on Client Data Base server.
    cd /etc/ansible
    ansible-playbook CMS-SCHEMA.yml

Adapter Deployment

  • Login to the Jamcracker Ansible master server.
  • Update the highlighted values according to the Client node servers in the file /etc/ansible/adapter-vars.yml
    #############----- Glue-Installer-------################
    UsernamePassword: <<schema_name>>
    ip_address: <<DB_IP_Address>>      ##DB IP
    port_number: <<Port_number>>
    ###########----- Glue-AWS -----######################
    glue_aws_file: <<glue-aws.tar>>
    DB_IP_ADDRESS: <<DB_IP_Address>>
    PORT: <<Port_number>>
    USERNAME: <<Schema_name>>
    PASSWORD: <<Schema_password>>
    DENABLE_STARTUP_JOB: -DENABLE_STARTUP_JOB=YES
    JOBSERVER_IP: <<Job_server_ip>>
    #################----- G-Suite -----#####################
    gsuite_filename: <<gsuite_filename>>
    #################----- MSCSP -----#####################
    mscsp_file: <<mscsp_filename>>
    #################----- CSP -----#####################
    csp_file: <<csp_filename>>
     ########################----- SSP -----########################
    ssp_file: <<ssp_filename.tar>>
    #####Schema username please mention below
    pg_username: <<Schema_name>>
    pg_password: <<Schema_password>>
    driver_name: <<driver_name>>
    db_ip_address: <<DB_IP_Address>>
    PORT_NUMBER: <<Port_number>>
    version: jamcracker.jsdn/<<version_number>>
    version_number_url_mapping_file:<<url_mapping_filename>>
    #######################----MPP_APP----------#################
    mpp_tar_file: <<mppa.tar_file_tar>>
  • Execute the below commands to deploy Adapters on Client node servers.
    cd /etc/ansible
    ansible-playbook adapters.yml

Clean up of hosts file

  • Execute the below command, Once the deployment activity completed.
    cd /etc/ansible
    cp -r hosts_orig hosts