Skip to content

Commit 87541ac

Browse files
committed
Broker ansible deploy added
1 parent c8614fb commit 87541ac

File tree

9 files changed

+253
-1
lines changed

9 files changed

+253
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ env/
66
local_conf.py
77
pymakr.conf
88
docker-compose.override.yml
9+
deploy/ansible-deployment

deploy/roles/broker/.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
language: python
3+
python: "2.7"
4+
5+
# Use the new container infrastructure
6+
sudo: false
7+
8+
# Install ansible
9+
addons:
10+
apt:
11+
packages:
12+
- python-pip
13+
14+
install:
15+
# Install ansible
16+
- pip install ansible
17+
18+
# Check ansible version
19+
- ansible --version
20+
21+
# Create ansible.cfg with correct roles_path
22+
- printf '[defaults]\nroles_path=../' >ansible.cfg
23+
24+
script:
25+
# Basic role syntax check
26+
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
27+
28+
notifications:
29+
webhooks: https://galaxy.ansible.com/api/v1/notifications/

deploy/roles/broker/README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Broker
2+
===
3+
4+
5+
6+
7+
Requirements
8+
------------
9+
10+
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
11+
12+
Role Variables
13+
--------------
14+
15+
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
16+
17+
Dependencies
18+
------------
19+
20+
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
21+
22+
Example Playbook
23+
----------------
24+
25+
Running broker is easy! Here's a sample playbook:
26+
27+
- hosts: localhost
28+
gather_facts: no
29+
connection: local
30+
roles:
31+
- { role: broker }
32+
33+
License
34+
-------
35+
36+
BSD
37+
38+
Author Information
39+
------------------
40+
41+
An optional section for the role authors to include contact information, or a website (HTML is not allowed).

deploy/roles/broker/defaults/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
playbook_debug: false
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from: alpine:edge
2+
environment:
3+
maintainer: [email protected]
4+
ports:
5+
- '1883'
6+
command:
7+
- /usr/sbin/mosquitto
8+
- -v

deploy/roles/broker/meta/main.yml

+166
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
galaxy_info:
2+
author: your name
3+
description:
4+
company: your company (optional)
5+
6+
# If the issue tracker for your role is not on github, uncomment the
7+
# next line and provide a value
8+
# issue_tracker_url: http://example.com/issue/tracker
9+
10+
# Some suggested licenses:
11+
# - BSD (default)
12+
# - MIT
13+
# - GPLv2
14+
# - GPLv3
15+
# - Apache
16+
# - CC-BY
17+
license: license (GPLv2, CC-BY, etc)
18+
19+
min_ansible_version: 2.0
20+
21+
# Optionally specify the branch Galaxy will use when accessing the GitHub
22+
# repo for this role. During role install, if no tags are available,
23+
# Galaxy will use this branch. During import Galaxy will access files on
24+
# this branch. If travis integration is cofigured, only notification for this
25+
# branch will be accepted. Otherwise, in all cases, the repo's default branch
26+
# (usually master) will be used.
27+
#github_branch:
28+
29+
#
30+
# Below are all platforms currently available. Just uncomment
31+
# the ones that apply to your role. If you don't see your
32+
# platform on this list, let us know and we'll get it added!
33+
#
34+
platforms:
35+
- name: EL
36+
versions:
37+
- 6
38+
- 7
39+
#- name: GenericUNIX
40+
# versions:
41+
# - all
42+
# - any
43+
#- name: Solaris
44+
# versions:
45+
# - all
46+
# - 10
47+
# - 11.0
48+
# - 11.1
49+
# - 11.2
50+
# - 11.3
51+
- name: Fedora
52+
versions:
53+
- 22
54+
- 23
55+
#- name: opensuse
56+
# versions:
57+
# - all
58+
# - 12.1
59+
# - 12.2
60+
# - 12.3
61+
# - 13.1
62+
# - 13.2
63+
#- name: IOS
64+
# versions:
65+
# - all
66+
# - any
67+
#- name: SmartOS
68+
# versions:
69+
# - all
70+
# - any
71+
#- name: eos
72+
# versions:
73+
# - all
74+
# - Any
75+
#- name: Windows
76+
# versions:
77+
# - all
78+
# - 2012R2
79+
#- name: Amazon
80+
# versions:
81+
# - all
82+
# - 2013.03
83+
# - 2013.09
84+
#- name: GenericBSD
85+
# versions:
86+
# - all
87+
# - any
88+
#- name: Junos
89+
# versions:
90+
# - all
91+
# - any
92+
#- name: FreeBSD
93+
# versions:
94+
# - all
95+
# - 10.0
96+
# - 10.1
97+
# - 10.2
98+
# - 8.0
99+
# - 8.1
100+
# - 8.2
101+
# - 8.3
102+
# - 8.4
103+
# - 9.0
104+
# - 9.1
105+
# - 9.1
106+
# - 9.2
107+
# - 9.3
108+
#- name: Ubuntu
109+
# versions:
110+
# - all
111+
# - lucid
112+
# - maverick
113+
# - natty
114+
# - oneiric
115+
# - precise
116+
# - quantal
117+
# - raring
118+
# - saucy
119+
# - trusty
120+
# - utopic
121+
# - vivid
122+
# - wily
123+
# - xenial
124+
#- name: SLES
125+
# versions:
126+
# - all
127+
# - 10SP3
128+
# - 10SP4
129+
# - 11
130+
# - 11SP1
131+
# - 11SP2
132+
# - 11SP3
133+
#- name: GenericLinux
134+
# versions:
135+
# - all
136+
# - any
137+
#- name: NXOS
138+
# versions:
139+
# - all
140+
# - any
141+
#- name: Debian
142+
# versions:
143+
# - all
144+
# - etch
145+
# - jessie
146+
# - lenny
147+
# - sid
148+
# - squeeze
149+
# - stretch
150+
# - wheezy
151+
152+
galaxy_tags:
153+
-
154+
- broker-deploy
155+
# List tags for your role here, one per line. A tag is
156+
# a keyword that describes and categorizes the role.
157+
# Users find roles by searching for tags. Be sure to
158+
# remove the '[]' above if you add tags to this list.
159+
#
160+
# NOTE: A tag is limited to a single word comprised of
161+
# alphanumeric characters. Maximum 20 tags per role.
162+
163+
dependencies: []
164+
# List your role dependencies here, one per line.
165+
# Be sure to remove the '[]' above if you add dependencies
166+
# to this list.

deploy/roles/broker/tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- shell: apk add --no-cache bash mosquitto

deploy/roles/broker/test/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
- hosts: localhost
3+
remote_user: root
4+
roles:
5+
- role: broker

odoo/local-src/asterisk_base/data/server.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<data noupdate="1">
55
<record id="asterisk_test_server" model="asterisk.server">
66
<field name="name">Test server</field>
7-
<field name="host">127.0.0.1</field>
7+
<field name="host">asterisk</field>
88
<field name="ami_username">odoo</field>
99
<field name="ami_password">odoo</field>
1010
</record>

0 commit comments

Comments
 (0)