apache / openwhisk

Apache OpenWhisk is an open source serverless cloud platform
https://openwhisk.apache.org/
Apache License 2.0
6.5k stars 1.16k forks source link

sample ansible scripts for distributed deployment #712

Closed sjfink closed 8 years ago

sjfink commented 8 years ago

We should distribute a sample script configuration which shows how to deploy an openwhisk system with 3 nodes (1 master and 2 slaves) on SoftLayer.

Ideally this would include scripts that provision the machines on SoftLayer, and maybe a blog post or some docs walking through the steps.

Also, we should provision some cluster and add this to CI tests.

chinuy commented 8 years ago

Can I get a follow up of this? or any hint for manual deployment?

sjfink commented 8 years ago

The ansible hosts file will look something like this:

; the first parameter in a host is the inventory_hostname which has to be
; either an ip
; or a resolvable hostname
; used for local actions only
ansible ansible_connection=local
[edge]
some_hostname          ansible_host=1.23.456.789
[controllers]
some_hostname            ansible_host=1.23.456.789
[kafka]
some_hostname            ansible_host=1.23.456.789
; the consul_servers group has maximum 5 machines
[consul_servers]
some_hostname          ansible_host=1.23.456.789
[invokers]
some_hostname           ansible_host=1.23.456.789
some_hostname           ansible_host=1.23.456.789
some_hostname           ansible_host=1.23.456.789
[catalog]
some_hostname            ansible_host=1.23.456.789
[router]
some_hostname            ansible_host=1.23.456.789
[core:children]
edge
controllers
kafka
elk
[shared:children]
catalog
router
; define variables
[all:vars]
ansible_connection=ssh
ansible_user=username
ansible_ssh_private_key_file="something/ssh/id_rsa"
ansible_become_pass=some_password
sjfink commented 8 years ago

Is this finished now that we have the openstack scripts? @rabbah @markusthoemmes @domdom82

sjfink commented 8 years ago

closing as done thanks to the OpenStack distributed deployment scripts.