Skip to content

Instantly share code, notes, and snippets.

@h2non
Created April 29, 2014 11:00
Show Gist options
  • Save h2non/11396903 to your computer and use it in GitHub Desktop.
Save h2non/11396903 to your computer and use it in GitHub Desktop.
Dployrfile example
default:
attributes:
index: 1
dployr:
attributes:
name: "dployr"
prefix: dev
private_key_path: ~/pems/cert.pem
username: john
scripts:
pre-provision:
- source: ./hello
target: /tmp
provision:
- args: ""
remote_path: "/tmp/hello/jetty.sh %{index}" # use attribute
providers:
aws:
attributes:
instance_type: t1.micro
regions:
sa-east-1a:
attributes:
ami: ami-370daf2a # centos-base-v7
keypair: vagrant-aws-saopaulo
security_groups:
- sg-3cf3e45e # lib_aws_saopaulo
subnet_id: subnet-1eebe07c
gce:
attributes:
instance_type: f1-micro
regions:
europe-west1-a:
attributes:
image_name: centos-base-v7 # centos-base-v7
network: main
@h2non
Copy link
Author

h2non commented Apr 29, 2014

To generate the configuration from CLI you should use:

$ dployr config -f path/to/Dployrfile.yml -a 'index=100'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment