Unable to get defined path in 'source' type on AIX node

Posted by haris on Server Fault See other posts from Server Fault or by haris
Published on 2009-11-12T16:36:13Z Indexed on 2010/03/24 4:03 UTC
Read the original article Hit count: 615

Filed under:
|
|
|

hi all, I am trying to create a set of users on my AIX node and trying to get their authorized_keys which are already hosted on my server with name like, 'myuser_id_dsa.pub'. Currently i am managing 2 nodes (1. SLES 2. AIX). I defined the 'source' file paths in 2 separate contexts in fileserver.conf;

[AIX] path myfiles/users/ssh/ allow *.another.mydomain.com [SLES] path myfiles/users/keys/ssh/ allow *.mydomain.com

but when I run puppet then it ended successfully on my SLES node but encountered failure on AIX; with following err;

/* Could not describe /AIX/myuser_id_rsa.pub: Fileserver module 'AIX' not mounted*/

in my code i have defined the 'source' with $filserver variable as:

case $operatingsystem { "AIX": { $fileserver = "AIX" } default: { $fileserver = "SLES" } }

file { "${home}/${username}/.ssh/authorized_keys": source => "puppet:///$fileserver/${username}_is_dsa.pub", ... ... }

why AIX is not able to get the source path from my fileserver.conf while SLES is running absolutely fine? and how can I do it? I have to run similar configuration across different servers so I can only deal it with case statement.

looking forward for your help

Thanks

© Server Fault or respective owner

Related posts about puppet

Related posts about aix