Changeset 385


Ignore:
Timestamp:
07/04/2009 15:55:47 (3 years ago)
Author:
ccowart
Message:
  • Disabling StrictHostKeyChecking?=no by default.
  • Providing CONF_FETCH_SSH_FLAGS knob for arbitrary configuration of the ssh client.
  • Renaming CONF_SSH_KEY to CONF_FETCH_SSH_KEY to more closely follow conventions.
  • Related man page corrections.

Fixes #41

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/confman.conf.5.in

    r366 r385  
    9797The export style to be used by 
    9898.Xr confexport 8 . Valid options are: repository, module, recipe. 
     99.It CONF_FETCH_SSH_KEY 
     100This is a private SSH keyfile for use with "sftp://" and "scp://" URIs above. 
     101.It CONF_FETCH_SSH_FLAGS 
     102This options allows you to specify custom parameters to the  
     103.Xr ssh 1 
     104client for 
     105.Cm confsync . 
    99106.It CONF_SSH_KEY 
    100 This is a private SSH keyfile for use with "sftp://" and "scp://" URIs above. 
     107This option is deprecated and will be removed in a future release. See  
     108CONF_FETCH_SSH_KEY. 
    101109.El 
    102110.Ss MISCELLANEOUS OPTIONS 
  • trunk/confman.conf.sample.in

    r329 r385  
    2525CONF_EXPORT_FILE="@localstatedir@/db/confman/export.tgz" 
    2626CONF_EXPORT_URI="scp://confman@${REPO_HOSTNAME}${CONF_EXPORT_FILE}" 
    27 CONF_SSH_KEY="/root/.ssh/id_rsa" 
     27CONF_FETCH_SSH_KEY="/root/.ssh/id_rsa" 
     28#CONF_FETCH_SSH_FLAGS="-o StrictHostKeyCHecking=no" 
    2829 
  • trunk/confmanlib.sh.in

    r384 r385  
    221221            remote="${CONF_EXPORT_URI#*://}" 
    222222            remote="${remote/\//:/}" 
    223             scp -p -i ${CONF_SSH_KEY} -o StrictHostKeyCHecking=no \ 
    224                 "$remote$file" $tmpfile  
     223 
     224            # XXX: Remove for confman-3.0 
     225            if [ -z "$CONF_FETCH_SSH_KEY" ] && [ -n "$CONF_SSH_KEY" ] ; then 
     226                CONF_FETCH_SSH_KEY="$CONF_SSH_KEY" 
     227                conf_warn "CONF_SSH_KEY is deprecated. Please define " \ 
     228                    "CONF_FETCH_SSH_KEY instead." 
     229            fi 
     230 
     231            scp -p -i ${CONF_FETCH_SSH_KEY} ${CONF_FETCH_SSH_FLAGS} \ 
     232                 "$remote$file" $tmpfile  
    225233            ;; 
    226234        http|https|ftp) 
Note: See TracChangeset for help on using the changeset viewer.