locked
How do i configure Release Management to deploy to Unix environments using Chef ? RRS feed

  • Question

  • I have setup Chef on-premise with Chef server on Linux, Windows workstation and 2  bootstrapped nodes - 1 Linux and 1 Windows.  I have setup RM server on the workstation.

    I am unable to get going with deployment since there is not much information on how to deploy apps with RM on non-windows platforms. I could only find an MSDN blog which talks about deploying apps using RM through hosted Chef server. For a beginner like me, the information isn't a detailed one.

    Any descriptional link/walkthrough would help a lot. 

    Thanks in advance!

    Hoysala


    Sunday, January 11, 2015 1:47 PM

Answers

  • Hi Hoysala,

    How about you first have a check on this blog:

    http://blogs.msdn.com/b/visualstudioalm/archive/2014/07/08/how-to-trigger-deployments-to-chef-managed-environment-from-release-management.aspx

    Thanks.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 12, 2015 7:28 AM
    Moderator
  • Hi,

    Currently there is no pre configured VM for Chef server on Azure. However you can use one of the following options to set up a Chef server.

    1. Use a multi tenant solution for the chef server hosted by OpsDev

    2. Create a Linux VM and manually setup chef following instructions from OpsDev, see http://www.getcgef.com/chef/choose-your-version See http://learn.getchef.com and https://www.getchef.com/partners/Microsoft Creating a configuration management workstation.

    Nb. You must setup a workstation to manage your config management workflow with chef, follow the instructions at http://docs.getchef.com/install_dk.html

    To create a windows server vm with chef client

    1.azure management portal https://manage.windowsazure.com

    2.Click new on command bar, click compute virtual machine from the gallery

    3. In the navigation pane, select windows server

    4. Select a windows server R2 data enter VM click right arrow

    5. Provide a name, tier, instance size, admin username. Instance size needs to be a minimum of a A2 to support chef.

    6. Provide a username and password for the admin click right arrow

    7. On the Virtual Machine config screen select create a new cloud service and provide DNS name, region and storage account

    8. Leave the availability set value configured to none

    9. Leave the default end points and windows power she'll and Remote Desktop click right arrow

    10.ensure that install the VM Agent is selected

    11. Select the chef tick box

    12. Under chef configuration supply your client.rb and validation.pem files to configure the chef client node (from chef workstation you can run chef knife to generate the rb And pem files see http://docs.getchef.com/azure_portal.html )
    13. Click the tick box to provision the VM

    Complete the following steps to setup chef extensions

    1. Go to http://portal.azure.com
    2. Navigate to the correct blade
    3. Scroll down to the configure section and click the extension box
    4.on the extension blade click add on the command bar
    5. On the new resource disk blade click the chef client ribbon
    6. On the chef client blade, click create
    7. On the add extension blade, supply your client.rb and validation.pem files to configure the chef client node.
    8. Click create.

    Enabling remote debugging

    1. In visual studio, open server explorer
    2. Expand the azure node, expand the virtual machine node
    3. Right click on the VM you want to debug and select enable debugging click yes on the dialog to confirm
    4. Right click on VM again and select attach debugger.
    5. Select the processes you want to debug on the VM and click attach, to debug a we application select w3wp.exe

    For more details on debugging see http://msdn.microsoft.com/en-us/library/jj919165.aspx

    Tuesday, August 18, 2015 7:58 PM
    Moderator

All replies

  • Hi Hoysala,

    I am trying to involve someone to further look at this issue. There might be some time delay. Appreciate your patience and thanks for your understanding.

    Best regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 12, 2015 5:55 AM
    Moderator
  • Hi HoysalaGarudanagiri.

    Do you mind tell us which Linux OS and version you are using? We are working on the same scenario with you.


    Monday, January 12, 2015 6:24 AM
  • Hi Jacky,

    Thanks for the quick response.

    I am using Ubuntu 14.04 as Chef server and as node.

    Monday, January 12, 2015 6:32 AM
  • Hi Hoysala,

    How about you first have a check on this blog:

    http://blogs.msdn.com/b/visualstudioalm/archive/2014/07/08/how-to-trigger-deployments-to-chef-managed-environment-from-release-management.aspx

    Thanks.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, January 12, 2015 7:28 AM
    Moderator
  • Hi Vicky,

    Thanks for the info!

    This is the only blog that I have come across which talks about RM integration with Chef. But this is at a very high level and does not talk in detail either about the end result or the whole real-time configuration. 

    Looking forward for a walk-through kind of information on the integration.

    Thanks.

    Monday, January 12, 2015 8:03 AM
  • Hi Jacky,

    Any update here?

    TIA,

    Hoysala

    Wednesday, January 21, 2015 10:33 AM
  • Hi,

    Currently there is no pre configured VM for Chef server on Azure. However you can use one of the following options to set up a Chef server.

    1. Use a multi tenant solution for the chef server hosted by OpsDev

    2. Create a Linux VM and manually setup chef following instructions from OpsDev, see http://www.getcgef.com/chef/choose-your-version See http://learn.getchef.com and https://www.getchef.com/partners/Microsoft Creating a configuration management workstation.

    Nb. You must setup a workstation to manage your config management workflow with chef, follow the instructions at http://docs.getchef.com/install_dk.html

    To create a windows server vm with chef client

    1.azure management portal https://manage.windowsazure.com

    2.Click new on command bar, click compute virtual machine from the gallery

    3. In the navigation pane, select windows server

    4. Select a windows server R2 data enter VM click right arrow

    5. Provide a name, tier, instance size, admin username. Instance size needs to be a minimum of a A2 to support chef.

    6. Provide a username and password for the admin click right arrow

    7. On the Virtual Machine config screen select create a new cloud service and provide DNS name, region and storage account

    8. Leave the availability set value configured to none

    9. Leave the default end points and windows power she'll and Remote Desktop click right arrow

    10.ensure that install the VM Agent is selected

    11. Select the chef tick box

    12. Under chef configuration supply your client.rb and validation.pem files to configure the chef client node (from chef workstation you can run chef knife to generate the rb And pem files see http://docs.getchef.com/azure_portal.html )
    13. Click the tick box to provision the VM

    Complete the following steps to setup chef extensions

    1. Go to http://portal.azure.com
    2. Navigate to the correct blade
    3. Scroll down to the configure section and click the extension box
    4.on the extension blade click add on the command bar
    5. On the new resource disk blade click the chef client ribbon
    6. On the chef client blade, click create
    7. On the add extension blade, supply your client.rb and validation.pem files to configure the chef client node.
    8. Click create.

    Enabling remote debugging

    1. In visual studio, open server explorer
    2. Expand the azure node, expand the virtual machine node
    3. Right click on the VM you want to debug and select enable debugging click yes on the dialog to confirm
    4. Right click on VM again and select attach debugger.
    5. Select the processes you want to debug on the VM and click attach, to debug a we application select w3wp.exe

    For more details on debugging see http://msdn.microsoft.com/en-us/library/jj919165.aspx

    Tuesday, August 18, 2015 7:58 PM
    Moderator