[chef] customizing bootstrap


Chronological Thread 
  • From: "Malli Pulla Reddy" < >
  • To: " " < >
  • Cc: "Rajesh Pappu" < >
  • Subject: [chef] customizing bootstrap
  • Date: Wed, 26 Nov 2014 02:16:08 -0800
  • Accept-language: en-US
  • Acceptlanguage: en-US

Hi Chefs!

 

Objective: Avoid going out to internet for downloading chef-client rpm everytime I bootstrap a machine.

 

Approach followed:

1. Copied install.sh to locally hosted http server

2. Edited chef-full.erb to point it to install.sh from my http server

3. Edited install.sh to point chef-client rpm that is on my http server

 

Result:

 

:~/chefser12work/chef-repo$ sudo knife bootstrap 192.168.0.15 -sudo -x root -P wc5ack3 --distro test

Connecting to 1.1.1.1

1.1.1.1 --2014-11-26 15:41:43--  http://buildrepo.examplel.com/Adapters/chef-utils/install.sh

1.1.1.1 Resolving buildrepo.examplel.com... 2.2.2.2

1.1.1.1 Connecting to buildrepo.examplel.com|2.2.2.2|:80... connected.

1.1.1.1 HTTP request sent, awaiting response... 200 OK

1.1.1.1 Length: 16592 (16K) [application/x-sh]

1.1.1.1 Saving to: `STDOUT'

1.1.1.1

100%[======================================>] 16,592      --.-K/s   in 0.02s

1.1.1.1

1.1.1.1 2014-11-26 15:41:43 (852 KB/s) - written to stdout [16592/16592]

1.1.1.1

1.1.1.1 Downloading Chef 11.16.2 for el...

1.1.1.1 downloading https://testing.exmaple.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64

1.1.1.1   to file /tmp/install.sh.1628/metadata.txt

1.1.1.1 trying wget...

1.1.1.1 ERROR 404

1.1.1.1 Unable to retrieve a valid package!

1.1.1.1 Please file a bug report at https://github.com/opscode/opscode-omnitruck/issues/new

1.1.1.1 Version: 11.16.2

1.1.1.1

1.1.1.1 Please detail your operating system type, version and any other relevant details

1.1.1.1 Metadata URL: https://testing.exmaple.com/chef/metadata?v=11.16.2&prerelease=false&nightlies=false&p=el&pv=6&m=x86_64

1.1.1.1 bash: line 89: chef-client: command not found

 

Regards,

PullaReddy

TechOps

 




Archive powered by MHonArc 2.6.16.

§