Let's say you want to host domains first.com and second.com.
Create folders for their files:
| cd ~/Applications | |
| wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz | |
| tar -xvf dirb222.tar.gz | |
| rm dirb222.tar.gz | |
| brew install autoconf | |
| chmod -R 755 dirb222 | |
| cd dirb222 | |
| ./configure | |
| make | |
| make install |
| # templates/mail_body.j2 | |
| {% for host in play_hosts %} | |
| The {{ host }} says {{ hostvars[host]['result']['stdout'] }} | |
| {% endfor %} |
| #!groovy | |
| pipeline { | |
| agent any | |
| //These params will be displayed for user input when running a build, They are also accepted by the API | |
| parameters { | |
| string(name: 'BUILD_HOSTNAME', description: 'The name of the server to build (from Mdb)') | |
| string(name: 'ILO_IP', description: 'The IP address for the server ilo') | |
| booleanParam(name: 'skipOneView', description: 'Skip the OneView stage?', defaultValue: false) |
| node { | |
| echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
| echo 'No quotes, pipeline command in single quotes' | |
| sh 'echo $BUILD_NUMBER' // 1 | |
| echo 'Double quotes are silently dropped' | |
| sh 'echo "$BUILD_NUMBER"' // 1 | |
| echo 'Even escaped with a single backslash they are dropped' | |
| sh 'echo \"$BUILD_NUMBER\"' // 1 | |
| echo 'Using two backslashes, the quotes are preserved' | |
| sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
| package cmd | |
| import ( | |
| "bitbucket.org/cescoferraro/api/util" | |
| "github.com/fatih/color" | |
| "github.com/spf13/cobra" | |
| ) | |
| var ( | |
| logger = util.Block{ |
| { | |
| "Description" : "ProjectX scalable stack of frontal nodes", | |
| "Parameters" : { | |
| "InstanceType" : { | |
| "Description" : "Type of EC2 instance to launch", | |
| "Type" : "String", | |
| "Default" : "m1.xlarge" | |
| }, | |
| "SSHKeyName" : { | |
| "Description" : "The EC2 Key Pair to allow SSH access to the instances", |
| #!/bin/bash | |
| # EB_APP_NAME = application name | |
| # EB_APP_ENV = application environment | |
| # S3_BUCKET = S3 bucket for ElasticBeanstalk | |
| # S3_KEY = S3 folder to upload built app | |
| # Zip up everything with the exception of node_modules (including dist), .git and zip files | |
| ts=`date +%s` | |
| fn="$EB_APP_NAME-$ts.zip" |
| #!/usr/bin/env bash | |
| set -e | |
| EB_CLI_HOME=$1 | |
| APP_NAME=$2 | |
| CONFIG_NAME=$3 | |
| export AWS_CREDENTIAL_FILE=/var/lib/jenkins/.elasticbeanstalk/aws_credential_file | |
| export PATH=$PATH:$EB_CLI_HOME/api/bin/ |
| #!/usr/bin/env python2 | |
| # AWS Management | |
| import optparse | |
| import ConfigParser | |
| import os, time | |
| import boto.ec2 | |
| def start(): |