Skip to content

Instantly share code, notes, and snippets.

View noahcampbell's full-sized avatar

Noah Campbell noahcampbell

View GitHub Profile
@noahcampbell
noahcampbell / createProject.sh
Created February 3, 2011 16:45
How do add a project when rundeck isn't running
su -c "/etc/rc.d/init.d/rundeckd status"
if [ $? -ne 0 ]
then
su -c "/etc/rc.d/init.d/rundeckd start"
sleep 30
fi
if ! test -d /var/rundeck/projects/@studioName@
then
if ! su -c 'rd-project -a create -p @studioName@' - rundeck
then
[ncampbell@example-staging-yum-seed-01 ~]$ help source
source: source filename [arguments]
Read and execute commands from FILENAME and return. The pathnames
in $PATH are used to find the directory containing FILENAME. If any
ARGUMENTS are supplied, they become the positional parameters when
FILENAME is executed.

Resources

Resource Security

Assumptions

Based on the yaml format

Resources are stored within a project and can be organized within subdirectories. I.e.

<!doctype html>
<html>
<head>
<link type="application/deck+json" rel="deck" href="/cadca5f2-0073-41e2-b956-c51212d42521">
<link type="application/atom+xml" rel="resources" href="/cadca5f2-0073-41e2-b956-c51212d42521/resources">
<link type="application/atom+xml" rel="credentials" href="/cadca5f2-0073-41e2-b956-c51212d42521/credentials">
<link type="application/redis" rel="redis" href="server.endpoint:port">
<link type="application/collectd" rel="collectd" href="server-endpoint:port">
<!-- page scripts -->

Resources

Resource Security

Assumptions:

Resources are stored within a project and can be organized within subdirectories. I.e.

&lt;PROJECT_HOME&gt;/file1.resources

&lt;PROJECT_HOME&gt;/file2.resources

policy:
description: 'Default ACL for Admin Access'
resource:
url: /scheduledExcecution/upload
actions: "workflow_create"
by:
group:
name: 'admin'
#!/bin/bash
# Requires: mktemp
PROG=`basename $0`
# defaults
SSH_USER=$(whoami)
WORKSPACE=$(mktemp -d /tmp/${PROG}-resources-$$)
VERBOSE=0
usage()
DIST = ../dist
.SUFFIXES: .1.gz .1
manpages: dispatch.1.gz job-v20.1.gz rd-jobs.1.gz rd-options.1.gz rd-setup.1.gz rdq.1.gz resource-v10.1.gz run.1 rundeck.1.gz
%.1.gz: %.1
gzip $<
%.1:
Base Directory: /Users/noahcampbell/Projects/Rundeck/rundeck/rundeckapp
Resolving dependencies...
Dependencies resolved in 1843ms.
Running script /Users/noahcampbell/Projects/ControlTier/Project/local/grails-1.2.0/scripts/InstallPlugin.groovy
Environment set to development
Reading remote plugin list ...
Reading remote plugin list ...
Plugin 'jetty' was not found in repository. If it is not stored in a configured repository you will need to install it manually. Type 'grails list-plugins' to find out what plugins are available.
failed to install jetty plugin
@noahcampbell
noahcampbell / introduction.md
Created October 31, 2010 19:03
Introduction to commandline concept.

Goal

Capture the essence of a running job via rundeck. This functionality is the beachhead for new users and power users alike. I tried to emphasize the complete sequence from going to a Rundeck instance, to typing a command and seeing output.

User Interaction Notes

Monotony