Ask Your Question
1

How does puppet gets the software to be installed?

asked 2013-05-05 10:41:11 -0500

Vijay gravatar image

updated 2013-05-05 14:33:10 -0500

dawud gravatar image

Hi, I'm very new to puppet and trying to understand how does puppet gets the software to be installed? say for an example, If I need to install JBoss, how does puppet knows from where to get correct version of JBoss download and to install?

Regards, Vijay

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-05-05 15:01:21 -0500

dawud gravatar image

updated 2013-05-06 10:49:41 -0500

This is explained concisely in the official documentation.

Let's call anything that can be under puppet control a resource. Examples of what can be a resource are: a file, an entry in the /etc/hosts file, a user or a package.

Now, puppet has this nifty thing called Resource Abstraction Layer (RAL), that allows the puppet language to avoid going into specifics when requiring a resource. In other words, when puppet is configured to ensure that a package is installed, there is no need for puppet to know how is this done in every possible platform, rather, puppet delegates ... (more)

edit flag offensive delete link more

Comments

Somebody with enough rep, please edit the links, thank you!

dawud gravatar imagedawud ( 2013-05-05 15:02:12 -0500 )edit

So in this case, how can I install Jboss by using this link? http://download.jboss.org/jbossas/7.1/jboss-as-7.1.1.Final/jboss-as-7.1.1.Final.tar.gz ...(more)

BenCes gravatar imageBenCes ( 2013-05-06 05:50:18 -0500 )edit

The "right" way to do it is to build an os-specific package from that tar.gz and provide it through a custom repo. That being said, Puppet does not have ...(more)

lavaman gravatar imagelavaman ( 2013-05-07 14:51:18 -0500 )edit
1

answered 2013-05-05 16:54:53 -0500

Stefan gravatar image

It depends on your OS. Puppet in general relies on your native package manager. To install Jboss puppet will on

  • RedHat: yum install jboss
  • Gentoo: emerge jboss
  • SLES: zypper install jboss
  • HP-UX: swinstall -s $SOURCE jboss
  • Solaris 11: pkg install jboss
  • ...

These are not necessarily the exact command as puppet adds command line arguments to do silent installs without user interactions. Note that some platforms do not have such things as repositories and you have to provide the source when declaring a package resource (HP-UX and Solaris native package command pkgadd are just two examples).

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2013-05-05 10:41:11 -0500

Seen: 302 times

Last updated: May 06 '13