Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
Nico Schottelius 2014-04-18 22:46:08 +02:00
commit d0ba1c0356
9 changed files with 85 additions and 0 deletions

1
README Symbolic link
View file

@ -0,0 +1 @@
man.text

1
files/dave.pub Normal file
View file

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCUhgfRGNGvdokht7ELrTiRR73YMsixUwDMs1h1dviAxMKI2Iku2VTkrF58bEmOUKGUOEaq+uAm7JitqvJ6QZ+zdYwLoRTrHEBoD7xKnIUPmIPPRO1Vm/ZIswq29PvhNviLHOsMXonkBL2XTzJWpwtr63X0UtEvhSq/I0OHHFfbGgBzPgv44GJYckpYHOEIBuJSyN8ixI1meumQWMa4Wagu1sVLXC+oixFxcBDYBtHhEfIQO00Wu0cTolfhDou2XWTUKsV7VXQqsKiO2kzm2mobM7+T+iLhL3ihPSOPKzQWVGMfAmgQnjOMRD/z4JlQNmUsnAReS0H1S1lXOnyo5OF david@panther04

1
files/entwine.pub Normal file
View file

@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA1/iwkhaNvgFZlPLn1Ns0O2WSW7P1j1b5TxdiUtm0VrYlHoDxnvWzSz/vE/2U+K1KDQDyrIC/Ooc7epXw9nralwNA5+V/DU1/PwvkDRZBNsME2bQMDCqE5DHOxYuyrEAky/DzLnQXJ5Y8aF39sI2PUs/q5psdUvTf0cfSWCgrcsQhtUQZAk9XiGrekhbIhVRLOU1OJFv1vQ50eUgNQCo4OBAXAso5PyQw+EYT8cThmmcowpPKvLm0KOv6P1ct7oTNGvhPyUiu+XL65sR2kEKn0YeHucHOTClM3PpLIMXTf23Ef36HqsZE5tuYwrqNef8USslHHqgc3f9PwZglhVrgrw== entwine@jenkins.entwinemedia.com

2
files/henk.pub Normal file
View file

@ -0,0 +1,2 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDi50B8Og80+wDHoVZccw2BIWYTcg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w9z9CuMzfMYH2/rmjzzXBjlHj2pNf6kHfWuvN5wk7PfG3ABWIkXcGcYBdQ0qPmpVRbg== Tobias Wunden - DSA Authentication KeydQ0qPmpVRbg== Tobias Wunden - Authentication

34
man.text Normal file
View file

@ -0,0 +1,34 @@
cdist-type__ungleich_staff_ssh_access(7)
=================================================
ungleich GmbH <cdist--@--ungleich.ch>
NAME
----
cdist-type__ungleich_staff_ssh_access - Give access to ungleich staff
DESCRIPTION
-----------
This cdist type ensures that the staff of ungleich
can access the target system.
EXAMPLES
--------
--------------------------------------------------------------------------------
__ungleich_staff_ssh_access root
__ungleich_staff_ssh_access anotheruser
--------------------------------------------------------------------------------
SEE ALSO
--------
- cdist-type(7)
COPYING
-------
Copyright \(C) 2014 ungleich GmbH (www.ungleich.ch).
Free use of this software is granted under the terms
of the GNU General Public License version 3 (GPLv3).

43
manifest Normal file
View file

@ -0,0 +1,43 @@
#!/bin/sh
#
# 2014 ungleich GmbH (cdist at ungleich.ch)
#
# 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 <http://www.gnu.org/licenses/>.
#
user="$__object_id"
set --
for resigned in henk; do
keyfile="$__type/files/${key}.pub"
set -- "$@" --key
set -- "$@" "$(echo $(cat "$keyfile"))"
done
__ssh_authorized_keys "ungleich-staff-absent-$user" \
--owner "$user" --state absent "$@"
for key in dave nico tobias; do
keyfile="$__type/files/${key}.pub"
set -- "$@" --key
set -- "$@" "$(echo $(cat "$keyfile"))"
done
__ssh_authorized_keys "ungleich-staff-$user" \
--owner "$user" --state present "$@"