| 246 | Current Task: testing basic chef-configuration node. |
| 247 | |
| 248 | * created new OSID image, created new experiment, "threenode", and force sansa to be pc2177 and run the "nodeter" img. For some reason thought, the image was *not* the one I created, but what looks like a normal UB1204 DETER image. Did using the web API to create the OSid image overwrite my customized image. Hmm. It doesn't look like it. So where are my changes? Oh well. Start again. |
| 249 | * Install chef client and neuter DETER boot scripts on {{{sansa}}} and create a custom image from that. Then reswap. |
| 250 | * chef-client means chef server needs to be installed so as to have keys. installing chef-server/workstation on {{{arya}}}. Will keep that as a custom image as well. Will chef run on ub10.04? I think so. Bah. There is not 32bit version and the bpcs are 32 bit or at least from 32 bit ub10.04. |
| 251 | * OK. I wanted to run the client on sansa a 64 bit VM ready? machine. But it's the only node I have that can run chef-server. So {{{sansa}}} will be the server and the others the clients. |
| 252 | {{{ |
| 253 | # chef server install |
| 254 | ssh sansa # or whatever the server will be called. |
| 255 | sudo dpkg -i chef-server_11.1.1-1_amd64.deb |
| 256 | sudo chef-server-ctl reconfigure |
| 257 | sudo chef-server-ctl test |
| 258 | # chef workstation install |
| 259 | sudo dpkg -i chef_11.12.4-1_amd64.deb |
| 260 | chef-client -v |
| 261 | # shows version |
| 262 | # (on elabinelab only) add "search isi.deterlab.net" to /etc/resolve.conf so "scratch" resolves. |
| 263 | sudo apt-get install git |
| 264 | # comment out edit in /etc/resolv.conf |
| 265 | cd /tmp |
| 266 | git clone ~glawler/src/chef-repo |
| 267 | cd chef-repo |
| 268 | tar jxvf ~/src/dotchef.tbz |
| 269 | rm .chef/*.pem |
| 270 | sudo cp /etc/chef-server/*.pem .chef |
| 271 | sudo chown glawler .chef/*.pem |
| 272 | knife client create chef_user --admin --file /tmp/chef-repo/.chef/chef_user.pem --key /tmp/chef-repo/.chef/admin.pem --user admin |
| 273 | knife client list |
| 274 | # to check that keys are ok. |
| 275 | }}} |