Forwarding ports test-kitchen/berkshelf/Vagrantfile


#1

Ohai,

I’m asking here because I don’t know where would I open GitHub issue -
berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets
automatically generated by berkshelf when creating a cookbook. I have put
forwarding port 3000 in it. After that I ran kitchen converge
default-ubuntu-1204 and I expected that port 3000 would be recognized and
set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at
test-kitchen?

If I have to open an issue on GitHub please let me know on which side
(berkshelf or test-kitchen)

Many thanks,

Jasna


#2

I think you are looking for the kitchen-vagrant plugin - the port
forwarding section here to setup port forwarding in your TK .kitchen.yml

On Fri, Feb 7, 2014 at 1:56 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Ohai,

I’m asking here because I don’t know where would I open GitHub issue -
berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets
automatically generated by berkshelf when creating a cookbook. I have put
forwarding port 3000 in it. After that I ran kitchen converge
default-ubuntu-1204 and I expected that port 3000 would be recognized and
set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at
test-kitchen?

If I have to open an issue on GitHub please let me know on which side
(berkshelf or test-kitchen)

Many thanks,

Jasna


#3

Jasna,

I think maybe you’ll have kitchen destroy first before converging again
if you change your driver config. See Pete’s comment for the correct way to
configure it.

Thanks,

On Fri, Feb 7, 2014 at 2:29 PM, Pete Cheslock petecheslock@gmail.comwrote:

I think you are looking for the kitchen-vagrant plugin - the port
forwarding section here to setup port forwarding in your TK .kitchen.yml

https://github.com/test-kitchen/kitchen-vagrant#-network

On Fri, Feb 7, 2014 at 1:56 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Ohai,

I’m asking here because I don’t know where would I open GitHub issue -
berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets
automatically generated by berkshelf when creating a cookbook. I have put
forwarding port 3000 in it. After that I ran kitchen converge
default-ubuntu-1204 and I expected that port 3000 would be recognized and
set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at
test-kitchen?

If I have to open an issue on GitHub please let me know on which side
(berkshelf or test-kitchen)

Many thanks,

Jasna


Nathan L Smith
smith@getchef.com


#4

Ah, gotcha

Many thanks guys

On Fri, Feb 7, 2014 at 9:48 PM, Nathan L Smith smith@getchef.com wrote:

Jasna,

I think maybe you’ll have kitchen destroy first before converging again
if you change your driver config. See Pete’s comment for the correct way to
configure it.

Thanks,

On Fri, Feb 7, 2014 at 2:29 PM, Pete Cheslock petecheslock@gmail.comwrote:

I think you are looking for the kitchen-vagrant plugin - the port
forwarding section here to setup port forwarding in your TK .kitchen.yml

https://github.com/test-kitchen/kitchen-vagrant#-network

On Fri, Feb 7, 2014 at 1:56 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Ohai,

I’m asking here because I don’t know where would I open GitHub issue -
berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets
automatically generated by berkshelf when creating a cookbook. I have put
forwarding port 3000 in it. After that I ran kitchen converge
default-ubuntu-1204 and I expected that port 3000 would be recognized and
set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at
test-kitchen?

If I have to open an issue on GitHub please let me know on which side
(berkshelf or test-kitchen)

Many thanks,

Jasna


Nathan L Smith
smith@getchef.com


#5

Jasna,

We do this in the Jenkins cookbook: https://github.com/opscode-cookbooks/jenkins/blob/f4ecce7152011d2252d7c34697be211315b51b3c/.kitchen.yml#L6-L11

Thanks,
Seth Vargo
Release Engineer, Chef
@sethvargo

On Feb 7, 2014, at 3:53 PM, Jasna Benčić jasna.bencic@teamsnap.com wrote:

Ah, gotcha

Many thanks guys

On Fri, Feb 7, 2014 at 9:48 PM, Nathan L Smith smith@getchef.com wrote:
Jasna,

I think maybe you’ll have kitchen destroy first before converging again if you change your driver config. See Pete’s comment for the correct way to configure it.

Thanks,

On Fri, Feb 7, 2014 at 2:29 PM, Pete Cheslock petecheslock@gmail.com wrote:
I think you are looking for the kitchen-vagrant plugin - the port forwarding section here to setup port forwarding in your TK .kitchen.yml

https://github.com/test-kitchen/kitchen-vagrant#-network

On Fri, Feb 7, 2014 at 1:56 PM, Jasna Benčić jasna.bencic@teamsnap.com wrote:
Ohai,

I’m asking here because I don’t know where would I open GitHub issue - berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets automatically generated by berkshelf when creating a cookbook. I have put forwarding port 3000 in it. After that I ran kitchen converge default-ubuntu-1204 and I expected that port 3000 would be recognized and set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at test-kitchen?

If I have to open an issue on GitHub please let me know on which side (berkshelf or test-kitchen)

Many thanks,

Jasna


Nathan L Smith
smith@getchef.com


#6

Thanks Seth

On Mon, Feb 10, 2014 at 8:31 PM, Seth Vargo sethvargo@getchef.com wrote:

Jasna,

We do this in the Jenkins cookbook:
https://github.com/opscode-cookbooks/jenkins/blob/f4ecce7152011d2252d7c34697be211315b51b3c/.kitchen.yml#L6-L11

Thanks,
Seth Vargo
Release Engineer, Chef
@sethvargo https://twitter.com/sethvargo

On Feb 7, 2014, at 3:53 PM, Jasna Benčić jasna.bencic@teamsnap.com
wrote:

Ah, gotcha

Many thanks guys

On Fri, Feb 7, 2014 at 9:48 PM, Nathan L Smith smith@getchef.com wrote:

Jasna,

I think maybe you’ll have kitchen destroy first before converging again
if you change your driver config. See Pete’s comment for the correct way to
configure it.

Thanks,

On Fri, Feb 7, 2014 at 2:29 PM, Pete Cheslock petecheslock@gmail.comwrote:

I think you are looking for the kitchen-vagrant plugin - the port
forwarding section here to setup port forwarding in your TK .kitchen.yml

https://github.com/test-kitchen/kitchen-vagrant#-network

On Fri, Feb 7, 2014 at 1:56 PM, Jasna Benčić jasna.bencic@teamsnap.comwrote:

Ohai,

I’m asking here because I don’t know where would I open GitHub issue -
berkshelf or test-kitchen.

Story goes like this. I tried to modify Vagrantfile which gets
automatically generated by berkshelf when creating a cookbook. I have put
forwarding port 3000 in it. After that I ran kitchen converge
default-ubuntu-1204 and I expected that port 3000 would be recognized and
set but I only saw that default 2200 port is enabled.

Am I missing some trick around this or this is some kind of a “bug” at
test-kitchen?

If I have to open an issue on GitHub please let me know on which side
(berkshelf or test-kitchen)

Many thanks,

Jasna


Nathan L Smith
smith@getchef.com