Add local weather caching mechanism
This commit is contained in:
27
.ebextensions/mongodb.config
Normal file
27
.ebextensions/mongodb.config
Normal file
@@ -0,0 +1,27 @@
|
||||
files:
|
||||
"/home/ec2-user/install_mongo.sh" :
|
||||
mode: "0007555"
|
||||
owner: root
|
||||
group: root
|
||||
content: |
|
||||
#!/bin/bash
|
||||
echo "[MongoDB]
|
||||
name=MongoDB Repository
|
||||
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
|
||||
gpgcheck=0
|
||||
enabled=1" | tee -a /etc/yum.repos.d/mongodb.repo
|
||||
yum -y update
|
||||
yum -y install mongodb-org-server mongodb-org-shell mongodb-org-tools
|
||||
|
||||
commands:
|
||||
01install_mongo:
|
||||
command: ./install_mongo.sh
|
||||
cwd: /home/ec2-user
|
||||
test: '[ ! -f /usr/bin/mongo ] && echo "MongoDB not installed"'
|
||||
|
||||
services:
|
||||
sysvinit:
|
||||
mongod:
|
||||
enabled: true
|
||||
ensureRunning: true
|
||||
commands: ['01install_mongo']
|
||||
Reference in New Issue
Block a user