-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorion.yml
More file actions
38 lines (31 loc) · 1.03 KB
/
orion.yml
File metadata and controls
38 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
- hosts: orion
sudo: true
# Install Orion on Centos
tasks:
- name: restart iptables
service: name=iptables state=restarted
- name: copy mongodb yum info
copy: src=configFiles/mongodbYum.repo dest=/etc/yum.repos.d/mongodb-org-3.0.repo
- name: copy orion yum info
copy: src=configFiles/orionContext.repo dest=/etc/yum.repos.d/orionContext.repo
- name: install dependencies
yum: name={{ item }}
with_items:
- mongodb-org
- boost-filesystem
- boost-thread
- libmicrohttpd
- logrotate
- libcurl
- contextBroker
# open iptables port in centos for ORION
- name: Allow port 1026 for orion
command: iptables -I INPUT 5 -i eth0 -p tcp --dport 1026 -m state --state NEW,ESTABLISHED -j ACCEPT
- service: name=mongod state=started
- service: name=contextBroker state=started
# Save iptables in case there is a reboot and restart the service
- name: save iptables
command: service iptables save
- name: restart iptables
command: service iptables restart