Doug Hellmann
679f33b242
Make all of the packager method signatures consistent by moving the loops for pre_install and post_install into the component method where the packager is invoked.
...
Have the component get a packager for each package and use that, falling back to a default provided by the distro. This will allow us to override the packaging rules for specific packages by providing a class reference in the distro file.
2012-03-23 16:46:15 -04:00
Doug Hellmann
0ae7ff4b2b
Move the keep_old flag out of the packager and let the component check it.
2012-03-23 16:46:14 -04:00
Doug Hellmann
931b896cc1
Split the action runner into several subclasses and move the logic
...
for each action into the appropriate subclass.
2012-03-21 18:10:13 -04:00
Joshua Harlow
235b33eb20
Make persona fn have its absolute path
2012-03-16 17:27:30 -07:00
Joshua Harlow
2a30054978
More fixups for rhel6 + some ubuntu class name cleanups
2012-03-16 17:02:28 -07:00
Joshua Harlow
4538aa7ca3
Using our log debug decorator for instances constructed dynamically.
2012-03-16 13:52:55 -07:00
Joshua Harlow
97c40c784a
Comment cleanup, persona options and persona cls file
2012-03-16 13:11:15 -07:00
Joshua Harlow
d89a219989
Fixing pylint and pep8 issues/errors/warnings
2012-03-15 20:42:18 -07:00
Joshua Harlow
a39732d73b
Ensure rootdir is absolute
2012-03-15 18:25:31 -07:00
Joshua Harlow
a20a06edac
Initial attempt/work for personas
2012-03-15 16:53:50 -07:00
Joshua Harlow
7e9dc5f7fc
Added license header
2012-03-15 12:15:26 -07:00
Doug Hellmann
ffb35db8bf
Clean up mis-merged changes related to config caching
2012-03-15 12:13:26 -04:00
Doug Hellmann
5bec16348f
Correct import style.
2012-03-15 08:09:23 -04:00
Doug Hellmann
81cbd39b67
Start using the Distro class throughout the system instead of local platform maps.
2012-03-15 08:08:43 -04:00
Joshua Harlow
bd7fbd5474
Reverted back to using set through for password configs, also fixes issue #90 , other teenie cleanups
2012-03-15 00:38:30 -07:00
Joshua Harlow
bdcca74d74
Moved logging initial configuring to utils, so that other tools programs can use it if they want
2012-03-13 12:54:33 -07:00
Joshua Harlow
6e4382cb42
Made it so that the config uses a shared cache (which is shared with the password gen).
...
Adjusted some naming to have slightly shorter variable names (pw_gen).
Removed need for section in password generator.
Adjusted passing of the renamed variable around and the other places pw_gen should be used.
Added helper class that can be used by both pw_gen and cfg to get ids and adjusted print out of the config to
now just print out the shared cache, which seems to make sense to me.
2012-03-12 21:03:08 -07:00
Joshua Harlow
8924904400
pylint and pep8 fixes
2012-03-12 18:10:29 -07:00
Joshua Harlow
9f7a32148d
Added new audit level which is used for shell commands, good for dry run mode
2012-03-12 17:48:33 -07:00
Joshua Harlow
2ac8cd7aee
Merge branch 'force-generate-passwords-73' of git://github.com/dreamhost/Openstack-DevstackPy into dreamhost-force-generate-passwords-73
...
Conflicts:
devstack/shell.py
stack
2012-03-12 15:51:41 -07:00
Joshua Harlow
9f1908feeb
cleaning up some of the dry run stuff to be a little nicer to use
...
only use color logger if in terminal
2012-03-12 15:32:49 -07:00
Doug Hellmann
0018c7cccf
Move the password generation logic to its own class and out of the config
...
parser to cut down on the number of places that have component-specific
configuration knowledge.
Add a --no-prompt-passwords flag to stack for users that want
auto-generated passwords without having to press enter for each
one.
Pork:
- Ignore the emacs TAGS file.
2012-03-12 18:31:57 -04:00
Ken Thomas
ead95b34bc
Added '--dryrun' option for install/uninstall
...
Fixes issue #72
2012-03-12 12:44:38 -07:00
Joshua Harlow
cd17a83a60
Cleanup aisle 10
2012-03-08 18:17:05 -08:00
Doug Hellmann
a173e6e668
configure logging inline, after parsing the command line options
...
addresses bug #60
2012-03-08 18:48:18 -05:00
Joshua Harlow
065b4f5241
Updated so we do a param find stage and then only attempt to replace those that we found in the find stage, this should make comments not be a problem
2012-03-07 19:54:14 -08:00
Doug Hellmann
e5791eaa34
add a -v command line switch to increase output verbosity
2012-03-07 17:44:25 -05:00
Joshua Harlow
a02fa9d3fc
Fixing default options.
2012-02-29 12:46:07 -08:00
Joshua Harlow
e5df79e0ad
Runner cleanups.
2012-02-28 23:23:58 -08:00
Joshua Harlow
4caac8ba86
Updated logger name.
2012-02-28 10:46:33 -08:00
Joshua Harlow
9bcb0f1896
Shuffled around the actions run (initial code).
2012-02-28 10:44:50 -08:00
Joshua Harlow
52dc7f4fd2
Fixed some pep8 warnings.
2012-02-15 10:37:00 -08:00
Joshua Harlow
e6a46c782a
Update stack
2012-02-14 23:41:36 -08:00
Joshua Harlow
f45bc052d8
Moved back to conf dir for templates. Made settings have the log file location + env var name.
2012-02-13 10:34:19 -08:00
Joshua Harlow
a042d6f550
Update stack
2012-02-11 00:22:47 -08:00
Joshua Harlow
5f4f232474
Fixed some pylint warnings.
2012-02-09 15:25:03 -08:00
Joshua Harlow
010506d2b3
Some simple cleanups + tiny features.
2012-02-08 19:53:08 -08:00
Gunther Hagleitner
22f647bf9b
pylint cleanup
2012-02-08 00:44:13 -08:00
Joshua Harlow
a8f33d1fe9
Some cleanups.
2012-02-07 13:26:01 -08:00
Joshua Harlow
b82736f4b4
Updating help message.
2012-02-06 20:39:54 -08:00
Joshua Harlow
872c41482f
Fixing up gunthers new adjustments.
2012-02-06 11:20:24 -08:00
Gunther Hagleitner
c5b9a4119d
force script to be run as root and then switch between root/user as needed
2012-02-06 02:37:17 -08:00
Joshua Harlow
4b053519c8
Update stack
2012-02-04 11:12:04 -08:00
Joshua Harlow
950e958474
Moved util programs to utils...
2012-02-02 13:20:59 -08:00
Joshua Harlow
18c33467bb
Isolate the termcolor stuff incase anyone doesn't want that in the future.
...
Some other small cleanups.
2012-01-30 23:31:51 -08:00
Joshua Harlow
b5bbc98249
Pylint/pep8 adjustments.
2012-01-28 21:10:51 -08:00
Joshua Harlow
8fd53948df
Large update to re juggle how dependencies are resolved.
...
This time not using priorities but a true topo sort.
Also removed pkg listings and pip listings from settings and moved them to there individual components.
Split up the 2 programs, one for listing deps and one for describing components into 2 programs.
2012-01-28 21:05:54 -08:00
Joshua Harlow
bcc0164c12
Updated apache user (shouldn't of been checked in) and made success more visible (vs failure).
...
Also fixed missing network setup.
2012-01-27 23:14:16 -08:00
Joshua Harlow
d6d6008228
Fixed up quantum in nova conf and some other small cleanups.
2012-01-26 18:24:35 -08:00
Joshua Harlow
007dbfe837
Fixed removed shebang.
2012-01-26 13:31:44 -08:00