Coder Social home page Coder Social logo

puppet-puppetdashboard's Introduction

Deprecation notice

This module was designed for Puppet versions 2 and 3. It should work also on Puppet 4 but doesn't use any of its features.

The current Puppet 3 compatible codebase is no longer actively maintained by example42.

Still, Pull Requests that fix bugs or introduce backwards compatible features will be accepted.

Puppet module: puppetdashboard

This is a Puppet module for puppetdashboard based on the second generation layout ("NextGen") of Example42 Puppet Modules.

Made by Alessandro Franceschi / Lab42

Official site: http://www.example42.com

Official git repository: http://github.com/example42/puppet-puppetdashboard

Released under the terms of Apache 2 License.

This module requires functions provided by the Example42 Puppi module (you need it even if you don't use and install Puppi)

For detailed info about the logic and usage patterns of Example42 modules check the DOCS directory on Example42 main modules set.

USAGE - Basic management

  • Install puppetdashboard with default settings

      class { 'puppetdashboard': }
    
  • Install a specific version of puppetdashboard package

      class { 'puppetdashboard':
        version => '1.0.1',
      }
    
  • Disable puppetdashboard service.

      class { 'puppetdashboard':
        disable => true
      }
    
  • Remove puppetdashboard package

      class { 'puppetdashboard':
        absent => true
      }
    
  • Enable auditing without without making changes on existing puppetdashboard configuration files

      class { 'puppetdashboard':
        audit_only => true
      }
    

USAGE - Overrides and Customizations

  • Use custom sources for main config file

      class { 'puppetdashboard':
        source => [ "puppet:///modules/lab42/puppetdashboard/puppetdashboard.conf-${hostname}" , "puppet:///modules/lab42/puppetdashboard/puppetdashboard.conf" ], 
      }
    
  • Use custom source directory for the whole configuration dir

      class { 'puppetdashboard':
        source_dir       => 'puppet:///modules/lab42/puppetdashboard/conf/',
        source_dir_purge => false, # Set to true to purge any existing file not present in $source_dir
      }
    
  • Use custom template for main config file. Note that template and source arguments are alternative.

      class { 'puppetdashboard':
        template => 'example42/puppetdashboard/puppetdashboard.conf.erb',
      }
    
  • Automatically include a custom subclass

      class { 'puppetdashboard':
        my_class => 'puppetdashboard::example42',
      }
    

USAGE - Example42 extensions management

  • Activate puppi (recommended, but disabled by default)

      class { 'puppetdashboard':
        puppi    => true,
      }
    
  • Activate puppi and use a custom puppi_helper template (to be provided separately with a puppi::helper define ) to customize the output of puppi commands

      class { 'puppetdashboard':
        puppi        => true,
        puppi_helper => 'myhelper', 
      }
    
  • Activate automatic monitoring (recommended, but disabled by default). This option requires the usage of Example42 monitor and relevant monitor tools modules

      class { 'puppetdashboard':
        monitor      => true,
        monitor_tool => [ 'nagios' , 'monit' , 'munin' ],
      }
    
  • Activate automatic firewalling. This option requires the usage of Example42 firewall and relevant firewall tools modules

      class { 'puppetdashboard':       
        firewall      => true,
        firewall_tool => 'iptables',
        firewall_src  => '10.42.0.0/24',
        firewall_dst  => $ipaddress_eth0,
      }
    

Build Status

puppet-puppetdashboard's People

Contributors

alvagante avatar sathieu avatar davids avatar rdrgmnzs avatar eperdeme avatar

Stargazers

Ronny Forberger avatar  avatar Fireblade avatar  avatar  avatar

Watchers

 avatar Tim Meusel avatar James Cloos avatar Simon Hönscheid avatar Luca Lesinigo avatar  avatar  avatar

puppet-puppetdashboard's Issues

failed to install on a clean ubuntu 12.10

Try to apply this module to a clean ubuntu 12.10 failed.

class {'puppetdashboard': }

Have to fix 2 things:

  1. ruby version. Puppet dashboard require ruby 1.8.7, while default ruby package in ubuntu is 1.9.

  2. rake db:migrate failed with this error:

    rake aborted!
    cannot load such file -- ftools
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `block in require'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:182:in `require'
    /usr/share/puppet-dashboard/lib/tasks/plugins.rake:2:in `<top (required)>'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `load'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `block in load_with_new_constant_marking'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:547:in `new_constants_in'
    /usr/share/puppet-dashboard/vendor/rails/activesupport/lib/active_support/dependencies.rb:171:in `load_with_new_constant_marking'
    /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `block in <top (required)>'
    /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `each'
    /usr/share/puppet-dashboard/vendor/rails/railties/lib/tasks/rails.rb:14:in `<top (required)>'
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
    /usr/share/puppet-dashboard/Rakefile:11:in `<top (required)>'
    /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load'
    /usr/lib/ruby/vendor_ruby/rake/rake_module.rb:25:in `load_rakefile'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:501:in `raw_load_rakefile'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:82:in `block in load_rakefile'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:81:in `load_rakefile'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:65:in `block in run'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:133:in `standard_exception_handling'
    /usr/lib/ruby/vendor_ruby/rake/application.rb:63:in `run'
    /usr/bin/rake:27:in `<main>'
    

    Have to manually execute the commands list here http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html#installing-dependencies to fix this problem.

Basic installation fails on CentOS 6.2

notice: /File[puppetdashboard.conf]/ensure: created
info: /File[puppetdashboard.conf]: Scheduling refresh of Service[puppetdashboard]
err: /File[puppetdashboard.conf_db]/ensure: change from absent to present failed: Could not set 'presentn ensure: No such file or directory - /etc/puppet-dashboard/database.yml.puppettmp_567 at /home/jon/workace/puppet/modules/puppetdashboard/manifests/init.pp:412
notice: /Stage[main]/Puppetdashboard::Mysql/Mysql::Grant[puppetdashboard_grants_puppetstaging2.cisco.com]/Exec[mysqlgrant-dashboard-localhost-dashboard_production]: Triggered 'refresh' from 1 events
err: /Stage[main]/Puppetdashboard::Mysql/Exec[puppetdashboard_dbmigrate]: Failed to call refresh: Working directory '/var/puppet-dashboard' does not exist
notice: /Stage[main]/Puppetdashboard/Service[puppetdashboard]: Dependency File[puppetdashboard.conf_db] has failures: true
warning: /Stage[main]/Puppetdashboard/Service[puppetdashboard]: Skipping because of failed dependencies
err: /Stage[main]/Puppetdashboard/Service[puppetdashboard]: Failed to call refresh: Could not start Service[puppetdashboard]: Execution of '/sbin/service puppet-dashboard start' returned 1: at /home/jon/workspace/puppet/modules/puppetdashboard/manifests/init.pp:376
err: /Stage[main]/Puppetdashboard/Service[puppetdashboard-workers]/ensure: change from stopped to running failed: Could not start Service[puppetdashboard-workers]: Execution of '/sbin/service puppet-dashboard-workers start' returned 1: at /home/jon/workspace/puppet/modules/puppetdashboard/manifests/init.pp:385

Creating /etc/puppet-dashboard manually fixed the first error, but not the service related ones.

Attempting to run it manually gives:

script/server -e production
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
Database isn't the current migration version: expected 20120112195235, got 0
You must either run 'rake db:migrate' or set environmental variable NO_MIGRATION_CHECK

Seems like database config is never set up:

Access denied for user 'dashboard'@'localhost' (using password: NO)

config/database.yml seems unchanged

Problem installing module

Getting the following error while trying to apply module to node "default". I was trying to install it by adding class { 'puppetdashboard': } to site.pp and running puppet agent -t on puppet server

Error: Failed to apply catalog: Parameter source failed on File[puppetdashboard.dir]: Cannot use relative URLs '' at /etc/puppetlabs/code/environments/production/modules/puppetdashboard/manifests/init.pp:488

My site.pp

node default {
class { 'puppetdashboard': }
}

Specifications

  1. Output of facter -p : facter.txt
  2. Puppet version 4.5.3 and puppetserver version is 2.4.0
  3. I'm using the latest version of puppet-dashboard module.
  4. Puppet is running inside of vagrant with VirtualBox provider on CentOS 7 with latest updates.

Can't start on clean Ubuntu 12.04

I got error on start service on clean Ubuntu 12.04%

Error: Could not start Service[puppetdashboard]: Execution of '/etc/init.d/puppet-dashboard start' returned 1:
Error: /Stage[main]/Puppetdashboard/Service[puppetdashboard]/ensure: change from stopped to running failed: Could not start Service[puppetdashboard]: Execution of '/etc/init.d/puppet-dashboard start' returned 1:

I try start it manualy:

root@puppet:/usr/share/puppet-dashboard# /etc/init.d/puppet-dashboard start
* Starting Puppet Dashboard NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/share/puppet-dashboard/script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21.
config.gem: Unpacked gem sass-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rdoc-3.6.1 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem haml-3.1.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem daemons-1.0.10 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-rails-1.3.4 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rspec-1.3.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem rack-1.1.6 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem factory_girl-1.3.3 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem mocha-0.9.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem json_pure-1.7.7 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem will_paginate-2.3.15 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
config.gem: Unpacked gem thoughtbot-shoulda-2.10.2 in vendor/gems has no specification file. Run 'rake gems:refresh_specs' to fix this.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/share/puppet-dashboard/script/../config/../vendor/rails/railties/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
NOTE: Gem::SourceIndex#add_spec is deprecated, use Specification.add_spec. It will be removed on or after 2011-11-01.
Gem::SourceIndex#add_spec called from /usr/lib/ruby/vendor_ruby/1.8/rubygems/source_index.rb:91.
=> Booting WEBrick
=> Rails 2.3.17 application starting on http://0.0.0.0:3000
* Puppet Dashboard is not running
[fail]

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.