Skip to content

Instantly share code, notes, and snippets.

@xlcommunity
xlcommunity / deployit-security.xml
Last active June 13, 2018 15:53
Integrate Crowd and Deployit 3.7.x
<?xml version="1.0" encoding="UTF-8"?>
<!-- NOTE: THIS CODE IS DEPRECATED
Please refer to this documentation, to leverage OIDC authentication for Crowd integration
CrowdId: https://confluence.atlassian.com/crowd/1-2-what-is-crowdid-58656152.html
Setting up OpenId authentication: https://docs.xebialabs.com/xl-release/concept/xl-release-oidc-authentication.html
@xlcommunity
xlcommunity / wrapper.conf
Last active August 29, 2015 14:16
Install Deployit as a Windows Service
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
# WARNING - Do not modify any of the properties when an application
# using this configuration file has been installed as a service or daemon.
# Please uninstall the service before modifying this file. The
# service must then be reinstalled.
JAVA_HOME=D:\\Java\\jre6
@xlcommunity
xlcommunity / wrapper-yajsw-xlr.conf
Last active August 29, 2015 14:16
Install XL Release as a Windows Service
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
# WARNING - Do not modify any of the properties when an application
# using this configuration file has been installed as a service or daemon.
# Please uninstall the service before modifying this file. The
# service must then be reinstalled.
JAVA_HOME=C:\\Program Files\\Java\\jre7
@xlcommunity
xlcommunity / deployit.conf
Last active August 29, 2015 14:16
Install Deployit as a Windows Service
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
{\rtf1\ansi\ansicpg1252\cocoartf1187\cocoasubrtf390
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural
@xlcommunity
xlcommunity / load-into-dict.cli
Last active August 29, 2015 14:16
Importing a properties file into a dictionary
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
from java.util import HashSet
from java.util import Properties
from java.io import FileReader
def loadProps(propertiesFile):
props = Properties()
@xlcommunity
xlcommunity / import-and-deploy.py
Last active August 29, 2015 14:16
Import and deploy deployment packages from CLI
# THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
# FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
# requires deployments.py
def deployPackage(packagePath, targetEnvironment):
print "Importing", packagePath
deploymentPackage = deployit.importPackage(packagePath)
deploymentPackagePath = deploymentPackage.id.split("/")
appName = deploymentPackagePath[len(deploymentPackagePath) - 2]
@xlcommunity
xlcommunity / jackrabbit-repository_mySqlClusterNode2.xml
Last active August 29, 2015 14:16
High Availability Setup - XLD MySql (and clustering option)
<?xml version="1.0"?>
<!--
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
-->
<!DOCTYPE Repository
PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
"http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<!--
@xlcommunity
xlcommunity / jackrabbit-repository_mySqlClusterNode1.xml
Last active August 29, 2015 14:16
High Availability Setup - XLD MySql (and clustering option)
<?xml version="1.0"?>
<!--
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
-->
<!DOCTYPE Repository
PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
"http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<!--
@xlcommunity
xlcommunity / jackrabbit-repository_mySqlNoCluster.xml
Last active August 29, 2015 14:16
High Availability Setup - XLD MySql (and clustering option)
<?xml version="1.0"?>
<!--
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS
FOR A PARTICULAR PURPOSE. THIS CODE AND INFORMATION ARE NOT SUPPORTED BY XEBIALABS.
-->
<!DOCTYPE Repository
PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit 2.0//EN"
"http://jackrabbit.apache.org/dtd/repository-2.0.dtd">
<!--
@xlcommunity
xlcommunity / sample-result.csv
Created March 11, 2015 14:33
Compare current deployed application versions in a pipeline
Application sampleApp
Environment Overview:
Environments/A/MyEnv2 version 1.0-20130302-220317
Environments/MyEnv version 1.0-20130302-220317
Comparison of deployables per environment:
Deployable Property MyEnv2 MyEnv
sample-command container Infrastructure/dummy-cifs-host Infrastructure/192.168.10.145