Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
localhost
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Test if Memcached is available and working.
|
||||
*
|
||||
* Note that if you run this script more than once per second, the add() call
|
||||
* will fail. Why would you run this more than once per second?!
|
||||
*/
|
||||
|
||||
$success = FALSE;
|
||||
$key = 'test';
|
||||
$value = 'Success';
|
||||
|
||||
if (class_exists('Memcached')) {
|
||||
$memcached = new Memcached;
|
||||
$memcached->addServer('127.0.0.1', 11211);
|
||||
|
||||
// Test adding a value to memcached.
|
||||
if ($memcached->add($key, $value, 1)) {
|
||||
$result = $memcached->get($key);
|
||||
|
||||
// If we get the expected result, it was a success.
|
||||
if ($result == $value) {
|
||||
$success = TRUE;
|
||||
print "Memcached connection successful.\r\n";
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$success) {
|
||||
print "Memcached not working properly.\r\n";
|
||||
exit(1);
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
|
||||
vars:
|
||||
php_enable_webserver: false
|
||||
php_memcached_package: php5-memcached
|
||||
|
||||
roles:
|
||||
- geerlingguy.memcached
|
||||
- geerlingguy.php
|
||||
- ansible-role-php-memcached
|
Loading…
Add table
Add a link
Reference in a new issue