This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
juju-centos [2015/05/05 23:03] bteleaga |
juju-centos [2015/05/13 15:34] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
======= Using Juju and MaaS with CentOS ======= | ======= Using Juju and MaaS with CentOS ======= | ||
- | This page will describe how you can test running CentOS under Juju. This has been just merged so full support is not yet here. Some of the known issues | + | Initial |
- | First off, to get started | + | To start off, you should follow our previous |
- | http:// | + | [[http:// |
- | http:// | + | [[http:// |
- | This should | + | This will give you a ready to go MaaS and Juju environment. Make sure you can bootstrap a trusty state machine before following the next steps to make debugging easier. |
- | * Now we need to prepare a CentOS | + | ===== Generating MaaS images for CentOS |
- | $ bzr branch lp: | + | There is a nice project made available by Canonical that will facilitate the creation of a new CentOS |
- | $ cd maas-image-builder | + | |
- | # python setup.py install | + | |
- | * You may need to change the python-stevedore dependency to stevedore in setup.py for the installation to work. Once the image builder is installed, you need to make sure kvm works on the ubuntu machine that you're building the image on. Have a look at https:// | + | Lets get a local copy of maas-iumagebuilder: |
- | | + | |
+ | cd maas-image-builder | ||
+ | python setup.py install | ||
- | :!: This will probably take a very long time. You can do the rest of the juju configuration | + | You may need to change |
- | # maas-image-builder -o centos7-amd64-root-tgz centos --edition 7 | + | * Run the command for creating the image: |
- | | + | |
- | # maas < | + | :!: This will probably take a very long time. You can pass on to configuring Juju, but make sure you **stop before** issuing the `juju boostrap` command and come back here to upload the image to MaaS. |
- | * While the image is uploading, you can create the tools and make them available to the MaaS machines. You do not need to create the trusty ones if they' | + | * Import |
- | | + | |
- | $ cd ~/ | + | |
- | $ cp ~/ | + | |
- | $ tar -czf juju-1.24-centos7-amd64.tgz jujud | + | |
- | $ tar -czf juju-1.24-trusty-amd64.tgz jujud | + | |
- | $ rm jujud | + | |
- | * If you followed the previous tutorials you may have already generated the metadata. In that case there may be some bugs, so it is better to remove it first. | + | ===== Create jujud agent tools ===== |
- | | + | |
+ | |||
+ | mkdir -p ~/ | ||
+ | cd ~/ | ||
+ | cp ~/ | ||
+ | tar -czf juju-1.24-centos7-amd64.tgz jujud | ||
+ | tar -czf juju-1.24-trusty-amd64.tgz jujud | ||
+ | rm jujud | ||
+ | |||
+ | * If you've followed our previous tutorial on installing Juju, you may have already run `juju-metadata generate-tools`. In that case, in order to avoid any issues, please remove the previously created metadata by running the following command: | ||
+ | |||
+ | | ||
* Generate the metadata and make it available locally | * Generate the metadata and make it available locally | ||
- | | + | juju-metadata generate-tools |
- | | + | cp -r ~/ |
- | | + | chmod -R 755 / |
| | ||
+ | ===== Editing your environments.yaml ===== | ||
+ | |||
* Now you should edit the environments.yaml file in ~/.juju. Make maas the default provider. Then in the section for maas configuration set: | * Now you should edit the environments.yaml file in ~/.juju. Make maas the default provider. Then in the section for maas configuration set: | ||
Line 66: | Line 74: | ||
juju bootstrap | juju bootstrap | ||
- | * Once this is complete you can deploy Juju charms on either Ubuntu, CentOS or Windows(provided you followed the previous tutorials fully). | + | * Once this is complete you can deploy Juju charms on either Ubuntu, CentOS or Windows(provided you followed the previous tutorials fully). |
+ | |||
+ | ===== Limitations ===== | ||
+ | |||
+ | While these issues are present in this initial release, we are working on remedying them as soon as possible. Some may take longer then others, but we do want to have 1:1 feature set on all supported platforms. | ||
+ | |||
+ | * no support for yum mirrors/ | ||
+ | * no mongo tools(which implies no backups, amongst other inconveniences) |