Knife server create


#1

I’m attempting to write some wrappers around knife server create. (ideally knife rackspace knife ec2 and knife openstack).

My question is, is the output from knife server create stdout? Stderr? Is there a way to change it?

Best Regards,
JJ Asghar
e: jj.asghar@peopleadmin.com | c: 512.619.0722 | o: 512.977.5876


#2

Would you be able to use 'knife exec’ ? This eliminates parsing issues because you are manipulating Chef objects themselves.

Joe

On Feb 22, 2014, at 1:54 PM, JJ Asghar jj.asghar@peopleadmin.com wrote:

I’m attempting to write some wrappers around knife server create. (ideally knife rackspace knife ec2 and knife openstack).

My question is, is the output from knife server create stdout? Stderr? Is there a way to change it?

Best Regards,
JJ Asghar
e: jj.asghar@peopleadmin.com | c: 512.619.0722 | o: 512.977.5876


#3

For Cloudstack we’re using the following gem which allows us to call a
special knife command to create a VM and then bootstrap it with Chef
all in one take. I think this is the best approach to take when adding
functionality to knife.

On Sat, Feb 22, 2014 at 3:51 PM, Joe Nuspl nuspl@nvwls.com wrote:

Would you be able to use 'knife exec’ ? This eliminates parsing issues
because you are manipulating Chef objects themselves.

Joe

On Feb 22, 2014, at 1:54 PM, JJ Asghar jj.asghar@peopleadmin.com wrote:

I’m attempting to write some wrappers around knife server create. (ideally
knife rackspace knife ec2 and knife openstack).

My question is, is the output from knife server create stdout? Stderr? Is
there a way to change it?

Best Regards,
JJ Asghar
e: jj.asghar@peopleadmin.com | c: 512.619.0722 | o: 512.977.5876


Best regards, Dmitriy V.