Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Forked from jamesbeedy/stack-up.sh
Last active October 6, 2015 22:57
Show Gist options
  • Save marcoceppi/1029c03170a35ca48a10 to your computer and use it in GitHub Desktop.
Save marcoceppi/1029c03170a35ca48a10 to your computer and use it in GitHub Desktop.
stack-up.sh
services:
rabbitmq-server:
charm: cs:trusty/rabbitmq-server
options:
management_plugin: 'true'
to:
- lxc:10
ceilometer:
charm: ceilometer
options:
openstack-origin: cloud:trusty-kilo
ceilometer-agent:
charm: ceilometer-agent
options:
openstack-origin: cloud:trusty-kilo
ceph:
charm: ceph
options:
ceph-public-network: 10.16.100.0/24
fsid: f649b7fa-1f21-11e4-8efd-685b358b0b5c
monitor-secret: AQC6COVTsLKSABAA1Xjw8B0Hnv0KJzDEQuGpdw==
source: cloud:trusty-kilo
num_units: 3
to:
- '7'
- '8'
- '9'
ceph-osd:
charm: ceph-osd
num_units: 3
options:
ceph-public-network: 10.16.100.0/24
ceph-cluster-network: 10.16.102.0/24
osd-devices: /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg /dev/sdh /dev/sdi
osd-format: xfs
osd-journal-size: 10240
osd-reformat: 'true'
source: cloud:trusty-kilo
to:
- '0'
- '1'
- '2'
ceph-radosgw:
charm: ceph-radosgw
options:
cache-size: 500
region: RegionOne
revocation-check-interval: 600
source: cloud:trusty-kilo
use-ceph-optimised-packages: 'true'
use-embedded-webserver: 'true'
use-syslog: 'true'
cinder:
charm: cinder
options:
config-flags: storage_availability_zone=nova
api-listening-port: 8776
block-device: None
ceph-osd-replication-count: 2
database: cinder
database-user: cinder
debug: 'false'
glance-api-version: 2
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
overwrite: 'false'
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
cinder-api:
charm: cinder-api
to:
- lxc:10
cinder-avail0:
charm: cinder
options:
enabled-services: volume
config-flags: storage_availability_zone=avail-0
api-listening-port: 8776
block-device: None
ceph-osd-replication-count: 2
database: cinder
database-user: cinder
debug: 'false'
enabled-services: all
glance-api-version: 2
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
overwrite: 'false'
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- '3'
cinder-avail1:
charm: cinder
options:
enabled-services: volume
config-flags: storage_availability_zone=avail-1
api-listening-port: 8776
block-device: None
ceph-osd-replication-count: 2
database: cinder
database-user: cinder
debug: 'false'
enabled-services: all
glance-api-version: 2
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
overwrite: 'false'
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- '4'
cinder-avail2:
charm: cinder
options:
enabled-services: volume
config-flags: storage_availability_zone=avail-2
api-listening-port: 8776
block-device: None
ceph-osd-replication-count: 2
database: cinder
database-user: cinder
debug: 'false'
enabled-services: all
glance-api-version: 2
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
overwrite: 'false'
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- '5'
cinder-ceph:
charm: cinder-ceph
options:
ceph-osd-replication-count: 2
glance:
charm: glance
options:
ceph-osd-replication-count: 2
database: glance
database-user: glance
debug: 'false'
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
prefer-ipv6: 'false'
rabbit-user: glance
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- lxc:10
glance-simplestreams-sync:
charm: glance-simplestreams-sync
options:
use_swift: false
to:
- lxc:10
keystone:
charm: keystone
to:
- lxc:10
heat:
charm: heat
options:
database: heat
database-user: heat
openstack-origin: cloud:trusty-kilo
rabbit-user: heat
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
to:
- lxc:10
keystone:
charm: keystone
options:
openstack-origin: cloud:trusty-kilo
keystone-service-admin-role: KeystoneServiceAdmin
admin-password: ***
admin-port: 35357
admin-role: Admin
admin-user: admin
assignment-backend: sql
database: keystone
database-user: keystone
debug: 'false'
enable-pki: 'false'
https-service-endpoints: 'false'
identity-backend: sql
keystone-admin-role: Admin
ldap-config-flags: None
ldap-password: None
ldap-readonly: 'true'
ldap-server: None
ldap-suffix: None
log-level: WARNING
prefer-ipv6: 'false'
region: RegionOne
service-port: 5000
service-tenant: services
token-expiration: 10000
use-https: 'no'
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- lxc:10
mysql:
charm: mysql
options:
dataset-size: 512M
max-connections: 25000
to:
- lxc:10
neutron-api:
charm: neutron-api
options:
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
vlan-ranges: physnet1 vnet1:110:112
database: neutron
database-user: neutron
debug: 'false'
enable-dvr: 'true'
enable-l3ha: 'false'
l2-population: 'true'
min-l3-agents-per-router: 2
neutron-plugin: ovs
neutron-security-groups: 'true'
overlay-network-type: vxlan gre
prefer-ipv6: 'false'
quota-floatingip: -1
quota-health-monitors: -1
quota-member: -1
quota-network: -1
quota-pool: -1
quota-port: -1
quota-router: -1
quota-security-group: -1
quota-security-group-rule: -1
quota-subnet: -1
rabbit-user: neutron
rabbit-vhost: openstack
region: RegionOne
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- lxc:10
neutron-openvswitch:
charm: neutron-openvswitch
options:
bridge-mappings: physnet1:br-ex vnet1:br-vlan
data-port: br-ex:eth0 br-vlan:eth1
debug: 'false'
disable-security-groups: 'false'
ext-port: eth0
rabbit-user: neutron
rabbit-vhost: openstack
use-syslog: 'true'
verbose: 'false'
vlan-ranges: physnet1 vnet1:100:112
nova-cloud-controller:
charm: nova-cloud-controller
options:
openstack-origin: cloud:trusty-kilo
os-admin-network: 10.16.100.0/24
config-flags: allow_resize_to_same_host=true,allow_migrate_to_same_host=true
console-access-protocol: novnc
console-keymap: en-us
cpu-allocation-ratio: 20.0
database: nova
database-user: nova
debug: 'false'
network-manager: Neutron
neutron-database: neutron
neutron-database-user: neutron
neutron-external-network: null
prefer-ipv6: 'false'
quantum-plugin: ovs
quantum-security-groups: 'yes'
rabbit-user: nova
rabbit-vhost: openstack
region: RegionOne
service-guard: 'true'
use-syslog: 'true'
verbose: 'false'
worker-multiplier: 2
to:
- lxc:10
nova-compute:
charm: nova-compute
options:
openstack-origin: cloud:trusty-kilo
ceph-osd-replication-count: 2
config-flags: libvirt_live_migration_flag="VIR_MIGRATE_UNDEFINE_SOURCE,VIR_MIGRATE_PEER2PEER,VIR_MIGRATE_LIVE,VIR_MIGRATE_PERSIST_DEST"
database: nova
database-user: nova
disable-neutron-security-groups: 'false'
disk-cachemodes: network=writeback,block=writeback
enable-live-migration: 'true'
enable-resize: 'true'
libvirt-image-backend: rbd
migration-auth-type: ssh
multi-host: 'no'
neutron-database: neutron
neutron-database-user: neutron
rabbit-user: nova
rabbit-vhost: openstack
use-syslog: 'true'
verbose: 'false'
virt-type: kvm
num_units: 3
to:
- '0'
- '1'
- '2'
openstack-dashboard:
charm: openstack-dashboard
options:
openstack-origin: cloud:trusty-kilo
debug: 'no'
default-role: Member
neutron-network-firewall: 'true'
neutron-network-lb: 'true'
neutron-network-vpn: 'true'
offline-compression: 'yes'
prefer-ipv6: 'false'
ubuntu-theme: 'yes'
use-syslog: 'true'
webroot: /horizon
openstack-origin-git: |
{repositories:[
{name: requirements,
repository: 'git://github.com/openstack/requirements',
branch: master},
{name: muranodashboard,
repository: 'git://github.com/openstack/murano-dashboard',
branch: master},
{name: horizon,
repository: 'git://github.com/openstack/horizon',
branch: master}]}
neutron-gateway:
charm: neutron-gateway
options:
openstack-origin: cloud:trusty-kilo
bridge-mappings: physnet1:br-ex vnet1:br-vlan
data-port: br-ex:eth0 br-vlan:eth1
database: nova
database-user: nova
debug: 'false'
enable-l3-agent: 'true'
ext-port: eth0
flat-network-providers: physnet1
ha-bindiface: eth0
ha-legacy-mode: 'false'
ha-mcastport: 5409
instance-mtu: 1400
nagios_context: juju
nagios_servicegroups: null
nova-rabbit-user: nova
nova-rabbit-vhost: openstack
plugin: ovs
rabbit-user: neutron
rabbit-vhost: openstack
run-internal-router: leader
use-syslog: 'true'
verbose: 'false'
vlan-ranges: physnet1 vnet1:100:112
to:
- '6'
nrpe:
charm: nrpe
options:
nagios_master: 10.10.20.209
export_nagios_definitions: 'true'
nagios_hostname_type: "unit"
hostcheck_inherit: "generic-host"
hostgroups: "kilo-hosts"
ntp:
charm: ntp
relations:
- - mysql:shared-db
- neutron-api:shared-db
- - rabbitmq-server:amqp
- neutron-api:amqp"
- - neutron-gateway:neutron-plugin-api
- neutron-api:neutron-plugin-api
- - nova-cloud-controller:neutron-api
- neutron-api:neutron-api
- - rabbitmq-server:amqp
- neutron-openvswitch:amqp"
machines:
0:
constraints: tags=osd
series: trusty
1:
constraints: tags=osd
series: trusty
2:
constraints: tags=osd
series: trusty
3:
constraints: tags=avail0
series: trusty
4:
constraints: tags=avail1
series: trusty
5:
constraints: tags=avail2
series: trusty
6:
constraints: tags=network
series: trusty
7:
constraints: tags=mon
series: trusty
8:
constraints: tags=mon
series: trusty
9:
constraints: tags=mon
series: trusty
10:
constraints: tags=multi
series: trusty
#!/bin/bash
# Bootstrap juju/add bootstrap node
juju bootstrap --to kilo-bootstrap.tfawint.com
# Working on this:
# juju deploy my-openstack.yaml
# For now:
juju-deployer -c my-openstack.yaml
# Get beer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment