This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def cartridge_repository_action | |
Log.instance.info("action: #{request.action}_action, agent=#{request.agent}, data=#{request.data.pretty_inspect}") | |
action = request[:action] | |
path = request[:path] | |
name = request[:name] | |
version = request[:version] | |
cartridge_version = request[:cartridge_version] | |
reply[:output] = "#{action} succeeded for #{path}" | |
begin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Instantiate a single class containing all of the passwords for the service | |
# This must NOT be checked into Git in clear text | |
# | |
# All values here must be changed for real use even for demos | |
class {'openshift::secrets': | |
datastore => 'dbsecret', | |
publication => 'dnssecret', | |
message_bus => 'activemqsecret', | |
message_end => 'mcollectivesecret', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Node definitions for an OpenShift Origin service | |
# | |
node 'broker.infra.example.org' { | |
class {'mcollective::client': | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# OpenShift Origin service definitions | |
# | |
$openshift = { | |
# OpenShift Service Parameters | |
cloud_domain => 'app.example.org', | |
broker_hosts => ['broker.infra.example.org'], | |
datastore => { | |
plugin => 'mongo', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# A set of tasks to prepare and build the OpenShift Origin source tree | |
# into packages | |
# | |
require 'rubygems' | |
require 'thor' | |
# Used to search for spec files and other marker files within the source tree | |
require 'find' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/rake -f | |
# | |
# Tasks to install build requirement packages, build RPMs and generate documentation pages. | |
# | |
# chmod a+x oo-rake | |
# oo-rake [--tasks]| <task> | |
# | |
require 'rake' | |
# use recursive tasks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# After the OpenShift broker is installed on Fedora 18, there are some | |
# remaining tasks before you can actually start configuring it. | |
# | |
# These are primarily due to gems or packages that have not yet made it into the | |
# Fedora 18 distribution and updates. | |
# | |
# This is as of 2013-03-22, expect changes. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Create yum repo files before installation | |
# Also tune fedora repos to avoid conflicts | |
# | |
# | |
# usage: sh ./oo-add-repos.sh <ORIGIN_SERVER_BASEURL> | |
# | |
# SUDO=echo sh.... if you want |
NewerOlder