[devsetup] memcached statically linked to libevent, disable sasl

Change-Id: Idb8bfd06276c19f69c3fa7b5f44d9fea5196adce
This commit is contained in:
Harshawardhan Gadgil 2012-05-22 11:14:06 -07:00
Родитель 1ac418e077
Коммит 651f27021c
2 изменённых файлов: 2 добавлений и 12 удалений

Просмотреть файл

@ -41,24 +41,13 @@ bash "Compile libevent" do
end
end
bash "Install and configure sasldb" do
user node[:deployment][:user]
code <<-EOH
sudo apt-get install sasl2-bin libsasl2-dev -y
sudo sed -i 's/START=no/START=yes/' /etc/default/saslauthd
sudo /etc/init.d/saslauthd start
echo "password" | saslpasswd2 -c -a test testuser -p
sudo chown #{node[:deployment][:user]} /etc/sasldb2
EOH
end
bash "Install memcached" do
cwd File.join("", "tmp")
user node[:deployment][:user]
code <<-EOH
tar xzf memcached-#{node[:memcached][:version]}.tar.gz
cd memcached-#{node[:memcached][:version]}
./configure --enable-sasl --with-libevent=../libevent-#{node[:libevent][:version]}-stable/tmp
./configure --with-libevent=../libevent-#{node[:libevent][:version]}-stable/tmp LDFLAGS="-static"
make
cp memcached #{File.join(node[:memcached][:path], "bin")}
EOH

Просмотреть файл

@ -16,3 +16,4 @@ logging:
level: debug
memcached_memory: 16
max_clients: 1024
sasl_enabled: false