From 9f83622d38d0719709c76ffc69aa2d8e88463cdd Mon Sep 17 00:00:00 2001 From: Steven Armstrong Date: Tue, 7 Oct 2014 16:36:01 +0200 Subject: [PATCH] remove legacy/unused explorer Signed-off-by: Steven Armstrong --- .../__ssh_authorized_keys/explorer/entries | 32 ------------------- 1 file changed, 32 deletions(-) delete mode 100755 cdist/conf/type/__ssh_authorized_keys/explorer/entries diff --git a/cdist/conf/type/__ssh_authorized_keys/explorer/entries b/cdist/conf/type/__ssh_authorized_keys/explorer/entries deleted file mode 100755 index 04e25880..00000000 --- a/cdist/conf/type/__ssh_authorized_keys/explorer/entries +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh -# -# 2014 Steven Armstrong (steven-cdist at armstrong.cc) -# -# This file is part of cdist. -# -# cdist is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# cdist is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with cdist. If not, see . -# - -# Find and sort any entries in the authorized_keys file that we care about - -file="$($__type_explorer/file)" - -( - while read key; do - # extract the keytype and base64 encoded key ignoring any options and comment - type_and_key="$(echo "$key" | tr ' ' '\n' | awk '/^(ssh|ecdsa)-[^ ]+/ { printf $1" "; getline; printf $1 }')" - # emit any entries that match the type and key - grep ".*$type_and_key[ \n]" "$file" - done < "$__object/parameter/key" -) | sort