зеркало из https://github.com/mozilla/labs-vcap.git
[devsetup] memcached statically linked to libevent, disable sasl
Change-Id: Idb8bfd06276c19f69c3fa7b5f44d9fea5196adce
This commit is contained in:
Родитель
1ac418e077
Коммит
651f27021c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче