This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tmp/myDir | |
file.recurse: | |
- source: salt://files/myDir | |
- user: root | |
- group: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -d -p 5042:5000 -e SETTINGS_FLAVOR=openstack -e OS_USERNAME=${OS_USERNAME} -e OS_PASSWORD=${OS_PASSWORD} -e OS_TENANT_NAME=${OS_TENANT_NAME} -e OS_GLANCE_URL="http://10.129.184.9:9292" -e OS_AUTH_URL=${OS_AUTH_URL} docker-registry ./docker-registry/run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### BEGIN INIT INFO | |
# INIT INFO | |
# Provides: docker | |
# Required-Start: networking | |
# Required-Stop: networking | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: docker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ "$1" == "" ]; then | |
echo "[ERROR] Please specify volume size. Usage: $0 3G" | |
exit 1 | |
fi | |
# Create a file | |
dd if=/dev/zero of=cinder-volumes bs=1 count=0 seek=$1 | |
# Create a loop device |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
source ./keystone_adminrc | |
echo ${OS_USERNAME} | |
echo ${OS_PASSWORD} | |
docker run -d -p 5042:5000 \ | |
-e SETTINGS_FLAVOR=openstack \ | |
-e OS_USERNAME=${OS_USERNAME} \ | |
-e OS_PASSWORD=${OS_PASSWORD} \ | |
-e OS_TENANT_NAME=${OS_TENANT_NAME} \ | |
-e OS_GLANCE_URL="http://10.129.184.9:9292" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "precise64" | |
config.vm.provider :virtualbox do |vb, override| | |
vb.customize ["modifyvm", :id, "--memory", "2048"] | |
vb.customize ["modifyvm", :id, "--cpus", "4"] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -i -t -p 5042:5000 \ | |
-e SETTINGS_FLAVOR=openstack-swift \ | |
-e OS_USERNAME=${OS_USERNAME} \ | |
-e OS_PASSWORD=${OS_PASSWORD} \ | |
-e OS_TENANT_NAME=${OS_TENANT_NAME} \ | |
-e OS_GLANCE_URL=${OS_GLANCE_URL} \ | |
-e OS_AUTH_URL=${OS_AUTH_URL} \ | |
-e OS_REGION_NAME=${OS_REGION_NAME} \ | |
-e SWIFT_CONTAINER=${SWIFT_CONTAINER} \ | |
docker-registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "workflow_test" | |
description: "Simple Action Chain workflow" | |
runner_type: "action-chain" | |
entry_point: "workflows/workflow_test.yaml" | |
enabled: true | |
parameters: | |
vm_name: | |
description: "VM Name" | |
type: string |