rPath Appliance Platform Agent:Plugin Development Examples
From rPath Wiki
Appliance developers who are developing plugins for rPath Appliance Platform can use the following examples as a guide to the plugin structure and a starting point for the development process.
- "Hello world" example plugin
- Download and unpack the files in the development environment.
- Services plugin
- Navigate to /usr/lib/raa/raaplugins/services, where the plugin is installed, to view the file structure of the Services plugin.
Incorporate at least one of these plugins to ensure the plugin development environment works correctly with at least one plugin that will not change. Use the following steps to add the "Hello World" plugin as an example:
- Download the Hello World example plugin.
- Unpack the plugin in your plugin development directory.
- Verify the directory myplugins is created that includes the subdirectory hello.
- Stop and restart the raa-web and start-raa-service scripts using in the development environment to reread the list of available plugins.
- Browse to localhost:8080.
- Verify the Hello, world! link is displayed on the left, and click the link to verify the plugin displays the header "Hello, world!"
