provision logs
This commit is contained in:
@@ -24,4 +24,9 @@ https://dev.to/nithinalias/docker-compose-install-wordpress-using-ansible-2lnh
|
|||||||
172.16.250.134
|
172.16.250.134
|
||||||
|
|
||||||
|
|
||||||
https://www.learnlinux.tv/getting-started-with-ansible-09-targeting-specific-nodes/
|
https://www.learnlinux.tv/getting-started-with-ansible-09-targeting-specific-nodes/
|
||||||
|
|
||||||
|
|
||||||
|
ansible-playbook --ask-become-pass --key-file ~/.ssh/ansible_worker -i inventory 57257_A000003_mermsemr_com.yml
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -182,15 +182,19 @@ class Provision extends BaseController
|
|||||||
$query = $this->db->query($mysql);
|
$query = $this->db->query($mysql);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Caught exception: ', $e->getMessage(), "\n";
|
echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||||
|
log_message('critical', "***** ***** Provision Error:: updateToNow() ".$e->getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function provisionActions($memberID, $provisionUID,$actionText){
|
private function provisionActions($memberID, $provisionUID,$actionText){
|
||||||
|
log_message('critical', "***** ***** Provision :: provisionActions($memberID, $provisionUID,$actionText) ");
|
||||||
try {
|
try {
|
||||||
$mysql = "INSERT INTO provision_actions (member_id,product_uid,action) VALUES ($memberID,'$provisionUID', '$actionText')";
|
$mysql = "INSERT INTO provision_actions (member_id,product_uid,action) VALUES ($memberID,'$provisionUID', '$actionText')";
|
||||||
|
log_message('critical', "***** ***** Provision :: provisionActions(QUERY) :: ".$mysql);
|
||||||
$query = $this->db->query($mysql);
|
$query = $this->db->query($mysql);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
echo 'Caught exception: ', $e->getMessage(), "\n";
|
// echo 'Caught exception: ', $e->getMessage(), "\n";
|
||||||
|
log_message('critical', "***** ***** Provision Error:: provisionActions() ".$e->getMessage());
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user