Chef-provisioning + EBS/EIP


#1

I’m digging into Chef Provisioning, but I’m having a hard time figuring out
how to use AWS features like elastic storage and IP addresses. Has anyone
done this or am I barking up the wrong tree here?


#2

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring out how to use AWS features like elastic storage and IP addresses. Has anyone done this or am I barking up the wrong tree here?


#3

That’s not exactly what I’m looking for. I’m trying to use
https://github.com/opscode/chef-provisioning. It works, but doesn’t seem to
support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, klum_tz@ukr.net wrote:

https://docs.chef.io/plugin_knife_ec2.html

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring
out how to use AWS features like elastic storage and IP addresses. Has
anyone done this or am I barking up the wrong tree here?


#4

You want to use the aws provider from
https://github.com/opscode/chef-provisioning-aws.

On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright larrywright@gmail.com wrote:

That’s not exactly what I’m looking for. I’m trying to use
https://github.com/opscode/chef-provisioning. It works, but doesn’t seem
to support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, klum_tz@ukr.net wrote:

https://docs.chef.io/plugin_knife_ec2.html

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring
out how to use AWS features like elastic storage and IP addresses. Has
anyone done this or am I barking up the wrong tree here?

Peter Burkholder — Customer Success Engineer

Availability: between vacation and travel, I am mostly out-of office until
Jan 19.

In office/No travel: Dec 29-30, Jan 5, Jan 12-13.

301-204-5767 – pburkholder@chef.io – *my: *Linkedin
http://www.linkedin.com/in/pburkholder Twitter
http://www.twitter.com/pburkholder Cal
https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK
endar

CHEF

CHEF.IO http://www.chef.io/

TM

chef.io http://www.chef.io/ Blog http://www.chef.io/blog/ Facebook
https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/chef Youtube https://www.youtube.com/getchef


#5

Yes, I found the aws provider, and while there is support for creating EBS
volumes and EIPs in there, there does not appear to be any means for
assigning them to instances created using the machine resource, unless I’m
missing something.

On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder pburkholder@chef.io
wrote:

You want to use the aws provider from
https://github.com/opscode/chef-provisioning-aws.

On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright larrywright@gmail.com
wrote:

That’s not exactly what I’m looking for. I’m trying to use
https://github.com/opscode/chef-provisioning. It works, but doesn’t seem
to support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, klum_tz@ukr.net wrote:

https://docs.chef.io/plugin_knife_ec2.html

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring
out how to use AWS features like elastic storage and IP addresses. Has
anyone done this or am I barking up the wrong tree here?

Peter Burkholder — Customer Success Engineer

Availability: between vacation and travel, I am mostly out-of office until
Jan 19.

In office/No travel: Dec 29-30, Jan 5, Jan 12-13.

301-204-5767 – pburkholder@chef.io – *my: *Linkedin
http://www.linkedin.com/in/pburkholder Twitter
http://www.twitter.com/pburkholder Cal
https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK
endar

CHEF

CHEF.IO http://www.chef.io/

TM

chef.io http://www.chef.io/ Blog http://www.chef.io/blog/
Facebook https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/chef Youtube https://www.youtube.com/getchef


#6

I have recently done some work in this. To get additional volumes created
you will have to define block_device_mappings in the bootstrap_options key
of the machine_options like so.

machine ‘name’ do
machine_options(
bootstrap_options: {
block_device_mapping: [
{ ‘DeviceName’ => ‘/dev/sda1’, ‘VirtualName’ => ‘/dev/sda1’,
‘Ebs.VolumeSize’ => 30 }
]
}
)
end

As for the EIP, I haven’t had to get one of those assigned as of yet. Hope
that helps!

On Tue, Jan 13, 2015 at 11:01 AM, Larry Wright larrywright@gmail.com
wrote:

Yes, I found the aws provider, and while there is support for creating EBS
volumes and EIPs in there, there does not appear to be any means for
assigning them to instances created using the machine resource, unless I’m
missing something.

