myplc.git
16 years agopropset - enables svn keywords
Thierry Parmentelat [Fri, 16 Nov 2007 16:59:01 +0000 (16:59 +0000)]
propset - enables svn keywords

16 years ago* tentative merge of onelab myplc
Thierry Parmentelat [Fri, 16 Nov 2007 15:14:21 +0000 (15:14 +0000)]
* tentative merge of onelab myplc
* configuration works a slightly different way, using plc-config-tty is recommended
* a few new convenience commands
* improved packaging (plcapi doc, yum.conf, sudoers)
* more robust for invoking service plc through ssh

16 years agocombine conditionals; I thought parseSpec was wrong, but it turns out that it was...
Marc Fiuczynski [Mon, 5 Nov 2007 18:25:49 +0000 (18:25 +0000)]
combine conditionals; I thought parseSpec was wrong, but it turns out that it was due to a syntax error on my part

16 years agoget rid of extra ) in %if conditional
Marc Fiuczynski [Mon, 5 Nov 2007 18:22:38 +0000 (18:22 +0000)]
get rid of extra ) in %if conditional

16 years agofix distroname conditional
Marc Fiuczynski [Mon, 5 Nov 2007 18:20:57 +0000 (18:20 +0000)]
fix distroname conditional

16 years agoparseSpec does not like complex %if statements
Marc Fiuczynski [Mon, 5 Nov 2007 17:38:34 +0000 (17:38 +0000)]
parseSpec does not like complex %if statements

16 years agoThis change set makes several modifications:
Marc Fiuczynski [Mon, 5 Nov 2007 16:51:15 +0000 (16:51 +0000)]
This change set makes several modifications:

1. it conditionally include certain "Requires" statements for specific
   distributions and their corresponding release.

2. it double checks that /sbin/new-kernel-pkg isn't linked to /sbin/true,
   as often is the case in vservers dueo the /etc/rpm/macros setup.

3. adds in 256 /dev/loop entries

4. turns off the "requirestty" option in /etc/sudoers

16 years agogeneralize to support distro and release for packages
Marc Fiuczynski [Fri, 26 Oct 2007 21:07:59 +0000 (21:07 +0000)]
generalize to support distro and release for packages

16 years agoinotify-devel-tools only exists in f7 and up as a standard package.
Marc Fiuczynski [Thu, 25 Oct 2007 03:39:08 +0000 (03:39 +0000)]
inotify-devel-tools only exists in f7 and up as a standard package.

16 years agoRename the rpm package name to be MyPLC-devel-native.
Marc Fiuczynski [Wed, 24 Oct 2007 13:29:56 +0000 (13:29 +0000)]
Rename the rpm package name to be MyPLC-devel-native.

16 years agoMake certain packages optional based on fedora release version.
Marc Fiuczynski [Wed, 24 Oct 2007 12:43:23 +0000 (12:43 +0000)]
Make certain packages optional based on fedora release version.

16 years agoRemove gen-sites-xml.py, gen-slices-xml-05.py, and
Marc Fiuczynski [Tue, 23 Oct 2007 18:30:58 +0000 (18:30 +0000)]
Remove gen-sites-xml.py, gen-slices-xml-05.py, and
gen-static-content.py from basic MyPLC build.  These are sepcific for
the public PlanetLab and do not need to be part of the basic MyPLC
build.

16 years agoChange pushd to use MyPLC rather than myplc, because we renamed the package.
Marc Fiuczynski [Tue, 23 Oct 2007 18:27:34 +0000 (18:27 +0000)]
Change pushd to use MyPLC rather than myplc, because we renamed the package.

16 years agoInclude graphviz for util-vserver. It uses the "dot" program.
Marc Fiuczynski [Tue, 23 Oct 2007 17:30:53 +0000 (17:30 +0000)]
Include graphviz for util-vserver.  It uses the "dot" program.

16 years agoBump version.
Marc Fiuczynski [Mon, 22 Oct 2007 17:14:28 +0000 (17:14 +0000)]
Bump version.

