I have the following file structure:
Y:\tmp\test
| main.groovy
|
\---impl
FooImpl.groovy
I have the following file structure:
Y:\tmp\test
| main.groovy
|
\---impl
FooImpl.groovy
# | |
# Vagrantfile for testing | |
# | |
Vagrant::configure("2") do |config| | |
# the Chef version to use | |
config.omnibus.chef_version = "11.4.4" | |
def configure_vbox_provider(config, name, ip, memory = 384) | |
config.vm.provider :virtualbox do |vbox, override| |
Long story short, ansible does not work on a Windows control machine, so you basically have to:
ansible --connection=local ...
in the target vmBelow are Vagrantfile
examples for both approaches
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
// define the bitbucket project + repos we want to build | |
def bitbucket_project = 'awesome' | |
def bitbucket_repos = ['foo','bar','baz'] | |
// create a pipeline job for each of the repos and for each feature branch. | |
for (bitbucket_repo in bitbucket_repos) | |
{ | |
multibranchPipelineJob("${bitbucket_repo}-ci") { | |
// configure the branch / PR sources | |
branchSources { |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader | |
== Shell |
#!/bin/bash | |
# This is the current stable release to default to, with Omnibus patch level (e.g. 10.12.0-1) | |
# Note that the chef template downloads 'x.y.z' not 'x.y.z-r' which should be a duplicate of the latest -r | |
use_shell=0 | |
prerelease="false" | |
# Check whether a command exists - returns 0 if it does, 1 if it does not | |
exists() { |
// define the bitbucket project + repos we want to build | |
def bitbucket_project = 'myproj' | |
def bitbucket_repos = ['myrepo1', 'myrepo2'] | |
// create a pipeline job for each of the repos and for each feature branch. | |
for (bitbucket_repo in bitbucket_repos) | |
{ | |
multibranchPipelineJob("${bitbucket_repo}-ci") { | |
// configure the branch / PR sources | |
branchSources { |
import jenkins.* | |
import jenkins.model.* | |
Jenkins.instance.getExtensionList('org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval')[0].get().preapproveAll() |
Various hints I found for properly configuring a Vagrant host-only network with DevStack. The goals are:
Found here: http://askubuntu.com/questions/238040/how-do-i-fix-name-service-for-vagrant-client