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
platforms: | |
- name: ubuntu-14.04 | |
driver_config: | |
network: | |
- ["forwarded_port", {guest: 80, host: 3080}] |
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
powershell_script "new website for #{site_name}" do | |
code <<-EOH | |
Import-Module WebAdministration | |
if (-not(test-path IIS:\\Sites\\#{site_name})){ | |
$NewWebsiteParams = @{Name= '#{site_name}';Port= #{site_data["port"]};PhysicalPath= '#{site_dir}';ApplicationPool= '#{site_name}'} | |
New-Website @NewWebsiteParams | |
} | |
elseif ((Get-WebBinding -Name #{site_name}).bindingInformation -ne '*:#{site_data["port"]}:') { | |
$CurrentBinding = (Get-WebBinding -Name #{site_name}).bindingInformation | |
$BindingParameters = @{Name= '#{site_name}';Binding= $CurrentBinding;PropertyName= 'Port';Value = #{site_data["port"]} } |
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
--- | |
driver: | |
name: vagrant | |
provisioner: | |
name: chef_zero | |
platforms: | |
- name: ubuntu-14.04 | |
driver_config: |
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
machine_options :region => node["aws_deploy"]["machine_options"]["region"], | |
:location => node["aws_deploy"]["machine_options"]["location"], | |
:ssh_username => node["aws_deploy"]["machine_options"]["ubuntu"]["ssh_username"], | |
:convergence_options => {:ssl_verify_mode => :verify_none}, | |
:bootstrap_options =>{ | |
:instance_type => node["aws_deploy"]["machine_options"]["instance_type"], | |
:image_id => node["aws_deploy"]["machine_options"]["ubuntu"]["image_id"], | |
:key_name => node["aws_deploy"]["machine_options"]["key_name"] | |
} |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing ec2 KeyPair to enable SSH access", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"ConstraintDescription": "must be the name of an existing EC2 KeyPair." | |
}, | |
"InstanceType": { | |
"Description": "WebServer EC2 instance type", |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters": { | |
"KeyName": { | |
"Description": "Name of an existing ec2 KeyPair to enable SSH access", | |
"Type": "AWS::EC2::KeyPair::KeyName", | |
"ConstraintDescription": "must be the name of an existing EC2 KeyPair." | |
}, | |
"InstanceType": { | |
"Description": "WebServer EC2 instance type", |
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
ec2-52-6-117-71.compute-1.amazonaws.com | |
ec2-52-3-162-241.compute-1.amazonaws.com | |
ec2-52-7-52-100.compute-1.amazonaws.com | |
ec2-52-6-194-177.compute-1.amazonaws.com | |
ec2-52-6-245-188.compute-1.amazonaws.com | |
ec2-52-7-51-212.compute-1.amazonaws.com | |
ec2-52-7-51-193.compute-1.amazonaws.com | |
ec2-52-7-51-101.compute-1.amazonaws.com | |
ec2-52-6-193-101.compute-1.amazonaws.com | |
ec2-52-3-218-221.compute-1.amazonaws.com |
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
ec2-52-3-145-227.compute-1.amazonaws.com | |
ec2-52-4-143-11.compute-1.amazonaws.com | |
ec2-52-2-25-158.compute-1.amazonaws.com | |
ec2-52-5-27-96.compute-1.amazonaws.com | |
ec2-52-5-70-30.compute-1.amazonaws.com | |
ec2-52-3-136-244.compute-1.amazonaws.com | |
ec2-52-3-200-78.compute-1.amazonaws.com | |
ec2-52-3-205-20.compute-1.amazonaws.com | |
ec2-52-5-43-186.compute-1.amazonaws.com | |
ec2-52-3-142-71.compute-1.amazonaws.com |
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 = "YOURNAME" | |
require "chef/provisioning/aws_driver" | |
with_driver "aws::us-west-1" do | |
aws_security_group "#{name}-ssh" do | |
inbound_rules '0.0.0.0/0' => 22 | |
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
ame = "YOURNAME" | |
require "chef/provisioning/aws_driver" | |
with_driver "aws::us-west-1" do | |
aws_security_group "#{name}-ssh" do | |
inbound_rules '0.0.0.0/0' => 22 | |
end |
OlderNewer