[rudder-users] Distribute sshkeys Rudder

Ben benoit.laurent at ymail.com
Mon May 19 19:34:17 CEST 2014


Hello,

I use Rudder to distribute ssh-keys in my servers.
I have configured technique for deploy ssh key for 2 users (benoit and 
stef), and technique to create user (benoit and stef).
But after 2 days, only benoit keys user's is deploy on servers, stef 
user does'not deploy.

I debug cfengine in my client server I find file 
/var/rudder/cfengine-community/inputs/sshKeyDistribution/2.0/sshKeyDistribution.cf, 
and inside I find :
                 "sshkey_distribution_name[1]" string => "benoit";
                 "sshkey_distribution_name[2]" string => "stef";

                 "sshkey_distribution_key[1]" string => "ssh-dss [....]"
		"sshkey_distribution_key[2]" string => "ssh-dss	[...]"
And it is configured keys, but when I apply configuration It says:

/var/rudder/cfengine-community/bin/cf-agent -Kv -bcheck_ssh_key_distribution
2014-05-19T19:33:33+0200  verbose: 
/check_ssh_key_distribution/methods/'SSH Key Report': Additional promise 
info: source path 
'/var/rudder/cfengine-community/inputs/sshKeyDistribution/2.0/sshKeyDistribution.cf' 
at line 101
2014-05-19T19:33:33+0200  verbose: 
/check_ssh_key_distribution/methods/'SSH Key Report': Method 
"rudder_common_reports_generic" invoked repairs
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_2_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_1_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'gid[2]', as 
context 'SuSE' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'gid[1]', as 
context 'SuSE' is not relevant
2014-05-19T19:33:33+0200  verbose: Resolving variables in bundle 
'check_ssh_key_distribution'
2014-05-19T19:33:33+0200  verbose: Private classes augmented: 
begin_evaluation user_2_exists user_1_exists
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/stef/.ssh/.'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/benoit/.ssh/.'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/stef/.ssh/authorized_keys'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/benoit/.ssh/authorized_keys'
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_2_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_1_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'gid[2]', as 
context 'SuSE' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'gid[1]', as 
context 'SuSE' is not relevant
2014-05-19T19:33:33+0200  verbose: Resolving variables in bundle 
'check_ssh_key_distribution'
2014-05-19T19:33:33+0200  verbose: Private classes augmented: 
begin_evaluation user_2_exists user_1_exists
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/stef/.ssh/.'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/benoit/.ssh/.'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/stef/.ssh/authorized_keys'
2014-05-19T19:33:33+0200  verbose: Using literal pathtype for 
'/home/benoit/.ssh/authorized_keys'
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_2_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Skipping next promise 'No User Exist 
Report', as var-context '!user_1_exists' is not relevant
2014-05-19T19:33:33+0200  verbose: Bundle Accounting Summary for 
'check_ssh_key_distribution'
2014-05-19T19:33:33+0200  verbose: Promises kept in 
'check_ssh_key_distribution' = 20
2014-05-19T19:33:33+0200  verbose: Promises not kept in 
'check_ssh_key_distribution' = 0
2014-05-19T19:33:33+0200  verbose: Promises repaired in 
'check_ssh_key_distribution' = 6
2014-05-19T19:33:33+0200  verbose: Aggregate compliance (promises 
kept/repaired) for bundle 'check_ssh_key_distribution' = 100.0%
2014-05-19T19:33:33+0200  verbose: No lock purging scheduled
2014-05-19T19:33:33+0200  verbose: Logging total compliance, total 
'Outcome of version (not specified) (agent-0): Promises observed to be 
kept 77%, Promises repaired 23%, Promises not repaired 0%'

But my authorized key is empty:
  ll /home/stef/.ssh/
total 0
-rw------- 1 stef stef 0 May 19 12:21 authorized_keys



Thakns for your help,
Regards,
Benoit




More information about the rudder-users mailing list