Ask Your Question

How to register tsm client with tsm server using puppet?

asked 2013-11-28 03:27:10 -0600

videre gravatar image

How do you best deal with the following scenario:

Some client service is installed on a Puppet agent. After installation, the client service has to be registered with a management server (not a Puppet agent, but could be if necessary), but the application doesn't support client-initiated registration. Instead it offers manual registration via cli or gui from the server. It seems like it must be a common issue, but I cannot think of a good way to automate this with Puppet. Examples of applications where this is an issue are IBM TSM and Microsoft SCOM

Any good ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-11-28 12:23:34 -0600

Stefan gravatar image

You can do that with exported resources. That means that each client has to export a resource and your master collects these exported resources. A simple example:

class tsm::client {
  @@exec { "tsm_register_${::fqdn}":
    command => "/sbin/register add ${::fqdn}",
    unless  => "/sbin/register list | /bin/grep ${::fqdn}",
    tags    => 'tsm_client',

The @@ indicates, that you want to export the exec resource (otherwise the client would run the above command which does not make sense)

class tsm::server {
  Exec <<| tag == 'tsm_client' |>>

Your server now collects all exec resources that have been tagged with tsm_client. That's just a simple example that might not scale very ... (more)

edit flag offensive delete link more


Thank you, that is just what I needed. Do you know if it is possible to subscribe to changes to an exported resource?

videre gravatar imagevidere ( 2013-12-05 01:36:07 -0600 )edit

Well it does not work across nodes. But on your master you can use subscribe => Exec['some_collected_exec_resource'] and you should also be able to export a resource with a notify parameter

Stefan gravatar imageStefan ( 2013-12-05 04:55:05 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2013-11-28 03:27:10 -0600

Seen: 374 times

Last updated: Nov 28 '13