[chef] Chef-Solo Attributes for different url locations


Chronological Thread 
  • From: "Gibbons, Daniel (RBI-UK)" < >
  • To: " " < >
  • Subject: [chef] Chef-Solo Attributes for different url locations
  • Date: Mon, 29 Apr 2013 14:03:12 +0000
  • Accept-language: en-GB, en-US

Hi,

 

I’m currently getting started with chef-solo and writing numerous software installer recipes which is working well.  My problem is that I need to specify different base installer locations for different environments. 

 

I have different bat files to initiate chef:

 

UpdateWorkstation.bat

chef-solo -c solo.rb -j workstation.json

 

workstation.json

{

                "run_list": [ "role[workstation]" ]

}

 

With each role I override the MSI locations for example:

Workstation.rb

  "webdeploy" => {

    "options" => "ADDLOCAL=MSDeployFeature,MSDeployUIFeature,DelegationUIFeature,MSDeployShortcuts,DelegationScriptsFeature",

                "baseurl" => "\\\\LOCAL-Servername\\ "

  },

webserver.rb

  "webdeploy" => {

    "options" => "ADDLOCAL=MSDeployFeature,MSDeployUIFeature,DelegationUIFeature,MSDeployShortcuts,DelegationScriptsFeature",

                "baseurl" => "\\\\DEV-DOMAIN-Servername\\ "

  },

 

I’d like a better way of doing this so I could pass a base location override attribute into chef-solo rather than creating lots of roles just for the purpose of specifying a different locations.

 

Thanks

 

Dan

 

 

===================== DISCLAIMER ======================
This message is intended only for the use of the person(s)
("Intended Recipient") to whom it is addressed. It may contain
information which is privileged and confidential. Accordingly
any dissemination, distribution, copying or other use of this
message or any of its content by any person other than the Intended
Recipient may constitute a breach of civil or criminal law and is
strictly prohibited. If you are not the Intended Recipient, please
contact the sender as soon as possible.

Reed Business Information Limited.
Registered Office: Quadrant House, The Quadrant, Sutton, Surrey, SM2 5AS, UK.
Registered in England under Company No. 151537

=======================================================



  • [chef] Chef-Solo Attributes for different url locations, Gibbons, Daniel (RBI-UK), 04/29/2013

Archive powered by MHonArc 2.6.16.

§