Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »


Cloudaware CMDB can act as a node classifier and return classification data to Ansible. Features that make Cloudaware a more transparent source of configuration data are:

  • Field and Record Level Security
  • Change Tracking
  • Approval Workflows


Customers can retrieve reference configuration data from CMDB instead of Ansible.

Example

Use force.com CLI to retrieve parameters
#!/bin/bash

force="/etc/ansible/scripts/force"
user="user"
password="password"

$force login -u $user -p $password > /dev/null 2>&1
if [[ $? -eq 0 ]]; then
  curvalue=`grep 'app_version' /tmp/ansible-config.conf|awk -F= '{print $2}'|tr -d ' '`
  $force query select Approved_Value__c, Force_Compliance__c from Acme_Cluster_ITIL_CI__c|head -n2|tail -n1|tr -d \" > /etc/ansible/temp/cademo_last_value
  $force record update Acme_Cluster_ITIL_CI__c a9Z36000000GzJ7EAK Reported_Value__c:$curvalue > /dev/null 2>&1
  $force logout -u=cloudaware@cloudaware.net > /dev/null 2>&1
  value=`awk -F, '{print $1}' /etc/ansible/temp/cademo_last_value`
  compliance=`awk -F, '{print $2}' /etc/ansible/temp/cademo_last_value`
  if [[ $compliance == true ]]; then
    echo "$value","$compliance"
  else
    value=`grep 'app_version' /tmp/ansible-config.conf|awk -F= '{print $2}'|tr -d ' '`
    echo "$value","$compliance"
  fi
else
  echo "Cannot login to Salesforce."
fi


In this example we use force.com CLI to retrieve parameters from CMDB.

Change Tracking Of Parameters

Approval Workflows

  • No labels