Changes between Version 11 and Version 12 of LAMP/Tutorial


Ignore:
Timestamp:
09/21/10 02:52:17 (14 years ago)
Author:
fernande@cis.udel.edu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LAMP/Tutorial

    v11 v12  
    8686}}}
    8787
     88We can see on the above RSpec three LAMP specific elements: the startup_command for running the bootstrapping script, the disk image element with the LAMP image, and the <lamp:config> extension (note the XML namespace for this extension at the top). The startup_command will run a shell script that sets up a few basic variables describing the node so that the LAMP services know where they're running. Services will not be able to run without these variables set. The usage for this script is as follows.
    8889
     90{{{
     91/usr/local/etc/lamp/bootstrap.sh <slice_urn> <user_urn>
     92}}}
     93
     94Bootstrapping only needs to be done once, but the script is idempotent and can thus be run through the startup_command directive of the ProtoGENI CF. Alternatively, you can also run this command manually on the nodes and restart the configuration service (more on this later).
     95
     96The next element of our RSpec, the disk_image directive, has already been discussed above. Finally, the `<lamp:config />` extension lets us specify the initial configuration for our nodes. For example, looking at the ''lamp'' node in the RSpec, we see that we have specified that the lamp_portal service should be enabled. '''This extension, however, also specifies which nodes can be configured through the LAMP Portal (and topology annotations).''' This is why we have the empty config element `<lamp:config />` on the ''node1'' and ''node2'' nodes. In other words, the ''lamp'' node will be our host for accessing the LAMP Portal, wherein we can configure all three nodes of our slice.
     97
     98Other services can be enabled using the same mechanism, but on this quick start guide we will only cover enabling and configuring services through the LAMP Portal (who wants to read and write XML after all? :).
     99
     100
     101=== 1. Modifying the RSpec ===