Add knife config by template Since the chef-client provisioner is cleaning the node and client at the chef-server from the provisioned node it needs to have a flexible configuration
Add knife config by template
Since the chef-client provisioner is cleaning the node and client at the chef-server from the provisioned node
it needs to have a flexible configuration

This is replacing the used knife flags: -s '<chef-server-url>' -k '/tmp/packer-chef-client/client.pem' -u '<client-name>'
and puts their values into a generated knife.rb

Additionally the knife.rb may include the optional ssl_verify_mode attribute to enable the verify mode verify_none

Background:

When deleting node and client to a self-hosted chef-server using self signed cerfiticates the usage of

    knife node delete <node-name> -y -s '<chef-server-url>' -k '/tmp/packer-chef-client/client.pem' -u '<client-name>'

will lead into a ssl verification failure.

The error output of the knife call is somthing like:

    2015/06/24 12:29:17 ui:     docker: WARNING: No knife configuration file found
    docker: WARNING: No knife configuration file found
    2015/06/24 12:29:17 ui:     docker: ERROR: SSL Validation failure connecting to host: 172.16.117.63 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B:
    certificate verify failed
    docker: ERROR: SSL Validation failure connecting to host: 172.16.117.63 - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
    2015/06/24 12:29:17 ui:     docker: ERROR: Could not establish a secure connection to the server.
    docker: ERROR: Could not establish a secure connection to the server.
    2015/06/24 12:29:17 ui:     docker: Use 'knife ssl check' to troubleshoot your SSL configuration.
    docker: Use 'knife ssl check' to troubleshoot your SSL configuration.
    2015/06/24 12:29:17 ui:     docker: If your Chef Server uses a self-signed certificate, you can use
    docker: If your Chef Server uses a self-signed certificate, you can use
    2015/06/24 12:29:17 ui:     docker: 'knife ssl fetch' to make knife trust the server's certificates.
    docker: 'knife ssl fetch' to make knife trust the server's certificates.
    2015/06/24 12:29:17 ui:     docker:
    docker:
    2015/06/24 12:29:17 ui:     docker: Original Exception: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
    docker: Original Exception: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
    2015/06/24 12:29:17 packer-builder-docker: 2015/06/24 12:29:17 Executed command exit status: 100