16 years agoMake uninstall scriptlet work.
Marc Fiuczynski [Mon, 22 Oct 2007 17:12:07 +0000 (17:12 +0000)]
Make uninstall scriptlet work.

16 years agoRemoved "install" and "metadata" from the Requires list. Not sure
Marc Fiuczynski [Mon, 22 Oct 2007 16:49:40 +0000 (16:49 +0000)]
Removed "install" and "metadata" from the Requires list.  Not sure
where those came from in the first place.

16 years agoChange svn -> subversion.
Marc Fiuczynski [Mon, 22 Oct 2007 16:47:07 +0000 (16:47 +0000)]
Change svn -> subversion.

16 years agoInclude ocaml et al. required by vsys. There were a few others listed
Marc Fiuczynski [Mon, 22 Oct 2007 16:33:19 +0000 (16:33 +0000)]
Include ocaml et al. required by vsys.  There were a few others listed
in plc_devel_config.xml that I've also added.

16 years agoChange pushd from myplc to MyPLC due to module renaming.
Marc Fiuczynski [Wed, 17 Oct 2007 07:21:25 +0000 (07:21 +0000)]
Change pushd from myplc to MyPLC due to module renaming.

16 years agoDon't install the gen-sits-xml, gen-slices-xml, and gen-static-content files.
Marc Fiuczynski [Wed, 17 Oct 2007 06:25:01 +0000 (06:25 +0000)]
Don't install the gen-sits-xml, gen-slices-xml, and gen-static-content files.

Copy files from WWW rather than new_plc_www module.  This is needed
because we renamed the module.

16 years agoPLCAPI build requires expat-devel
Marc Fiuczynski [Sun, 14 Oct 2007 18:14:47 +0000 (18:14 +0000)]
PLCAPI build requires expat-devel

16 years agoAdded ocaml and inotify RPMs for vsys [wiki:vsys vsys].
Marc Fiuczynski [Wed, 10 Oct 2007 17:39:25 +0000 (17:39 +0000)]
Added ocaml and inotify RPMs for vsys [wiki:vsys vsys].

16 years agoBump version number.
Marc Fiuczynski [Tue, 9 Oct 2007 17:41:09 +0000 (17:41 +0000)]
Bump version number.

16 years agoChange pushd ops to use MyPLC rather than myplc, because we renamed the module.
Marc Fiuczynski [Tue, 9 Oct 2007 17:40:11 +0000 (17:40 +0000)]
Change pushd ops to use MyPLC rather than myplc, because we renamed the module.

16 years agoDefines an RPM package that has all of the appropriate Requires:
Marc Fiuczynski [Fri, 5 Oct 2007 22:06:47 +0000 (22:06 +0000)]
Defines an RPM package that has all of the appropriate Requires:
statements in order to build myplc.  Will also add the "build"
user/group and update /etc/sudoers with this build user.

16 years agoneed mysql to build ulogd from within myplc-devel
Marc Fiuczynski [Wed, 12 Sep 2007 21:36:51 +0000 (21:36 +0000)]
need mysql to build ulogd from within myplc-devel

16 years agobuild script a myplc that can be installed into a vserver/vanilla fc box
Marc Fiuczynski [Mon, 10 Sep 2007 20:16:44 +0000 (20:16 +0000)]
build script a myplc that can be installed into a vserver/vanilla fc box

16 years agospec file for a myplc that can be installed into a vserver/vanilla fc box
Marc Fiuczynski [Mon, 10 Sep 2007 20:15:41 +0000 (20:15 +0000)]
spec file for a myplc that can be installed into a vserver/vanilla fc box

16 years ago+ update messages to reflect current GUI
Stephen Soltesz [Wed, 5 Sep 2007 16:39:56 +0000 (16:39 +0000)]
+ update messages to reflect current GUI
  update authentication failure messages to describe all-in-one bootcd
  options as a possibility for what to do

