Cloudaware CMDB can act as a node classifier and return classification data to Ansible. Features The 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. In this example we use force.com CLI for this purpose.
Example
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#!/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
...
In Cloudaware, you can set up Field History Tracking to keep track of changes.
...
Approval Workflows
Using workflows functionality in Cloudaware, any change in parameters can be sent for your or a person in charge's approval:
...
Read more about creating approval processes here.