beni55/packer,dantran/packer,timsutton/packer,paulmey/packer,monkeylittleinc/packer,ephemeralsnow/packer,Xiol/packer,arizvisa/packer,grange74/packer,tb3088/packer,routelastresort/packer,styro/packer,yoctocloud/packer,youhong316/packer,mkuzmin/packer,marklap/packer,Sheile/packer,mvanholsteijn/packer,marc-ta/packer,justincampbell/packer,dayglojesus/packer,jarl-dk/packer,masbog/packer,tb3088/packer,markpeek/packer,arizvisa/packer,eranchetz/packer,jsternberg/packer,timsutton/packer,marc-ta/packer,Silver90/packer,rnaveiras/packer,noplay/packer,Xiol/packer,jae2/packer,Silver90/packer,paulmey/packer,trumant/packer,p1-nico/packer,Sheile/packer,paulmey/packer,smaato/packer,mohae/packer,stagrlee/packer,youhong316/packer,mwhooker/packer,sneal/packer,ricardclau/packer,c22/packer,vtolstov/packer,marc-ta/packer,DualSpark/packer,gildas/packer-hyperv,danschaffer/packer,masbog/packer,bhcleek/packer,danschaffer/packer,dayglojesus/packer,KFishner/packer,paulvollmer/packer,jgkim/packer,rickard-von-essen/packer,Akasurde/packer,sean-/packer,pearkes/packer,mafrosis/packer,rickard-von-essen/packer,jarl-dk/packer,KohlsTechnology/packer,mitchellh/packer,btd/packer,bhcleek/packer,Akasurde/packer,rk295/packer,quantang/packer,feateds/packer,tas50/packer,sansb/packer,kgrvamsi/packer,fnoeding/packer,yonglehou/packer,bensojona/packer,dave2/packer,kgrvamsi/packer,vtolstov/packer,quantang/packer,manicai/packer,atlassian/packer,sobrinho/packer,zhuzhih2017/packer,rodm/packer,pvandervelde/packer,AlphaStaxLLC/packer,Xiol/packer,tsmolka/packer,atlassian/packer,ChrisLundquist/packer,paulmey/packer,dave2/packer,pvandervelde/packer,BayanGroup/packer,pvandervelde/packer,hashicorp/packer,c22/packer,vtolstov/packer,kgrvamsi/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,DualSpark/packer,mansunkuo/packer,fnoeding/packer,DualSpark/packer,justincampbell/packer,mwhooker/packer,avldya/packer,ldejager/packer,pearkes/packer,hashicorp/packer,pecigonzalo/packer,pieter-lazzaro/packer,evertrue/packer,KohlsTechnology/packer,jasonchaffee/packer,ChrisLundquist/packer,jarl-dk/packer,trumant/packer,grubernaut/packer,youhong316/packer,jen20/packer,AlphaStaxLLC/packer,napramirez/packer,tsmolka/packer,rnaveiras/packer,zakuro9715/packer,p1-nico/packer,blairham/packer,jimmythedog/packer,avldya/packer,kpettijohn/packer,markpeek/packer,mayflower/packer,manicai/packer,jae2/packer,jen20/packer,mvanholsteijn/packer,dieu/packer,leroux/packer,zhuzhih2017/packer,boumenot/packer,ephemeralsnow/packer,youhong316/packer,bensojona/packer,marklap/packer,monsterzz/packer,dieu/packer,tas50/packer,p1-nico/packer,sean-/packer,jasonchaffee/packer,Cbeck527/packer,manicai/packer,pearkes/packer,rodm/packer,gildas/packer-hyperv,orivej/packer,hashicorp/packer,justincampbell/packer,esemplare/packer,KohlsTechnology/packer,mwhooker/packer,dantran/packer,jonathankarsh/packer,danschaffer/packer,KohlsTechnology/packer,yonglehou/packer,sean-/packer,bryson/packer,lantrix/packer,napramirez/packer,hasJackb/packer,paulmey/packer,markpeek/packer,pvandervelde/packer,ldejager/packer,pearkes/packer,aneeshusa/packer,sequenceiq/packer,mefellows/packer,p1-nico/packer,taliesins/packer,paulvollmer/packer,Sheile/packer,KFishner/packer,higebu/packer,israelshirk/packer,life360/packer,stagrlee/packer,rnaveiras/packer,hasJackb/packer,yonglehou/packer,avldya/packer,jarl-dk/packer,quantang/packer,BayanGroup/packer,Akasurde/packer,feateds/packer,jen20/packer,dave2/packer,Cbeck527/packer,icnocop/packer,zeliff/packer,eranchetz/packer,bhcleek/packer,jamesbishopp/packer,mayflower/packer,Cbeck527/packer,tas50/packer,pvanbuijtene/packer,mayflower/packer,rickard-von-essen/packer,kpettijohn/packer,quantang/packer,arizvisa/packer,zhuzhih2017/packer,icnocop/packer,timsutton/packer,mkuzmin/packer,pieter-lazzaro/packer,mafrosis/packer,jasonchaffee/packer,ChrisLundquist/packer,tas50/packer,Silver90/packer,feateds/packer,legal90/packer,israelshirk/packer,aneeshusa/packer,paulvollmer/packer,jmptrader/packer,rnaveiras/packer,smaato/packer,dev-head/packer,pvanbuijtene/packer,monsterzz/packer,hashicorp/packer,dayglojesus/packer,ricardclau/packer,grange74/packer,fnoeding/packer,beni55/packer,routelastresort/packer,paulvollmer/packer,jonathankarsh/packer,DualSpark/packer,hazelesque/packer,esemplare/packer,styro/packer,mansunkuo/packer,mansunkuo/packer,visioncritical/packer,dantran/packer,lantrix/packer,legal90/packer,mefellows/packer,smaato/packer,ChrisLundquist/packer,jmptrader/packer,jen20/packer,rk295/packer,mkuzmin/packer,beni55/packer,timsutton/packer,jae2/packer,grubernaut/packer,manicai/packer,mwhooker/packer,LinusU/packer,gbarberi/packer,kgrvamsi/packer,taliesins/packer,dieu/packer,oliviertremblay/packer,arizvisa/packer,routelastresort/packer,bryson/packer,jamesleech/packer,oliviertremblay/packer,ephemeralsnow/packer,dave2/packer,aneeshusa/packer,jonathankarsh/packer,Sheile/packer,boumenot/packer,rickard-von-essen/packer,mohae/packer,danschaffer/packer,mkuzmin/packer,BayanGroup/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,yoctocloud/packer,higebu/packer,jimmythedog/packer,monsterzz/packer,threatstream/packer,KohlsTechnology/packer,AlphaStaxLLC/packer,evertrue/packer,gbarberi/packer,legal90/packer,pvanbuijtene/packer,p1-nico/packer,jamesleech/packer,bensojona/packer,tas50/packer,markpeek/packer,Cbeck527/packer,mgk/packer,monkeylittleinc/packer,youhong316/packer,pieter-lazzaro/packer,taliesins/packer,grange74/packer,mgk/packer,mafrosis/packer,marc-ta/packer,threatstream/packer,jamesleech/packer,AlphaStaxLLC/packer,mgk/packer,zeliff/packer,grubernaut/packer,visioncritical/packer,sequenceiq/packer,dantran/packer,LinusU/packer,jonathankarsh/packer,rrva/packer,dantran/packer,bryson/packer,boumenot/packer,jgkim/packer,legal90/packer,yonglehou/packer,btd/packer,bhcleek/packer,blairham/packer,legal90/packer,jean/packer,Akasurde/packer,sean-/packer,pieter-lazzaro/packer,jgkim/packer,ricardclau/packer,ephemeralsnow/packer,blairham/packer,hazelesque/packer,ChrisLundquist/packer,sneal/packer,hasJackb/packer,jimmythedog/packer,tas50/packer,samdunne/packer,mefellows/packer,stagrlee/packer,tb3088/packer,avldya/packer,grubernaut/packer,mansunkuo/packer,rickard-von-essen/packer,styro/packer,routelastresort/packer,oliviertremblay/packer,sansb/packer,leroux/packer,smaato/packer,jamesbishopp/packer,dev-head/packer,rrva/packer,icnocop/packer,bhcleek/packer,vtolstov/packer,threatstream/packer,evertrue/packer,mafrosis/packer,mitchellh/packer,dev-head/packer,pvanbuijtene/packer,mvanholsteijn/packer,jean/packer,orivej/packer,beni55/packer,tsmolka/packer,KFishner/packer,threatstream/packer,rrva/packer,jamesbishopp/packer,jasonchaffee/packer,icnocop/packer,c22/packer,rnaveiras/packer,ricardclau/packer,arizvisa/packer,ldejager/packer,smaato/packer,pvandervelde/packer,mansunkuo/packer,israelshirk/packer,ricardclau/packer,atlassian/packer,LinusU/packer,jamesbishopp/packer,marklap/packer,esemplare/packer,pecigonzalo/packer,timsutton/packer,pieter-lazzaro/packer,timsutton/packer,life360/packer,esemplare/packer,leroux/packer,mohae/packer,rnaveiras/packer,monsterzz/packer,LinusU/packer,zhuzhih2017/packer,mwhooker/packer,higebu/packer,rodm/packer,sneal/packer,life360/packer,aneeshusa/packer,quantang/packer,Akasurde/packer,grubernaut/packer,gildas/packer-hyperv,Silver90/packer,monkeylittleinc/packer,kpettijohn/packer,mitchellh/packer,smaato/packer,dave2/packer,mvanholsteijn/packer,jasonchaffee/packer,samdunne/packer,ttaylor249/packer,jsternberg/packer,btd/packer,sansb/packer,vtolstov/packer,ttaylor249/packer,gildas/packer-hyperv,kpettijohn/packer,tsmolka/packer,threatstream/packer,mafrosis/packer,jsternberg/packer,pieter-lazzaro/packer,rrva/packer,routelastresort/packer,pecigonzalo/packer,mkuzmin/packer,p1-nico/packer,KohlsTechnology/packer,dayglojesus/packer,c22/packer,blairham/packer,sobrinho/packer,Xiol/packer,orivej/packer,feateds/packer,samdunne/packer,zeliff/packer,eranchetz/packer,hazelesque/packer,jae2/packer,taliesins/packer,dayglojesus/packer,jean/packer,taliesins/packer,tb3088/packer,masbog/packer,mohae/packer,fnoeding/packer,dave2/packer,leroux/packer,zakuro9715/packer,KFishner/packer,jimmythedog/packer,pvanbuijtene/packer,monkeylittleinc/packer,eranchetz/packer,noplay/packer,oliviertremblay/packer,sequenceiq/packer,zakuro9715/packer,mayflower/packer,yoctocloud/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,atlassian/packer,sobrinho/packer,ldejager/packer,pecigonzalo/packer,danschaffer/packer,paulmey/packer,jen20/packer,zakuro9715/packer,mefellows/packer,atlassian/packer,icnocop/packer,jen20/packer,jmptrader/packer,jimmythedog/packer,btd/packer,dev-head/packer,c22/packer,boumenot/packer,mohae/packer,marklap/packer,trumant/packer,rodm/packer,lantrix/packer,boumenot/packer,sansb/packer,life360/packer,youhong316/packer,Cbeck527/packer,c22/packer,BayanGroup/packer,sobrinho/packer,grange74/packer,visioncritical/packer,tb3088/packer,bradparks/packer__create_vm_for_aws_docker_vagrant_etc,ricardclau/packer,atlassian/packer,grange74/packer,styro/packer,jmptrader/packer,noplay/packer,justincampbell/packer,bryson/packer,ephemeralsnow/packer,mayflower/packer,taliesins/packer,bryson/packer,zhuzhih2017/packer,bensojona/packer,grubernaut/packer,trumant/packer,jgkim/packer,napramirez/packer,esemplare/packer,mitchellh/packer,monkeylittleinc/packer,higebu/packer,markpeek/packer,mitchellh/packer,yoctocloud/packer,ttaylor249/packer,evertrue/packer,israelshirk/packer,jsternberg/packer,sneal/packer,napramirez/packer,yoctocloud/packer,tb3088/packer,rk295/packer,stagrlee/packer,noplay/packer,sequenceiq/packer,hazelesque/packer,orivej/packer,sean-/packer,rk295/packer,sean-/packer,ttaylor249/packer,bryson/packer,arizvisa/packer,dieu/packer,mgk/packer,samdunne/packer,pvandervelde/packer,gbarberi/packer,gbarberi/packer,sneal/packer,life360/packer,higebu/packer,jamesleech/packer,mkuzmin/packer,markpeek/packer,tsmolka/packer,hasJackb/packer,visioncritical/packer,samdunne/packer,tsmolka/packer,zeliff/packer,jean/packer,lantrix/packer,masbog/packer,zhuzhih2017/packer,ttaylor249/packer,ChrisLundquist/packer