Ask Your Question
0

Puppetlabs Java Module

asked 2016-06-27 08:18:02 -0500

gilbo gravatar image

updated 2016-06-27 20:43:59 -0500

I'm trying to install puppetlabs/java module but it seemingly just does absolutely nothing. i'm assuming you create a profile like this:

class profiles::java {

include java

java::oracle { 'jdk8' :
  ensure  => 'present',
  version => '8',
  java_se => 'jdk',
}

}

and then reference ::profiles::java in a role? It doesn't seem to do anything unfortunately. am i doing this right?

edit retag flag offensive close merge delete

Comments

Are you calling your role? 'is it plugged in' question here, but if you put a notify{'hi from role': } in place, do you see it in your output?

DarylW gravatar imageDarylW ( 2016-06-27 20:20:13 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-06-27 20:51:26 -0500

In your profile:

 class profile::java {
  include java
  java::oracle { 'jdk8' :
    ensure  => 'present',
    version => '8',
    java_se => 'jdk',
  }
}

In your role:

class role::myrole {
  include profile::java
  ...
}

Finally you classify your node.

If you're using site.pp:

  node 'mynode.example.com' {
    include role::myrole
  }

Or you may be using, say, the Puppet Enterprise console. If so, consult documentation for your version showing how to assign classes or roles to your nodes.

edit flag offensive delete link more
1

answered 2016-06-28 09:56:47 -0500

gilbo gravatar image

updated 2016-06-28 09:59:57 -0500

duurrr. wally. sorry i've been up a long time. yes that was it. thank you very much for that.

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

1 follower

Stats

Asked: 2016-06-27 08:18:02 -0500

Seen: 254 times

Last updated: Jun 28 '16