Commit graph

933 commits

Author SHA1 Message Date
Jesse Andrews
b9c77d69a6 add debug logging and notes about generating token 2011-10-15 18:37:25 -07:00
Jesse Andrews
f43307d408 exercise.sh was using wrong variable to generate token 2011-10-15 17:40:38 -07:00
Anthony Young
25369c914a make tail stop when stack.sh is finished 2011-10-14 16:50:27 -07:00
Anthony Young
9ff71acb08 make build_lxc.sh work on oneiric 2011-10-14 15:02:20 -07:00
Anthony Young
1046d94ec1 Merge remote-tracking branch 'origin/master' 2011-10-14 12:01:09 -07:00
Anthony Young
e8efef7980 move lxc to tools 2011-10-14 12:00:50 -07:00
Jesse Andrews
d65c6bd79c Merge pull request #71 from cloudbuilders/image_config
Allow configuration of glance images
2011-10-14 10:57:35 -07:00
Anthony Young
7a8989e971 fix doc 2011-10-14 10:20:30 -07:00
Anthony Young
120f4860cd allow multiple images 2011-10-14 09:31:09 -07:00
Anthony Young
c84e0c4c16 Merge remote-tracking branch 'origin/image_config' into image_config 2011-10-14 09:20:46 -07:00
Anthony Young
b76abcc71a Merge remote-tracking branch 'origin/master' into image_config 2011-10-14 09:20:29 -07:00
Anthony Young
93947e59be improve docs 2011-10-13 23:07:56 -07:00
Anthony Young
0ab1d46e05 Allow user to download and install arbitrary images 2011-10-13 23:03:23 -07:00
Anthony Young
696b6a3aae Merge remote-tracking branch 'origin/master' into image_config 2011-10-13 22:20:24 -07:00
Jesse Andrews
ec7c89f677 Merge pull request #58 from cloudbuilders/password_prompt
Password prompt (ask users for passwords instead of auto-gen)
2011-10-13 20:58:41 -07:00
Anthony Young
f2b5f8856f starting work to extract image configuration so it isn't hard coded 2011-10-13 16:44:42 -07:00
Anthony Young
d1b1cdb04c tail run.sh.log instead of the stack.sh.log 2011-10-13 15:25:38 -07:00
Anthony Young
cf145b77e4 merge trunk, and also make sure localrc exists before running build_lxc.sh 2011-10-13 15:07:36 -07:00
Dean Troyer
288f3bdc23 Set hostname in ramdisk image 2011-10-13 15:50:44 -05:00
Dean Troyer
6d1f07b2fd Merge remote-tracking branch 'upstream/master' into rcb-master 2011-10-13 14:01:48 -05:00
Anthony Young
f8dfba1c73 Merge remote-tracking branch 'origin/master' into password_prompt 2011-10-13 11:45:07 -07:00
Jesse Andrews
2e536a3faf add some docs 2011-10-13 11:40:16 -07:00
Jesse Andrews
c576a7cd6d Merge pull request #54 from chmouel/mycnf
Set sensible default for mysql client
2011-10-13 11:37:42 -07:00
Jesse Andrews
8abb812e9e Merge pull request #66 from dtroyer/6-usb-boot
Add build_usb_boot
2011-10-13 11:37:15 -07:00
Jesse Andrews
71b9e4b9a0 Merge pull request #65 from dtroyer/5-clean-pxe-boot
Clean build_pxe_boot
2011-10-13 11:36:34 -07:00
Dean Troyer
d5f4ca5307 Merge remote-tracking branch 'upstream/master' into rcb-master 2011-10-13 13:28:23 -05:00
Dean Troyer
7c076eeff5 Add FLOATING_RANGE default 2011-10-13 13:20:13 -05:00
Chmouel Boudjnah
d5d5b680f8 Set sensible default for mysql client
Using $HOME/.my.cnf to make easier for user to connect to mysql client.
2011-10-13 18:45:42 +01:00
Jesse Andrews
906d586bb0 move readme to markdown 2011-10-13 10:37:45 -07:00
Jesse Andrews
b69d6ce529 update readme with note about gh-pages 2011-10-13 10:36:00 -07:00
Jesse Andrews
2ea3c8b0e3 Merge pull request #59 from smoser/localdev
several changes, largest of which is logging output
2011-10-13 09:26:50 -07:00
Scott Moser
4bec581e4e add includedir entry to sudoers if its not there 2011-10-12 20:32:16 -04:00
Scott Moser
55c9d3f13d fix writing of 50_stack_sh in sudoers 2011-10-12 20:19:46 -04:00
Scott Moser
df47967da4 fix STACK_DIR variable 2011-10-12 20:15:50 -04:00
Scott Moser
102e440e2b fix bad usage of 'su'. instead use 'set -e'.
I had had tried to use -e argument to su, thinking that it would
go through to sh, but it does not.  instead, just use 'set -e'
2011-10-12 20:00:34 -04:00
Anthony Young
b4db225494 No need to check localrc for password. Also use TOP_DIR as described by smoser. 2011-10-12 14:08:08 -07:00
Scott Moser
f9da508122 move setting variables and run-as-stack-user code
Change the over all flow so that the default settings are
filled in in the outside shell (not inside the '()' and 'tee').

