Git Product home page Git Product logo

puppet_checkin_module's People

Contributors

aaronburchfield avatar grahamgilbert avatar octomike avatar

Watchers

 avatar  avatar

puppet_checkin_module's Issues

module does not run when used with sal-scripts 3

Adding the puppet_checkin_module.py to the checkin_modules folder of a sal-scripts 3 installation, causes an error with sal-submit:

# /usr/local/sal/bin/sal-submit
Traceback (most recent call last):
  File "/usr/local/sal/checkin_modules/puppet_checkin_module.py", line 26, in <module>
    import utils
ImportError: No module named utils

I tried to fix this by making the script use the python3 that's included in sal-scripts 3, and replacing utils.set_checkin_results("Puppet", results) by sal.set_checkin_results('Puppet', results), but that doesn't work, because the yaml module needs to be installed in the python 3 installation that is included in sal-scripts 3. Unfortunately, my python skills are severely lacking, so I don't know how to do that.

Instead I opted to rewrite the puppet_checkin_module.py in ruby (because my ruby skills are somewhat better than my python skills, but also because it allows me to use the ruby interpreter that comes with puppet, and takes makes parsing the last_run_report.yaml easier). That works perfectly fine (although note that you'll also need to 'enable' puppet in server/view.py on the server).

I'm not sure if it's useful to swap puppet_checkin_module.py with my ruby script, because it will probably hurt maintainability of the sal project by adding one ruby script when the rest of sal is python. But I can upload it if you're interested.

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.