16 years agolet build have full sudo power within a myplc-devel
Marc Fiuczynski [Fri, 31 Aug 2007 07:14:27 +0000 (07:14 +0000)]
let build have full sudo power within a myplc-devel

16 years agoadd uninstall for distutils
Marc Fiuczynski [Fri, 31 Aug 2007 04:48:37 +0000 (04:48 +0000)]
add uninstall for distutils

16 years agotypo
Marc Fiuczynski [Fri, 31 Aug 2007 04:48:11 +0000 (04:48 +0000)]
typo

16 years agofix pl_make_mig -> pl_make_image
Marc Fiuczynski [Fri, 31 Aug 2007 02:33:04 +0000 (02:33 +0000)]
fix pl_make_mig -> pl_make_image

16 years agouse build/build.common functions
Marc Fiuczynski [Fri, 31 Aug 2007 02:29:35 +0000 (02:29 +0000)]
use build/build.common functions

16 years agomove a bunch of functionality out into the build modules' build.common file
Marc Fiuczynski [Fri, 31 Aug 2007 02:24:24 +0000 (02:24 +0000)]
move a bunch of functionality out into the build modules' build.common file

16 years agoassume Fedora release should be at least FC4
Marc Fiuczynski [Wed, 29 Aug 2007 03:13:07 +0000 (03:13 +0000)]
assume Fedora release should be at least FC4

16 years agofix to selecting Fedora release number
Marc Fiuczynski [Tue, 28 Aug 2007 21:52:38 +0000 (21:52 +0000)]
fix to selecting Fedora release number

16 years agoneed python-devel explicit in Fedora 7
Marc Fiuczynski [Fri, 24 Aug 2007 07:36:28 +0000 (07:36 +0000)]
need python-devel explicit in Fedora 7

16 years agoadd findutils explicitly, as this does not appear in Fedora 7
Marc Fiuczynski [Fri, 24 Aug 2007 07:19:27 +0000 (07:19 +0000)]
add findutils explicitly, as this does not appear in Fedora 7

16 years agoLet mkfedora pick the right URL to get the RPMs, unless it is specifically specified...
Marc Fiuczynski [Fri, 24 Aug 2007 07:11:36 +0000 (07:11 +0000)]
Let mkfedora pick the right URL to get the RPMs, unless it is specifically specified in /etc/planetlab/ or passed in as an argument

16 years agoMake Fedora 7 compatible
Marc Fiuczynski [Fri, 24 Aug 2007 06:48:06 +0000 (06:48 +0000)]
Make Fedora 7 compatible

16 years agochange v3 to v4 yumgroups.xml
Faiyaz Ahmed [Wed, 22 Aug 2007 02:04:56 +0000 (02:04 +0000)]
change v3 to v4 yumgroups.xml

16 years agoby default build myplc for same fedora as host environment
Marc Fiuczynski [Thu, 16 Aug 2007 21:42:02 +0000 (21:42 +0000)]
by default build myplc for same fedora as host environment

16 years agoAllow build as root (eww)
Daniel Hokka Zakrisson [Mon, 13 Aug 2007 18:59:04 +0000 (18:59 +0000)]
Allow build as root (eww)

16 years ago- set default site 'is_public' value to True
Tony Mack [Mon, 2 Jul 2007 18:44:10 +0000 (18:44 +0000)]
- set default site 'is_public' value to True

17 years agodumps and cleans the drupal database as well
Thierry Parmentelat [Mon, 5 Mar 2007 12:38:47 +0000 (12:38 +0000)]
dumps and cleans the drupal database as well

