216 Commits (509992fe4c24d81af4a14596531c21b4f4543499)

Author SHA1 Message Date
Scott Moser df47967da4 fix STACK_DIR variable 13 years ago
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'
13 years ago
Anthony Young b4db225494 No need to check localrc for password. Also use TOP_DIR as described by smoser. 13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
Scott Moser 7c481189bd log output of stack.sh to logfile in current dir
use the variable LOGFILE to log stack.sh output for debugging
13 years ago
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.
13 years ago
Anthony Young 66b8bbcbd8 update msg 13 years ago
Anthony Young 6015c82a2b use hard path to localrc 13 years ago
Anthony Young 7a549f40f5 Prompt users for passwords, and write those passwords to localrc 13 years ago
James E. Blair 74c084cd1c Add option not to run bash after execing stack.sh
If stack.sh is run as root, it execs stack.sh as stack, but also
runs bash after doing so to provide a prompt as the stack user.

In unattended installations this isn't desired as it will prevent
the original job from completing.

This change adds a paremeter "SHELL_AFTER_RUN" which can be set
to "no" to prevent the final invocation of bash.
13 years ago
Jesse Andrews 461bfdc89f delete instances needs sudo 13 years ago
Jesse Andrews e4304238c2 only mount cgroups if you haven't already 13 years ago
Anthony Young 1c598da608 call novnc with flagfile 13 years ago
Anthony Young f2aee71a2a use 10 bytes for dash password, as the UI truncates at 20 characters 13 years ago
Anthony Young 06b7ad7c05 don't require uuidgen, as it isn't always in sparse natty installs 13 years ago
Jesse Andrews 0031df019d spacing fixes 13 years ago
Jesse Andrews 2abbdd4751 fix comparisons 13 years ago
Jesse Andrews 5372f43387 update readmes 13 years ago
Jesse Andrews 85d9be3a79 document images upload 13 years ago
Jesse Andrews 08e8b74588 add uec-natty 13 years ago
Jesse Andrews a5e5f2a680 attempt to get the id from glance redux 13 years ago
Andy Smith 2ff3f59e5b TODO: fix parsing of glance results 13 years ago
Jesse Andrews 014e9130db fix grabbing kernel/ramdisk 13 years ago
Jesse Andrews 644b8e831c more documentation and attempt to fix glance add 13 years ago
Jesse Andrews cbe98d5663 more documentation 13 years ago
Jesse Andrews 782b99176c update docs 13 years ago
Jesse Andrews 0e7e897b48 simple docs 13 years ago
Jesse Andrews 53ed387de4 don't use guest for rabbitmq password - fixes #41 13 years ago
Jesse Andrews 89358afe35 don't use secrete as admin password - fixes #34 13 years ago
Jesse Andrews c315ebfde6 append to fstab correctly 13 years ago
Jesse Andrews 8cfd8b6cf2 apt-get needs sudo'd 13 years ago
Jesse Andrews c6d3042e06 attempt to get lxc working #23 13 years ago
Jesse Andrews 9b6741e7ec remove nixon & munin 13 years ago
Jesse Andrews fa418f66a8 fixes #39 - use openssl to generate passwd for mysql 13 years ago
Jesse Andrews 9f20f5140e set service token in keystone's paste config for nova 13 years ago
Jesse Andrews b96871e486 don't use the same keystone admin token for everything 13 years ago
Jesse Andrews 6e9fae0d27 fixing stack's passwdless sudo 13 years ago
Vishvananda Ishaya cd10164381 Make a stack user. Fixes #35 13 years ago
Vishvananda Ishaya c9e3fff73a autocreate a stack user if you are root instead of failing 13 years ago
termie 523c405f06 add elapsed time to script 13 years ago
termie 197d53d32e small docs updates about localrc 13 years ago
Jesse Andrews d462295368 make sure user isn't running as root 13 years ago
Anthony Young ba89a26e4f remove old comment 13 years ago
Anthony Young 0383b4a29e Merge remote-tracking branch 'origin/master' into nova-vncproxy-redux 13 years ago
Jesse Andrews 8f3e28cec1 use the current user instead of stack for dash 13 years ago
Anthony Young 527e341b74 changes to support the new nova-vnc wsproxy 13 years ago
Anthony Young 34acee3699 latest keystone configuration for python-novaclient and dash 13 years ago
Anthony Young 124b0c253d fix apache config to suck less - don't require chown www-data 13 years ago
Anthony Young e8fed48ead use /opt/stack instead of /opt 13 years ago
sleepsonthefloor 9563361cf4 Merge pull request #15 from cloudbuilders/stackrc
implement stackrc for variable configuration (esp repos)
13 years ago
Anthony Young d8c259af5a use stackrc.example, and prompt user before copying 13 years ago
Anthony Young 303233e2f5 tweaks to comments and cache organization 13 years ago
Anthony Young 2f14020756 implement stackrc for variable configuration (esp repos) 13 years ago
Jesse Andrews b5197e4011 allow network size to be set 13 years ago
Jesse Andrews 8ff5dbc27d allow specification of scheduler and take flat interface from environmnet 13 years ago
Jesse Andrews a72f7ad3f2 update network defaults 13 years ago
Anthony Young 36d2527790 more tweaks to get dash working 13 years ago
Anthony Young 853092855b temporary changes to get openstack diablo working with keystone 13 years ago
Anthony Young f33796e01f add python-virtualenv to deps, make keystone print to stdout 13 years ago
Dean Troyer 0d6de09552 Re-enable munin 13 years ago
root 40a37006f4 add IF EXISTS to DROP DATABASE statememnts,
make sure sudo is installed (prevents errors on miminal LXC installs),
13 years ago
Anthony Young c835762081 fix typo 13 years ago
Anthony Young a531b77267 fixes to glance configuration so that we aren't creating files outside of /opt 13 years ago
Anthony Young 9bf3d767ce put user in correct directory when using screen 13 years ago
Anthony Young b1bdd5e276 some cleanup of networking params 13 years ago
Anthony Young 09fde81cc4 sudo when killing dnsmasq 13 years ago
Anthony Young d02d7154ff add token to glance call 13 years ago
Anthony Young f12d3ab02c update glance to use keystone 13 years ago
Anthony Young d000b22d16 add checks to make sure that services are started 13 years ago
Anthony Young f96e59a033 Merge branch 'master' of github.com:cloudbuilders/devstack 13 years ago
Anthony Young 79799796f7 better check for kvm support 13 years ago
Jesse Andrews 5e2fc41cec tweak intro 13 years ago
Anthony Young a074800ca8 move nova-manage commands below the conf generation 13 years ago
Jake Dahn 25806832e2 Merge pull request #11 from jakedahn/master
This should fix munin
13 years ago
Jake Dahn 356812547d Fixing munin 13 years ago
Jesse Andrews a16e5e9c4d move screen creation closer to where used 13 years ago
Jesse Andrews d1879c5cfb default to kvm, but revert to qemu 13 years ago
Anthony Young 9b01ffb05e Merge branch 'master' of github.com:cloudbuilders/devstack 13 years ago
Anthony Young ec21d9371a Configure keystone catalog for multihost use 13 years ago
Jesse Andrews 1f71760110 use newgrp to launch nova-compute in a new context 13 years ago
Jesse Andrews e30432f625 attempt to fix group issue 13 years ago
Anthony Young 1c9f0afeb3 add multi_host option 13 years ago
Jesse Andrews eba18fbfa5 add note to fix the process of adding user to group 13 years ago
Jesse Andrews 74e965f0db more updates to how images are installed 13 years ago
Jesse Andrews 543d7d44e9 don't download images to /opt 13 years ago
Jesse Andrews d61db8597f clone to a directory owned by correct user 13 years ago
Jesse Andrews bf3868d889 use variable FILES instead of DEVSTACK 13 years ago
Jesse Andrews 4d28218954 move apts/pips to files directory 13 years ago
Anthony Young fa594eb978 fix path 13 years ago
Anthony Young 093eeb0dbb silent install 13 years ago
Anthony Young a9a32de4af Merge branch 'master' of github.com:cloudbuilders/devstack 13 years ago
Anthony Young a09ae2ff4b only install mysql-server and rabbitmq-server if needed 13 years ago
Jesse Andrews b0c8feec10 Merge branch 'master' of github.com:cloudbuilders/devstack 13 years ago
Jake Dahn 38fc665584 changing nixon repo to cloudbuilders 13 years ago
Jesse Andrews c4b3aabd30 more docs update 13 years ago
Jake Dahn a3492ed4a9 updating comments, adding fixmes 13 years ago