From 4106ea78c949e8c52f904c6791f4041d84c54b81 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Thu, 23 Sep 2010 23:38:15 +0000 Subject: doc: Remove old BB plugin example Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@6066 ce84e21b-d406-0410-9b95-82705330c041 --- doc/server/plugins/generators/tgenshi/index.txt | 43 ------------------------- 1 file changed, 43 deletions(-) (limited to 'doc') diff --git a/doc/server/plugins/generators/tgenshi/index.txt b/doc/server/plugins/generators/tgenshi/index.txt index 560941cc7..cd9bcf152 100644 --- a/doc/server/plugins/generators/tgenshi/index.txt +++ b/doc/server/plugins/generators/tgenshi/index.txt @@ -86,49 +86,6 @@ Produces: This flexibility provides the ability to build much more compact and succinct definitions of configuration contents than Cfg can. -Templating Access Data -====================== - -These examples depend on the :ref:`server-plugins-grouping-BB` plugin. The -BB plugin provides additional data about users that have been allocated -nodes. It maps in a dictionary of user priviledges to client metadata -instances. Each of these plugins use this data. On this system, node -allocations map to sudo and root access. - -``/var/lib/bcfg2/TGenshi/etc/sudoers/template.newtxt``:: - - # /etc/sudoers - # - # This file MUST be edited with the 'visudo' command as root. - # - # See the man page for details on how to write a sudoers file. - # Host alias specification - - # User alias specification - User_Alias ADMIN = - ${','.join(metadata.BB['users'].keys())},admin1,admin2 - User_Alias IMAGERS = user1,user2,user3 - - # Cmnd alias specification - Cmnd_Alias SYSTEMIMAGER = /usr/sbin/getimage [A-z]* [A-z]* - - # Defaults - - Defaults !lecture,tty_tickets,!fqdn - - # User privilege specification - root ALL=(ALL) ALL - IMAGERS login=SYSTEMIMAGER - - # Members of the admin group may gain root privileges - ADMIN ALL=(ALL) ALL - -``/var/lib/bcfg2/TGenshi/root/.ssh/authorized_keys/template.newtxt``:: - - {% for user in metadata.BB['users'] %} - ${"\n".join(metadata.BB['users'][user])} - {% end %} - File permissions ================ -- cgit v1.2.3-1-g7c22