oss.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ---
  2. - name: Install redis server package
  3. package:
  4. name: redis-server
  5. state: present
  6. - name: Template the redis server configuration
  7. template:
  8. src: redis.conf.j2
  9. dest: /etc/redis/redis.conf
  10. owner: redis
  11. group: redis
  12. mode: 0640
  13. notify:
  14. - restart_oss
  15. - name: Install Memtier Benchmark prereqs
  16. package:
  17. name: "{{ item }}"
  18. state: present
  19. with_items:
  20. - build-essential
  21. - autoconf
  22. - automake
  23. - libpcre3-dev
  24. - libevent-dev
  25. - pkg-config
  26. - zlib1g-dev
  27. - name: Checkout Memtier Benchmark Github repo
  28. git:
  29. repo: https://github.com/RedisLabs/memtier_benchmark.git
  30. dest: /var/tmp/memtier_benchmark
  31. # TODO: don't run every time
  32. - name: Build the memtier_benchmark utility
  33. shell: "cd /var/tmp/memtier_benchmark && autoreconf -ivf && ./configure && make && make install"
  34. # TODO: don't run every time
  35. - name: Add Some random data
  36. shell: "/usr/local/bin/memtier_benchmark -R --key-prefix=mague-"
  37. - name: Install Ruby Gem for Redis
  38. package:
  39. name: ruby-redis
  40. state: present
  41. - name: example script
  42. copy:
  43. src: redis_example.rb
  44. dest: /home/ubuntu/redis_example.rb
  45. owner: ubuntu
  46. group: ubuntu
  47. mode: 0755