Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Integration with Orchestration Tools

Enzo Rivello edited this page Sep 6, 2016 · 4 revisions

When AMIs are (or not) in place and provisioning logic have been tested locally, it is possible to configure other orchestration tools and/or Cloud providers in order to spin up the same stack remotely.

Alfresco SPK provides a chef-bootstrap.sh that can be used to easily integrate with the orchestration tool of your choice; below we provide an integration example using AWS Cloudformation (and UserData attribute)

CHEF_NODE_NAME=allinone
CHEF_INSTANCE_TEMPLATE=https://raw.githubusercontent.com/alfresco/alfresco-spk/master/instance-templates/community-allinone.json

CHEF_LOCAL_YAML_VARS_URL=file://$WORK_DIR/local-vars.yaml
cat > $CHEF_LOCAL_YAML_VARS_URL << "EOF"
---
alfresco:
  public_hostname: '{"Fn::GetAtt": ["ElasticLoadBalancer","DNSName"]}'
EOF

ruby chef-bootstrap.rb

The expression {"Fn::GetAtt": ["ElasticLoadBalancer","DNSName"]} is Cloudformation-specific and reads the DNSName value of an ElasticLoadBalancer instance defined in the same Cloudformation template.

Clone this wiki locally