Ask Your Question

how to check whether a software installed or not using puppet

asked 2014-04-10 04:40:31 -0600

santosh_patha gravatar image

how to check whether a software installed or not using puppet

edit retag flag offensive close merge delete


this is very urgent requirement for me... In one desktop there are some softwares like mysql, java, etc., I need to identify whether mysql or java installed on desktop using Puppet .

santosh_patha gravatar imagesantosh_patha ( 2014-04-10 04:51:20 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2014-04-10 04:54:47 -0600

doc75 gravatar image

The aim of puppet is generally not to check if a software is installed or not. You describe what you would like to have installed and puppet will do the necessary for you (if needed).

In case you really need something like that, you probably have to implement your own fact, that you could use afterwards to trigger some events.

If this is really a check tool only that you need, you might have a look at serversepc or similar soft.

Hope this helps.

edit flag offensive delete link more


I need to implement the same how to check one specified software or patches installed or not. Please any ideas to create

santosh_patha gravatar imagesantosh_patha ( 2014-04-10 05:00:16 -0600 )edit

answered 2014-04-10 04:55:13 -0600

ffrank gravatar image

updated 2014-04-10 12:35:04 -0600

The canonical approach to this is to add custom facts to your setup that will gather this type of information for you.

If these are *NIX desktops, you may find appropriate facts in modules from the Forge.

For Windows, it may be especially worthwile to look at external facts. Those allow you to employ any available Windows script that can summarize the information you require.

edit flag offensive delete link more


It is windows machine

santosh_patha gravatar imagesantosh_patha ( 2014-04-10 04:58:31 -0600 )edit

All right. The final link does cover that.

ffrank gravatar imageffrank ( 2014-04-10 06:42:11 -0600 )edit

Could you please provide sample external fact which can check the status of software

santosh_patha gravatar imagesantosh_patha ( 2014-04-10 08:16:55 -0600 )edit

I cannot. I have no knowledge whatsoever of Windows internals. What you need is a batch/VB/PowerShell script that queries [the registry?] for a given Software. You may want ...(more)

ffrank gravatar imageffrank ( 2014-04-10 12:31:54 -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

1 follower


Asked: 2014-04-10 04:40:31 -0600

Seen: 766 times

Last updated: Apr 10 '14