17 years ago- append site-specific access rules pg_hba.conf.d/*.conf to pg_hba.conf
Mark Huang [Fri, 9 Feb 2007 19:26:18 +0000 (19:26 +0000)]
- append site-specific access rules pg_hba.conf.d/*.conf to pg_hba.conf

17 years ago- only update node package repository if running on boot server
Mark Huang [Thu, 8 Feb 2007 16:05:45 +0000 (16:05 +0000)]
- only update node package repository if running on boot server

17 years ago- move gen-sites-xml.py one shot to www
Mark Huang [Wed, 7 Feb 2007 23:54:35 +0000 (23:54 +0000)]
- move gen-sites-xml.py one shot to www

17 years ago- generate sites.xml on www
Mark Huang [Wed, 7 Feb 2007 23:21:27 +0000 (23:21 +0000)]
- generate sites.xml on www

17 years ago- fix exit/return mixup
Mark Huang [Wed, 7 Feb 2007 18:45:42 +0000 (18:45 +0000)]
- fix exit/return mixup

17 years ago- bump release number
Mark Huang [Wed, 7 Feb 2007 15:37:29 +0000 (15:37 +0000)]
- bump release number

17 years ago- only look for .xml files in /etc/planetlab/configs
Mark Huang [Tue, 6 Feb 2007 23:36:04 +0000 (23:36 +0000)]
- only look for .xml files in /etc/planetlab/configs

17 years ago- serve PlanetLabConf if not running web server
Mark Huang [Tue, 6 Feb 2007 17:55:34 +0000 (17:55 +0000)]
- serve PlanetLabConf if not running web server

17 years agoSet the document root to /data/var/www/html (static files
Mark Huang [Tue, 6 Feb 2007 16:24:13 +0000 (16:24 +0000)]
Set the document root to /data/var/www/html (static files
only, no Drupal or admin pages) if the web server should not
run on this machine.

17 years ago- if web server was configured but not enabled, script would think that
Mark Huang [Mon, 5 Feb 2007 19:56:26 +0000 (19:56 +0000)]
- if web server was configured but not enabled, script would think that
  it was already running and would not enable boot server
- also redirect direct requests to /planetlab/ to HTTPS
- if web server is not enabled, redirect index page to web server

17 years ago- also give DB access to the boot server, which may run its own API
Mark Huang [Mon, 5 Feb 2007 19:11:06 +0000 (19:11 +0000)]
- also give DB access to the boot server, which may run its own API

17 years ago- avoid regenerating yum metadata if no packages are newer than the
Mark Huang [Sun, 4 Feb 2007 01:05:28 +0000 (01:05 +0000)]
- avoid regenerating yum metadata if no packages are newer than the
  metadata files

17 years ago- go ahead and require SOAPpy
Mark Huang [Fri, 2 Feb 2007 23:40:43 +0000 (23:40 +0000)]
- go ahead and require SOAPpy

17 years ago- remove plc_ticket_pubkey bootstrap, this is no longer necessary
Mark Huang [Fri, 2 Feb 2007 23:40:22 +0000 (23:40 +0000)]
- remove plc_ticket_pubkey bootstrap, this is no longer necessary

17 years ago- change i2 to i2_
Mark Huang [Fri, 2 Feb 2007 19:56:21 +0000 (19:56 +0000)]
- change i2 to i2_

17 years agoMore sane network slice attribute names. Also added rate limits back.
Faiyaz Ahmed [Fri, 2 Feb 2007 19:43:01 +0000 (19:43 +0000)]
More sane network slice attribute names.  Also added rate limits back.

17 years agoSymlink any (real) files or directories in /data/var/www/html/* to
Mark Huang [Fri, 2 Feb 2007 15:37:25 +0000 (15:37 +0000)]
Symlink any (real) files or directories in /data/var/www/html/* to
/var/www/html/. We could descend into subdirectories, but the code to do
so properly would be madness.

17 years ago- add SOAPpy and PyXML to development environment so that new_plc_api
Mark Huang [Fri, 2 Feb 2007 04:32:36 +0000 (04:32 +0000)]
- add SOAPpy and PyXML to development environment so that new_plc_api
  builds cleanly

17 years agoReplaced network rate limits with byte limits.
Faiyaz Ahmed [Thu, 1 Feb 2007 21:09:22 +0000 (21:09 +0000)]
Replaced network rate limits with byte limits.

17 years ago- clean up migrate_db, optimize main loop
Mark Huang [Wed, 31 Jan 2007 19:53:20 +0000 (19:53 +0000)]
- clean up migrate_db, optimize main loop
- don't set subversion here, require that the migration scripts do it
- check all steps for errors

17 years agoexecutable migration scripts
Thierry Parmentelat [Wed, 31 Jan 2007 10:02:25 +0000 (10:02 +0000)]
executable migration scripts

17 years ago- add Boot Manager messages
Mark Huang [Tue, 30 Jan 2007 23:11:14 +0000 (23:11 +0000)]
- add Boot Manager messages

17 years ago- move drupal sites/ directory to /data/var/www/html/ so that custom
Mark Huang [Tue, 30 Jan 2007 16:03:20 +0000 (16:03 +0000)]
- move drupal sites/ directory to /data/var/www/html/ so that custom
  modules and themes can be installed

17 years agoclean cleans repodata and headers as well
Thierry Parmentelat [Tue, 30 Jan 2007 15:56:53 +0000 (15:56 +0000)]
clean cleans repodata and headers as well

17 years ago* accept the repositories to manage as arguments
Thierry Parmentelat [Tue, 30 Jan 2007 15:09:22 +0000 (15:09 +0000)]
* accept the repositories to manage as arguments
* performs gpg-signing only once, stores stamps in repository/signed-stamps/
  (still runs yum-arch and createrepo unconditionnally)
* can also cleanup these stamps with packages clean [repo]

17 years agoadds minimal support for db migrations
Thierry Parmentelat [Tue, 30 Jan 2007 11:29:36 +0000 (11:29 +0000)]
adds minimal support for db migrations

also supports new usage
Usage: /etc/plc.d/db [start|migrate|dump|clean-dump]
for convenience

17 years agorun drupal cron every hour
Mark Huang [Fri, 26 Jan 2007 05:54:35 +0000 (05:54 +0000)]
run drupal cron every hour

17 years ago- add perl-GD for plot-latlong
Mark Huang [Fri, 26 Jan 2007 02:48:57 +0000 (02:48 +0000)]
- add perl-GD for plot-latlong

17 years agoinclude generated/ subdir in php include_path
Mark Huang [Thu, 25 Jan 2007 20:27:18 +0000 (20:27 +0000)]
include generated/ subdir in php include_path

17 years agocannot run db-config in api script, since the password is being setup manually here
Mark Huang [Wed, 24 Jan 2007 21:05:30 +0000 (21:05 +0000)]
cannot run db-config in api script, since the password is being setup manually here

17 years ago- remove api-config script
Mark Huang [Mon, 22 Jan 2007 16:50:48 +0000 (16:50 +0000)]
- remove api-config script

17 years agoregenerate
Thierry Parmentelat [Mon, 22 Jan 2007 13:27:59 +0000 (13:27 +0000)]
regenerate

17 years agomentions all hostnames in usual vars
Thierry Parmentelat [Mon, 22 Jan 2007 13:20:29 +0000 (13:20 +0000)]
mentions all hostnames in usual vars

17 years ago- Split off myplc-devel into separate spec file, so that it can be
Mark Huang [Sat, 20 Jan 2007 04:08:47 +0000 (04:08 +0000)]
- Split off myplc-devel into separate spec file, so that it can be
  built standalone.

17 years ago- drop support for bootstrap builds from within the myplc build itself;
Mark Huang [Sat, 20 Jan 2007 04:06:02 +0000 (04:06 +0000)]
- drop support for bootstrap builds from within the myplc build itself;
  this is best handled in an external build script
- external users should install and start myplc-devel, then just type
  e.g. 'chroot /plc/devel/root su - build -c make'

17 years ago- skip the whole cvs import garbage
Mark Huang [Sat, 20 Jan 2007 04:04:25 +0000 (04:04 +0000)]
- skip the whole cvs import garbage

17 years ago- create a build user with the same uid/gid as the sudoer, if
Mark Huang [Sat, 20 Jan 2007 04:02:43 +0000 (04:02 +0000)]
- create a build user with the same uid/gid as the sudoer, if
  possible. Set its home directory to /data/build.
- skip the whole cvs import garbage; too confusing and no one uses it

17 years ago- sigh, try again to fix merge of maintenance_sources
Mark Huang [Fri, 19 Jan 2007 20:05:05 +0000 (20:05 +0000)]
- sigh, try again to fix merge of maintenance_sources

17 years agouse input redirection
Mark Huang [Fri, 19 Jan 2007 20:04:20 +0000 (20:04 +0000)]
use input redirection

17 years agoFC6 requires libpcap-devel.
Marc Fiuczynski [Fri, 19 Jan 2007 19:19:55 +0000 (19:19 +0000)]
FC6 requires libpcap-devel.

For previous FC versions the inclusion of libpcap-devel will simply
produce a benign warning message that the libpcap-devel package was
not installed.

17 years ago- also explicitly allow localhost connections for drupal
Mark Huang [Fri, 19 Jan 2007 17:25:27 +0000 (17:25 +0000)]
- also explicitly allow localhost connections for drupal

17 years ago- just compare cnames (CN field), not emails (emailAddress field)
Mark Huang [Fri, 19 Jan 2007 17:13:43 +0000 (17:13 +0000)]
- just compare cnames (CN field), not emails (emailAddress field)
- hostnames are case-insensitive, compare lowercase e-mails
- fix permissions regardless of whether we generated the cert or not

17 years ago- add lower() and upper() utility functions
Mark Huang [Fri, 19 Jan 2007 17:12:45 +0000 (17:12 +0000)]
- add lower() and upper() utility functions

17 years ago- explicitly add localhost to pg_hba.conf (for case when PLC_API_IP and
Mark Huang [Fri, 19 Jan 2007 16:42:08 +0000 (16:42 +0000)]
- explicitly add localhost to pg_hba.conf (for case when PLC_API_IP and
  PLC_WWW_IP do not resolve to PLC_DB_IP)

17 years ago- bootstrap the db in the api script
Mark Huang [Thu, 18 Jan 2007 22:10:43 +0000 (22:10 +0000)]
- bootstrap the db in the api script

17 years ago- set up cron on a per-server basis
Mark Huang [Thu, 18 Jan 2007 22:10:33 +0000 (22:10 +0000)]
- set up cron on a per-server basis

17 years ago- also list PLC_DB_HOST
Mark Huang [Thu, 18 Jan 2007 22:10:18 +0000 (22:10 +0000)]
- also list PLC_DB_HOST

17 years ago- fix newline problem with PLC_API_MAINTENANCE_SOURCES regeneration
Mark Huang [Thu, 18 Jan 2007 22:10:08 +0000 (22:10 +0000)]
- fix newline problem with PLC_API_MAINTENANCE_SOURCES regeneration
- bootstrap the DB here instead of in db

17 years ago/etc/init.d/postgresql fails if it is not running
Mark Huang [Thu, 18 Jan 2007 22:09:14 +0000 (22:09 +0000)]
/etc/init.d/postgresql fails if it is not running

17 years agoremove all traces of MA/CA certificate junk
Mark Huang [Thu, 18 Jan 2007 18:44:18 +0000 (18:44 +0000)]
remove all traces of MA/CA certificate junk

17 years agodo not dereference symlinks when chowning files back to the SUDO_USER
Mark Huang [Wed, 17 Jan 2007 22:44:17 +0000 (22:44 +0000)]
do not dereference symlinks when chowning files back to the SUDO_USER

17 years ago- install mailx and sendmail, build script sends mail on failure
Mark Huang [Wed, 17 Jan 2007 22:35:51 +0000 (22:35 +0000)]
- install mailx and sendmail, build script sends mail on failure

17 years ago- remove the new admin account message; new admins should register as
Mark Huang [Wed, 17 Jan 2007 22:35:31 +0000 (22:35 +0000)]
- remove the new admin account message; new admins should register as
  regular users first, then be granted the admin role by a current
  admin.
- fix typos