[Swift-devel] Re: swiftconfig

David Kelly dk0966 at cs.ship.edu
Thu Jun 10 08:10:55 CDT 2010


Hello,

I have attached a preliminary version of swiftconfig. It is a tar.gz file
and can be extracted directly within a swift directory.

There's still work to do, but the main working feature right now is the
templates/profiles. Arjun's profiles are working with swiftconfig. The
profiles have been concatenated into one file called etc/sites-template.xml.
The handles just had to be changed slightly to avoid duplication. Here is an
example:

$ swiftconfig -template teraport-remote-ssh

This will grab the teraport-remote-ssh profile from etc/sites-templates.xml
and update sites.xml. It looks for a working sites.xml based on either
$SWIFT_HOME, the location of the swift binary or from a command line option.


The command line options in the first email should mostly all be working. So
to modify the working directory in the first example:

$ swiftconfig -template teraport-remote-ssh -directory /var/tmp

Should do the trick. If you need to change an option, you can just run it
again with different options (it won't cause multiple entries).

Getting rid of an entry can be done with

$ swiftconfig -remove teraport-remote-ssh

I added a new option, -templates, which prints a list of all available
profiles.

Transformation catalog should be working as described (to edit existing
entries or add new ones)

Still to do: Ability to edit sites.xml "profile" options with switches, an
editor, web interface, ability to edit other config files like
swift.properties and auth.login. Removal of entries from tc.data. More
testing.

Bugs: The xml module chokes if sites.xml is missing or empty. Comments get
stripped. If you find others, feel free to email. Probably a good idea to
backup your config files before using.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20100610/ae5f9606/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: swiftconfig.tar.gz
Type: application/x-gzip
Size: 33159 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/swift-devel/attachments/20100610/ae5f9606/attachment.bin>


More information about the Swift-devel mailing list