Hello all,

 

I’m not sure what I’m attempting can be best accomplished via a template so 
please do correct me if there is better/simpler method.

 

On our servers within the SSH configuration, we have/need the following 
line:

 

ListenAddress x.x.x.x

 

This is standard for all our servers regardless of OS release.  I know that 
I can achieve this via a template by declaring the following therein:

 

ListenAddress <%= @ipaddress_eth0 %>

 

I then need to include some additional lines that are OS release specific 
i.e.:

 

AuthorizedKeysCommandUser root

 

Can this be achieved via a single template via some conditional 
declarations?  If this is at all possible then any help and/or experiences to 
something similar to this will be greatly appreciated.


Thanks,

Dan.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7909dc37-4299-4820-9094-107207752c41%40googlegroups.com.

Reply via email to