Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RR-109: provide cloud init for centos 6.x #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,28 @@ This repo contains a cloud-init script for easy reactor installation.
Requirements
------------

Currently this script supports automated reactor installation on Ubuntu 12.04 (LTS).
Currently this script supports automated reactor installation on Ubuntu 12.04
(LTS) and CentOS 6.x.

Usage
-----

To use it, simply edit the `cloud-init` file and change ${KEY} to your repository key.
To use it, simply edit the `cloud-init` file for your distro and change ${KEY}
to your repository key.

(You could also use `sed` or other such trickery to make the change.)

Then, pass the cloud-init file as user data when you boot your instance, for example:

nova boot --user-data=cloud-init --flavor=1 reactor

CentOS Note
-----------

Cloud-init is provided by the EPEL package repository. You also need to enable
EPEL to obtain some of reactor's dependencies. You can enable EPEL and install
cloud-init as follows:

rpm -ivh http://dl.fedoraproject.org/pub/epel/6/`uname -m`/epel-release-6-8.noarch.rpm
rpm --import https://fedoraproject.org/static/0608B895.txt
yum -y install cloud-init
23 changes: 23 additions & 0 deletions cloud-init-centos6
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash
# We provide a full bash script because EPEL cloud-init does not provide
# CloudConfig modules that can handle yum repos. Yum repo creation and gpg key
# import can thus only be set up with an old school script
rpm --import http://downloads.gridcentriclabs.com/packages/gridcentric.key
cat > /etc/yum.repos.d/reactor.repo <<EOF
[gridcentric-cobaltclient]
name=Cobalt Extension for novaclient
baseurl=http://downloads.gridcentriclabs.com/packages/cobaltclient/grizzly/centos/
gpgcheck=1
enabled=1

[gridcentric-reactor]
name=Gridcentric Reactor
baseurl=http://downloads.gridcentriclabs.com/reactor/${KEY}/reactor/centos/
gpgcheck=1
enabled=1
EOF
yum -y install nginx haproxy dnsmasq zookeeper socat python-novaclient cobalt-novaclient reactor-server
rm -f /etc/nginx/sites-enabled/*
mv /etc/reactor/example/nginx/nginx.conf /etc/nginx/nginx.conf
/etc/init.d/nginx restart
reactor-defaults
File renamed without changes.