2 # This particular environment was created specifically for vfc-nfvo-lcm
4 # vim: ts=4 sw=4 sts=4 et tw=72 :
6 # force any errors to cause the script and job to end in failure
12 systemctl enable redis.service
18 # 1. download and install redis
20 wget http://download.redis.io/releases/redis-4.0.1.tar.gz
21 tar -zxf redis-4.0.1.tar.gz
26 # 2. set conf file and init script
27 cp /tmp/redis-4.0.1/src/redis-server /etc/init.d/redis-server
28 chmod +x /etc/init.d/redis-server
29 cp /tmp/redis-4.0.1/redis.conf /etc/redis.conf
31 # 3. set auto start when start system
32 update-rc.d redis-server defaults
36 echo 'No common distribution configuration to perform'
39 echo "---> Detecting OS"
40 ORIGIN=$(facter operatingsystem | tr '[:upper:]' '[:lower:]')
44 echo "---> RH type system detected"
48 echo "---> Ubuntu system detected"
52 echo "---> Unknown operating system"
56 # execute steps for all systems