Skip to content

Instantly share code, notes, and snippets.

View jasonnerothin's full-sized avatar
🎯
Focusing

Jason Nerothin jasonnerothin

🎯
Focusing
  • Hands Dirty Engineering
  • At large
View GitHub Profile
<!-- PARSES -->
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:os-core="http://www.openspaces.org/schema/core"
xmlns:os-events="http://www.openspaces.org/schema/events"
xmlns:os-remoting="http://www.openspaces.org/schema/remoting"
xmlns:os-sla="http://www.openspaces.org/schema/sla"
@jasonnerothin
jasonnerothin / gist:a78448ba4a263281b605
Created July 9, 2015 16:20
docker start command for 3.2 GA manager
sudo docker start \
--name data -t \
-v /opt/manager/resources/packages \
-w /tmp/work_dir \
-v ~/:/tmp/home \
-v /root --privileged=False \
-v /etc/init.d \
-v /etc/default \
-v /opt/manager/resources \
-v /opt/manager/env \
@jasonnerothin
jasonnerothin / docker_container_restart.sh
Created July 7, 2015 16:48
Restarting the docker manager containers
sudo docker restart \
--name data -t \
-v /opt/manager/resources/packages \
-w /tmp/work_dir \
-v ~/:/tmp/home \
-v /root --privileged=False \
-v /etc/init.d \
-v /etc/default \
-v /opt/manager/resources \
-v /opt/manager/env \
@jasonnerothin
jasonnerothin / tgz-deploy.sh
Created June 25, 2015 21:06
tgz-deploy.sh
cfy blueprints publish-archive -n orchestrator.yaml -b orchestrator-2 -l orchestrator-*.tar.gz | tee log-for-tgz-deploy-$( date +%s ).log
find ruckus-blueprints -type f | grep -v "myenv\|.git\|.tox\|zip\|.idea\|kumoenv\|test" | xargs tar cvzf orchestrator-$( date +%s ).tar.gz
#!/usr/bin/env bash
sudo aptitude install -y python-dev
sudo aptitude install -y python-virtualenv
sudo aptitude install -y wget zip unzip
virtualenv myenv
source myenv/bin/activate
pip install cloudify
# cfy -h
cfy init -r
@jasonnerothin
jasonnerothin / gist:c85fd0b78e2dd5e82709
Created June 22, 2015 18:29
OpenStack manager blueprint 3.2-build without block device
tosca_definitions_version: cloudify_dsl_1_0
imports:
- http://www.getcloudify.org/spec/cloudify/3.2/types.yaml
- http://www.getcloudify.org/spec/openstack-plugin/1.2/plugin.yaml
- http://www.getcloudify.org/spec/fabric-plugin/1.2/plugin.yaml
inputs:
keystone_username:
########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
mongod_security_group:
type: cloudify.openstack.nodes.SecurityGroup
properties:
security_group:
name: mongod_security_group
description: A security group for Mongo
rules:
- remote_ip_prefix: 0.0.0.0/0
port: { get_property: [ mongod, port ] }
- remote_ip_prefix: 0.0.0.0/0
@jasonnerothin
jasonnerothin / gist:60faf784abac90b56361
Created May 20, 2014 22:05
Compound Space Index Question
package com.belk.catalogcache.domain;
import com.gigaspaces.annotation.pojo.CompoundSpaceIndex;
import com.gigaspaces.annotation.pojo.CompoundSpaceIndexes;
import com.gigaspaces.annotation.pojo.SpaceClass;
/**
* Created by IntelliJ IDEA.
* User: jason
* Date: 5/20/14