-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
1,253 additions
and
417 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{% include "openstack/glance/api.sls" %} | ||
{% include "openstack/glance/registry.sls" %} | ||
{% include "openstack/nova/api.sls" %} | ||
{% include "openstack/nova/scheduler.sls" %} | ||
{% include "openstack/cinder/api.sls" %} | ||
{% include "openstack/cinder/scheduler.sls" %} | ||
{% include "openstack/keystone/api.sls" %} | ||
{% include "openstack/glance/api.sls" %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,27 @@ | ||
{% import "openstack/config.sls" as config with context %} | ||
rabbitmq-server: | ||
pkg: | ||
- installed | ||
service: | ||
- running | ||
require: | ||
- pkg.installed: rabbitmq-server | ||
watch: | ||
- pkg.installed: rabbitmq-server | ||
rabbitmq: | ||
rabbitmq_user.present: | ||
- name: {{ config.rabbitmq_user }} | ||
- password: {{ config.rabbitmq_password }} | ||
- force: True | ||
rabbitmq_vhost.present: | ||
- name: {{ config.rabbitmq_vhost }} | ||
- user: {{ config.rabbitmq_user }} | ||
- conf: .* | ||
- write: .* | ||
- read: .* | ||
require: | ||
- service: rabbitmq-server | ||
{% set res = salt['data.update']('openstack.rabbitmq', config.internal_ip) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[global] | ||
log file = "" | ||
log to syslog = true | ||
clog to monitors = false | ||
clog to syslog = true | ||
log to stderr = false | ||
|
||
[mon] | ||
mon data = /var/lib/ceph/mon/ceph-$id | ||
|
||
[osd] | ||
osd data = /var/lib/ceph/osd/ceph-$id | ||
osd journal = /mnt/rbd/osd$id/journal | ||
osd class dir = /usr/lib/rados-classes | ||
filestore filemap = false | ||
|
||
{% set monno = 0 %} | ||
{% set osdno = 0 %} | ||
{% for (host, devices) in devices|dictsort %} | ||
{% if grain['localhost'] == host %} | ||
[mon.{{i}}] | ||
host = {{host}} | ||
mon addr = {{host}}:6789 | ||
{% endif %} | ||
{% for device in devices %} | ||
{% if grain['localhost'] == host %} | ||
[osd.{{i}}] | ||
host = {{host}} | ||
cluster addr = {{host}} | ||
public addr = {{host}} | ||
osd journal size = 8192 | ||
devs = {{device}} | ||
{% endif %} | ||
{% set osdno = osdno + 1 %} | ||
{% endfor %} | ||
{% set monno = monno + 1 %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% import "openstack/config.sls" as config with context %} | ||
|
||
{% set source = pillar.get('openstack:ceph:source', 'deb http://ceph.com/debian precise main') %} | ||
{% set ip = config.internal_ip %} | ||
{% set devices = pillar.get('openstack:ceph:devices', {}) %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{% import "openstack/ceph/config.sls" as config with context %} | ||
ceph-keyring: | ||
cmd.run: | ||
- name: 'wget -q -O - https://raw.github.com/ceph/ceph/master/keys/release.asc | sudo apt-key add -' | ||
- unless: 'apt-key list | grep -q -i ceph' | ||
ceph: | ||
pkgrepo.managed: | ||
- name: {{ config.source }} | ||
- baseurl: {{ config.source }} | ||
- humanname: ceph | ||
- file: /etc/apt/sources.list.d/ceph.list | ||
pkg: | ||
- latest | ||
require: | ||
- pkgrepo: {{ config.source }} | ||
- state: ceph-keyring | ||
/etc/ceph/ceph.conf: | ||
file.managed: | ||
- source: salt://openstack/ceph/ceph.conf | ||
- owner: root | ||
- group: root | ||
- mode: 0644 | ||
- template: jinja | ||
- context: | ||
devices: {{ config.devices }} | ||
{% set i = 0 %} | ||
{% for (host, _) in config.devices|dictsort %} | ||
{% if grains['localhost'] == host %} | ||
/var/lib/ceph/mon/ceph-{{i}}: | ||
file.directory: | ||
- owner: root | ||
- group: root | ||
- mode: 0755 | ||
- makedirs: true | ||
{% endif %} | ||
{% set i = i + 1 %} | ||
{% endfor %} | ||
{% set i = 0 %} | ||
{% for (host, devices) in config.devices|dictsort %} | ||
{% for device in devices %} | ||
{% if grains['localhost'] == host %} | ||
/var/lib/ceph/osd/ceph-{{i}}: | ||
file.directory: | ||
- owner: root | ||
- group: root | ||
- mode: 0755 | ||
- makedirs: true | ||
{% endif %} | ||
{% set i = i + 1 %} | ||
{% endfor %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.