deploying juju in an lxc environment
play

Deploying JuJu in an LXC Environment Installing Packages These - PowerPoint PPT Presentation

Deploying JuJu in an LXC Environment Installing Packages These instructions assume that v0.6 of juju has been installed from the Ubuntu ppa, and that Ubuntu 12.04.2 LTS is being used. 1. Install lxc: $ sudo aptitude install lxc apt-cacher-ng


  1. Deploying JuJu in an LXC Environment Installing Packages These instructions assume that v0.6 of juju has been installed from the Ubuntu ppa, and that Ubuntu 12.04.2 LTS is being used. 1. Install lxc: $ sudo aptitude install lxc apt-cacher-ng 2. Install libzookeeper-java and zookeeper: $ sudo aptitude install libzookeeper-java zookeeper 3. Generate an ssh rsa key if you don't have one already: $ ssh-keygen -t rsa -b 2048 when prompted choose the default .ssh directory Rugby Linux Users Group 11th March 2013 Page 1 of 4 Quentin Wright - q@sunfieldtech.net

  2. Deploying JuJu in an LXC Environment Configuring juju to use a local environment Create a directory within your home directory to hold juju transient data, for example: $ mkdir ~/juju_local_data Edit ~/.juju/environments.yaml, adding a section of type "local": default: sample environments: sample: type: local control-bucket: juju-a14dfae3830142d9ac23c499395c2785999 admin-secret: 6608267bbd6b447b8c90934167b2a294999 default-series: precise juju-origin: ppa data-dir: /home/q/juju_local_data control-bucket and admin-secret are arbitrary, simple strings. Rugby Linux Users Group 11th March 2013 Page 2 of 4 Quentin Wright - q@sunfieldtech.net

  3. Deploying JuJu in an LXC Environment Using JuJu to Deploy a Wordpress Blog Locally - 1 Derived from https://juju.ubuntu.com/docs/user-tutorial.html $ juju bootstrap in another terminal: $ juju debug-log in first terminal: $ juju status maybe repeat until the machine 0 is running $ juju deploy mysql wordpress-db check the status again $ juju deploy wordpress Rugby Linux Users Group 11th March 2013 Page 3 of 4 Quentin Wright - q@sunfieldtech.net

  4. Deploying JuJu in an LXC Environment Using JuJu to Deploy a Wordpress Blog Locally - 2 add a relation: $ juju add-relation wordpress wordpress-db $ juju expose wordpress navigate with a browser to the appropriate ip address: http://<ip-address> play with wordpress to confirm it works! In another terminal ssh into the machine: $ ssh ubuntu@<ip-address> and inspect When all is done destroy the environment: $ juju destroy-environment Rugby Linux Users Group 11th March 2013 Page 4 of 4 Quentin Wright - q@sunfieldtech.net

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend