Skip to main content
Skip table of contents

Cloudaware CMDB As A Node Classifier To Ansible

Cloudaware CMDB can act as a node classifier and return classification data to Ansible.

Cloudaware is a transparent source of configuration data. Key features include:

  • Field- and record-level security

  • Change tracking

  • Approval workflows

In this setup, customers can retrieve reference configuration data directly from CMDB instead of Ansible. For example, the Force.com CLI can be used for this purpose:

BASH
#!/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

Change tracking of parameters

Enable Field History Tracking in Cloudaware to monitor parameter changes:

Approval processes

Use flows in Cloudaware to send parameter changes for approval by the responsible person or team:

Read more about creating approval processes here.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.