summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--files/openshift/Gemfile50
-rw-r--r--files/openshift/mcollective-client.cfg18
-rw-r--r--files/openshift/qpidd.conf3
-rw-r--r--tasks/openshift-el6.yml31
4 files changed, 102 insertions, 0 deletions
diff --git a/files/openshift/Gemfile b/files/openshift/Gemfile
new file mode 100644
index 000000000..e8a56ded2
--- /dev/null
+++ b/files/openshift/Gemfile
@@ -0,0 +1,50 @@
+source 'http://rubygems.org'
+
+gem 'rails', '~> 3.0.13'
+gem 'json'
+gem 'parseconfig'
+gem 'mongo'
+gem 'xml-simple'
+gem 'rack'
+gem 'regin'
+gem 'open4'
+gem 'stickshift-node'
+gem 'stickshift-controller'
+gem 'rest-client'
+gem 'systemu'
+
+# Add plugin gems here
+gem 'gearchanger-mcollective-plugin'
+gem 'uplift-bind-plugin'
+gem 'swingshift-mongo-plugin'
+gem 'dnsruby'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
+# gem 'ruby-debug'
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+# Bundle the extra gems:
+# gem 'bj'
+# gem 'nokogiri'
+# gem 'sqlite3-ruby', :require => 'sqlite3'
+# gem 'aws-s3', :require => 'aws/s3'
+
+# Bundle gems for the local environment. Make sure to
+# put test-only gems in this group so their generators
+# and rake tasks are available in development mode:
+group :development, :test do
+ # The require part from http://tinyurl.com/3pf68ho
+ gem 'mocha', :require => nil
+ gem 'cucumber'
+ gem 'rcov'
+end
+
diff --git a/files/openshift/mcollective-client.cfg b/files/openshift/mcollective-client.cfg
new file mode 100644
index 000000000..3e8a44f59
--- /dev/null
+++ b/files/openshift/mcollective-client.cfg
@@ -0,0 +1,18 @@
+topicprefix = /topic/
+main_collective = mcollective
+collectives = mcollective
+libdir = /usr/libexec/mcollective
+loglevel = debug
+logfile = /var/log/mcollective-client.log
+
+# Plugins
+securityprovider = psk
+plugin.psk = unset
+connector = qpid
+plugin.qpid.host=127.0.0.1
+plugin.qpid.secure=false
+plugin.qpid.timeout=5
+
+# Facts
+factsource = yaml
+plugin.yaml = /etc/mcollective/facts.yaml \ No newline at end of file
diff --git a/files/openshift/qpidd.conf b/files/openshift/qpidd.conf
new file mode 100644
index 000000000..be2e0b862
--- /dev/null
+++ b/files/openshift/qpidd.conf
@@ -0,0 +1,3 @@
+cluster-mechanism=DIGEST-MD5 ANONYMOUS
+auth=no
+
diff --git a/tasks/openshift-el6.yml b/tasks/openshift-el6.yml
index 71c68e1cf..2bf9c9397 100644
--- a/tasks/openshift-el6.yml
+++ b/tasks/openshift-el6.yml
@@ -77,4 +77,35 @@
tags:
- mongo
+- name: poke holes in the firewall
+ action: command lokkit $item
+ with_items:
+ - --service=ssh
+ - --service=https
+ - --service=http
+ - --service=dns
+ - --port=5672:tcp
+
+- name: enable services until I turn peach
+ action: service state=running enabled=yes name=$item
+ with_items:
+ - httpd
+ - stickshift-proxy
+ - named
+ - qpidd
+ - stickshift-broker
+
+- name: disable mcollective
+ action: service state=stopped enabled=no name=mcollective
+
+- name: mcollective client setup
+ action: template src=$files/openshift/mcollective-client.cfg dest=/etc/mcollective/client.cfg
+
+- name: qpidd.conf
+ action: copy src=$files/openshift/qpidd.conf dest=/etc/qpidd.conf
+
+- name: stickshift broker gemfile
+ action: copy src=$files/openshift/Gemfile dest=/var/www/stickshift/broker/Gemfile owner=apache group=apache mode=0640
+
+ \ No newline at end of file