This way, those variables pass through to the subshell, but they're
also available in the parent shell at the end for outputting status.

Also, exit failure rather than success if 'exec' to run as stack
user failed.
2011-10-12 08:52:09 -04:00
Scott Moser
8ab1ade42e instead of 'newgrp' and a pipe, use 'sg'
sg and newgrp basically do the same thing, but sg takes a command to
execute rather than just executing sh. This just seems cleaner.
2011-10-12 08:52:09 -04:00
Scott Moser
b94f4bf35b move 'how to use cloud' info outside of xtrace
make the successful run output end with more clear messages.
By moving them outside of the "do it all" path, the xtrace output
will not mix with echo statements.
2011-10-12 08:52:09 -04:00
Scott Moser
d67a18bb07 make sure apt-get update is run
Previously, the only path that would only ensure that 'apt-get update'
was run was when the stack user was created.

Archives can be out of date, apt-get should be run.
2011-10-12 08:52:09 -04:00
Scott Moser
0d2145a0f3 some improvements to 'create stack user' path
* Increase the timeout from 3 to 10, so user has a bigger chance
  to kill the script if being run interactively before a 'stack'
  user is created.
* explicitly ask 'getent' for the stack user rather than getting
  all users and grepping (which would match an "openstack" user,
  or a user named "bob.stack")
* use $PWD rather than `pwd`
* create file in sudoers.d rather than modifying /etc/sudoers.
2011-10-12 08:52:09 -04:00
Scott Moser
7c481189bd log output of stack.sh to logfile in current dir
use the variable LOGFILE to log stack.sh output for debugging
2011-10-12 08:41:17 -04:00
Scott Moser
c4e47ab858 simplify script duration output
Bash contains a variable 'SECONDS' that indicates how long
the current shell has been alive.  It seems sane to just use that
to indicate to the user how long the script took.
2011-10-12 08:39:44 -04:00
Anthony Young
66b8bbcbd8 update msg 2011-10-12 07:21:41 +00:00
Anthony Young
6015c82a2b use hard path to localrc 2011-10-12 07:17:11 +00:00
Anthony Young
7a549f40f5 Prompt users for passwords, and write those passwords to localrc 2011-10-12 07:13:13 +00:00
Dean Troyer
9a60bfac1e Cleanups 2011-10-11 20:34:07 -05:00
Dean Troyer
274ec1022e Add build_usb_boot.sh 2011-10-11 20:32:07 -05:00
Dean Troyer
dd6636be06 Cleanup PXE boot config 2011-10-11 20:28:39 -05:00
Dean Troyer
8f851e716e Create run.sh 2011-10-11 20:22:23 -05:00