From Fedora Project Wiki

m (word order error)
Line 2: Line 2:
 
|description=Deliver an appliance to an SFTP server
 
|description=Deliver an appliance to an SFTP server
 
|setup=
 
|setup=
{{admon/note|You need write access to an SFTP server via key|Password is not supported, only key authentication}}
+
{{admon/note|Password authentication is not supported|Password is not supported, only key authentication without password is supported.}}
* Clone the BoxGrinder test appliances into a convenient location using command <code>git clone https://github.com/msavy/boxgrinder-appliances.git</code>
+
# [[Test_Day:2011-04-28_Cloud_SIG_BoxGrinder_Build#Prepare your environment|Prepare your environment]]
* Put the following BoxGrinder config into a file named: <code>~/.boxgrinder/config</code>. Replace '''IP_ADDRESS_OR_HOST''' and '''YOUR_USERNAME''' with appropriate values
+
# Ensure you have the correct keys registered to enable SFTP authentication on your server.
 +
# Test your setup trying to connect to the host using specified username.
 +
# Put the following BoxGrinder config into a file named: <code>/root/.boxgrinder/config</code>. Replace '''IP_ADDRESS_OR_HOST''' and '''YOUR_USERNAME''' with appropriate values
 
<pre>
 
<pre>
 
plugins:
 
plugins:
Line 12: Line 14:
 
     path: /some/path/
 
     path: /some/path/
 
</pre>
 
</pre>
* Ensure you have the correct public keys registered to enable SFTP authentication on your server.
+
 
 +
{{admon/warning|BoxGrinder Build config file location|The default location for this file is <code>/root/.boxgrinder/config</code>. You can put this file in different location by specifying <code>BG_CONFIG_FILE</code> environment variable.}}
  
 
|actions=
 
|actions=
# Navigate to directory <code>boxgrinder-appliances/testing-appliances/jeos-appls/</code>
+
# Execute: <pre>boxgrinder-build testing-appliances/jeos-appls/fedora-15-jeos.appl -d sftp --trace</pre>   
# Execute <pre>boxgrinder-build fedora-15-jeos.appl -d sftp -p virtualbox</pre>   
 
 
|results=
 
|results=
 
The following must be true to consider this a successful test run.
 
The following must be true to consider this a successful test run.
# Step #2 completes without error (indicated on console)
+
# Step #1 completes without error (indicated on console)
 
# Program completes with exit code 0
 
# Program completes with exit code 0
# Determine whether a f15-jeos.vdi file appeared on target host in the expected location
+
# Determine whether a packaged appliance file appeared on target host in the expected location
 
}}
 
}}

Revision as of 09:11, 23 April 2011

Description

Deliver an appliance to an SFTP server

Setup

Note.png
Password authentication is not supported
Password is not supported, only key authentication without password is supported.
  1. Prepare your environment
  2. Ensure you have the correct keys registered to enable SFTP authentication on your server.
  3. Test your setup trying to connect to the host using specified username.
  4. Put the following BoxGrinder config into a file named: /root/.boxgrinder/config. Replace IP_ADDRESS_OR_HOST and YOUR_USERNAME with appropriate values
plugins:
  sftp:
    host: IP_ADDRESS_OR_HOST
    username: YOUR_USERNAME
    path: /some/path/
Warning.png
BoxGrinder Build config file location
The default location for this file is /root/.boxgrinder/config. You can put this file in different location by specifying BG_CONFIG_FILE environment variable.

How to test

  1. Execute:
    boxgrinder-build testing-appliances/jeos-appls/fedora-15-jeos.appl -d sftp --trace

Expected Results

The following must be true to consider this a successful test run.

  1. Step #1 completes without error (indicated on console)
  2. Program completes with exit code 0
  3. Determine whether a packaged appliance file appeared on target host in the expected location