Giter Club home page Giter Club logo

Comments (5)

mkrakowitzer avatar mkrakowitzer commented on September 26, 2024

We set $tomcatPort = 8080, in the init.pp.

from puppet-jira.

chihoko avatar chihoko commented on September 26, 2024

Yes but init.pp doesn't call ::jira::facts so it can't access $tomcatPort.
If I don't explicitly set $port when declaring the facts class i.e.

class { '::jira::facts':
  port => '8080',
}

then /etc/facter/facts.d/jira_facts.rb looks like:

require 'json'
require 'open-uri'
begin
  url = 'http://127.0.0.1:/rest/api/2/serverInfo'
  info = open(url, &:read)
rescue
  exit 0
end
.....

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on September 26, 2024

Strange, we are sourcing the value from the main class. $port = $jira::tomcatPort,
You can confirm you are calling the main class? So your manifest should be something like:

class {'jira': }
class { 'jira::facts': }

I added a test for this, and it is detecting the port value from the main class. Assuming you are doing the above, can you confirm your version of puppet and ruby?

from puppet-jira.

chihoko avatar chihoko commented on September 26, 2024

My apologies, I had jira::facts declared before the main class so $port wasn't available when jira::facts was declared. I don't know if this is worth pointing out in the docs.

Thanks for the awesome module and quick upgrade to 6.4 today!

from puppet-jira.

mkrakowitzer avatar mkrakowitzer commented on September 26, 2024

For the next release jira::facts will be a private class and included by default. I recently did this for the stash module and noone has complained :)

Thanks for taking the time to log issues btw, I do appreciate it.

If its not to much trouble, please rate the module on the forge (Thanks in advance).

from puppet-jira.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.