On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder pburkholder@chef.io
wrote:

You want to use the aws provider from
https://github.com/opscode/chef-provisioning-aws.

On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright larrywright@gmail.com
wrote:

That’s not exactly what I’m looking for. I’m trying to use
https://github.com/opscode/chef-provisioning. It works, but doesn’t
seem to support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, klum_tz@ukr.net wrote:

https://docs.chef.io/plugin_knife_ec2.html

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time figuring
out how to use AWS features like elastic storage and IP addresses. Has
anyone done this or am I barking up the wrong tree here?

Peter Burkholder — Customer Success Engineer

Availability: between vacation and travel, I am mostly out-of office
until Jan 19.

In office/No travel: Dec 29-30, Jan 5, Jan 12-13.

301-204-5767 – pburkholder@chef.io – *my: *Linkedin
http://www.linkedin.com/in/pburkholder Twitter
http://www.twitter.com/pburkholder Cal
https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK
endar

CHEF

CHEF.IO http://www.chef.io/

TM

chef.io http://www.chef.io/ Blog http://www.chef.io/blog/
Facebook https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/chef Youtube https://www.youtube.com/getchef


Thanks,

Mark


#7

Also, for additional volumes from a snapshot add the Ebs.SnapshotId key if
it is based on a snapshot.

On Tue, Jan 13, 2015 at 11:19 AM, Mark Pimentel markpimentel22@gmail.com
wrote:

I have recently done some work in this. To get additional volumes created
you will have to define block_device_mappings in the bootstrap_options key
of the machine_options like so.

machine ‘name’ do
machine_options(
bootstrap_options: {
block_device_mapping: [
{ ‘DeviceName’ => ‘/dev/sda1’, ‘VirtualName’ => ‘/dev/sda1’,
‘Ebs.VolumeSize’ => 30 }
]
}
)
end

As for the EIP, I haven’t had to get one of those assigned as of yet.
Hope that helps!

On Tue, Jan 13, 2015 at 11:01 AM, Larry Wright larrywright@gmail.com
wrote:

Yes, I found the aws provider, and while there is support for creating
EBS volumes and EIPs in there, there does not appear to be any means for
assigning them to instances created using the machine resource, unless I’m
missing something.

On Tue, Jan 13, 2015 at 9:15 AM, Peter Burkholder pburkholder@chef.io
wrote:

You want to use the aws provider from
https://github.com/opscode/chef-provisioning-aws.

On Tue, Jan 13, 2015 at 8:57 AM, Larry Wright larrywright@gmail.com
wrote:

That’s not exactly what I’m looking for. I’m trying to use
https://github.com/opscode/chef-provisioning. It works, but doesn’t
seem to support EBS and EIP creation.

On Tue, Jan 13, 2015 at 2:25 AM, klum_tz@ukr.net wrote:

https://docs.chef.io/plugin_knife_ec2.html

— Оригінальне повідомлення —
Від кого: “Larry Wright” larrywright@gmail.com
Дата: 13 січня 2015, 06:38:27

I’m digging into Chef Provisioning, but I’m having a hard time
figuring out how to use AWS features like elastic storage and IP addresses.
Has anyone done this or am I barking up the wrong tree here?

Peter Burkholder — Customer Success Engineer

Availability: between vacation and travel, I am mostly out-of office
until Jan 19.

In office/No travel: Dec 29-30, Jan 5, Jan 12-13.

301-204-5767 – pburkholder@chef.io – *my: *Linkedin
http://www.linkedin.com/in/pburkholder Twitter
http://www.twitter.com/pburkholder Cal
https://www.google.com/calendar/embed?src=pburkholder%40chef.io&mode=WEEK
endar

CHEF

CHEF.IO http://www.chef.io/

TM

chef.io http://www.chef.io/ Blog http://www.chef.io/blog/
Facebook https://www.facebook.com/getchefdotcom Twitter
https://twitter.com/chef Youtube https://www.youtube.com/getchef


Thanks,

Mark


Thanks,

Mark