I’m starting now with chef and following the tutorial I’d already cooked my first recipes :).
I’d also used kitchen, but then I’ve tried to use kitchen at work(and we’re under proxy )
It seems that the problem is the vagrant file automatically generated when I’m launching the command kitchen create. I know that for using proxy with vagrant I need to set some entries (and in other project without chef there’s no problem)
this the output of the command kitchen create:
> gdm:learn_chef_httpd gi.dimaria$ kitchen create > -----> Starting Kitchen (v1.14.2) > -----> Creating <default-centos-72>... > Bringing machine 'default' up with 'virtualbox' provider... > ==> default: Checking if box 'bento/centos-7.2' is up to date... > ==> default: Clearing any previously set forwarded ports... > ==> default: Clearing any previously set network interfaces... > ==> default: Preparing network interfaces based on configuration... > default: Adapter 1: nat > ==> default: Forwarding ports... > default: 22 (guest) => 2222 (host) (adapter 1) > ==> default: Booting VM... > ==> default: Waiting for machine to boot. This may take a few minutes... > default: SSH address: 127.0.0.1:2222 > default: SSH username: vagrant > default: SSH auth method: private key > Timed out while waiting for the machine to boot. This means that > Vagrant was unable to communicate with the guest machine within > the configured ("config.vm.boot_timeout" value) time period. > > If you look above, you should be able to see the error(s) that > Vagrant had when attempting to connect to the machine. These errors > are usually good hints as to what may be wrong. > > If you're using a custom box, make sure that networking is properly > working and you're able to connect to the machine. It is a common > problem that networking isn't setup properly in these boxes. > Verify that authentication configurations are also setup properly, > as well. > > If the box appears to be booting properly, you may want to increase > the timeout ("config.vm.boot_timeout") value.
and this is the my .kitchen.yml:
- name: centos-7.2
- name: default
I need to use kitchen under proxy but I don’t know how to set correctly this file.
can you help me please?
in my shell the proxy variables are already set