Permalink
Browse files

Vagrant and Rsyslog modules converted to NextGen

  • Loading branch information...
1 parent be839d4 commit 194a372d11c3e4eec1063dc6a22ac8e831f97aeb @alvagante alvagante committed Oct 11, 2012
Showing with 8 additions and 1,875 deletions.
  1. +6 −0 .gitmodules
  2. +1 −0 rsyslog
  3. +0 −7 rsyslog/Modulefile
  4. +0 −68 rsyslog/README
  5. +0 −26 rsyslog/manifests/absent.pp
  6. +0 −41 rsyslog/manifests/backup.pp
  7. +0 −23 rsyslog/manifests/backup/absent.pp
  8. +0 −18 rsyslog/manifests/client.pp
  9. +0 −23 rsyslog/manifests/conf.pp
  10. +0 −25 rsyslog/manifests/debug.pp
  11. +0 −27 rsyslog/manifests/disable.pp
  12. +0 −13 rsyslog/manifests/disableboot.pp
  13. +0 −35 rsyslog/manifests/firewall.pp
  14. +0 −19 rsyslog/manifests/firewall/absent.pp
  15. +0 −66 rsyslog/manifests/init.pp
  16. +0 −71 rsyslog/manifests/monitor.pp
  17. +0 −42 rsyslog/manifests/monitor/absent.pp
  18. +0 −303 rsyslog/manifests/params.pp
  19. +0 −45 rsyslog/manifests/server.pp
  20. +0 −30 rsyslog/manifests/server/link.pp
  21. +0 −32 rsyslog/manifests/server/loganalyzer.pp
  22. +0 −51 rsyslog/manifests/server/mysql.pp
  23. +0 −69 rsyslog/templates/client/rsyslog.conf.erb
  24. +0 −23 rsyslog/templates/loganalyzer.conf.erb
  25. +0 −9 rsyslog/templates/rsyslog-init-debian.erb
  26. +0 −14 rsyslog/templates/rsyslog-init-redhat.erb
  27. +0 −9 rsyslog/templates/rsyslog-init-ubuntu.erb
  28. +0 −5 rsyslog/templates/rsyslog.mysql.erb
  29. +0 −78 rsyslog/templates/server/rsyslog.conf.erb
  30. +0 −43 rsyslog/templates/variables_rsyslog.erb
  31. +0 −1 rsyslog/tests/absent.pp
  32. +0 −1 rsyslog/tests/backup.pp
  33. +0 −1 rsyslog/tests/debug.pp
  34. +0 −1 rsyslog/tests/disable.pp
  35. +0 −1 rsyslog/tests/disableboot.pp
  36. +0 −1 rsyslog/tests/firewall.pp
  37. +0 −1 rsyslog/tests/init.pp
  38. +0 −1 rsyslog/tests/monitor.pp
  39. +1 −0 vagrant
  40. +0 −8 vagrant/Modulefile
  41. +0 −49 vagrant/README
  42. +0 −17 vagrant/manifests/absent.pp
  43. +0 −23 vagrant/manifests/conf.pp
  44. +0 −26 vagrant/manifests/debug.pp
  45. +0 −27 vagrant/manifests/disable.pp
  46. +0 −13 vagrant/manifests/disableboot.pp
  47. +0 −54 vagrant/manifests/environment.pp
  48. +0 −49 vagrant/manifests/init.pp
  49. +0 −180 vagrant/manifests/params.pp
  50. +0 −28 vagrant/manifests/puppi.pp
  51. +0 −47 vagrant/manifests/vm.pp
  52. +0 −4 vagrant/templates/concat/Vagrantfile_FOOTER.erb
  53. +0 −3 vagrant/templates/concat/Vagrantfile_HEADER.erb
  54. +0 −32 vagrant/templates/concat/Vagrantfile_vm.erb
  55. +0 −24 vagrant/templates/puppet/puppet.conf.erb
  56. +0 −11 vagrant/templates/puppet/site.pp
  57. +0 −49 vagrant/templates/variables_vagrant.erb
  58. +0 −1 vagrant/tests/absent.pp
  59. +0 −1 vagrant/tests/backup.pp
  60. +0 −1 vagrant/tests/debug.pp
  61. +0 −1 vagrant/tests/disable.pp
  62. +0 −1 vagrant/tests/disableboot.pp
  63. +0 −1 vagrant/tests/firewall.pp
  64. +0 −1 vagrant/tests/init.pp
  65. +0 −1 vagrant/tests/monitor.pp
View
6 .gitmodules
@@ -175,3 +175,9 @@
[submodule "rsyncssh"]
path = rsyncssh
url = https://github.com/example42/puppet-rsyncssh
+[submodule "rsyslog"]
+ path = rsyslog
+ url = https://github.com/example42/puppet-rsyslog
+[submodule "vagrant"]
+ path = vagrant
+ url = https://github.com/example42/puppet-vagrant
1 rsyslog
@@ -0,0 +1 @@
+Subproject commit bbb8fed949dad4b1452522a794f1205f04630204
View
7 rsyslog/Modulefile
@@ -1,7 +0,0 @@
-name 'lab42-rsyslog'
-version '0.1.4'
-
-# dependency 'lab42/common', '>= 0.1.0'
-# dependency 'lab42/monitor', '>= 0.1.0'
-# dependency 'lab42/backup', '>= 0.1.0'
-# dependency 'lab42/firewall', '>= 0.1.0'
View
68 rsyslog/README
@@ -1,68 +0,0 @@
-Puppet module: rsyslog
-
-# Written by Lab42 #
-# http://www.Example42.com
-
-Licence: Apache2
-
-DESCRIPTION:
-This module installs and manages rsyslog.
-Standard and Example42 extended classes are available.
-Generally you can easily import and use standard classes in your own modules set, without other Example42 modules.
-You can place your customizations in the dedicated "project" files (by default example42.pp, use the example42_project_rename.sh script to rename them).
-Decide and customize how you want to define configuration files: static files, templates, infile modifications...
-
-
-USER VARIABLES:
-$syslog_server : Name, if wanted, of a central syslog server. Can be an array if you have more syslog servers.
-$syslog_server_local : Set to "yes" on nodes where you want a sysog server (with open ports for receiving messages)
-$rsyslog_use_loganalyzer (default: undef) - Set to "yes" if you want to setup the web frontend LogAnalyzer (ex PhplogCon) on the syslog server
- If you use LogAnaylzer review the latest version available (on params.pp) and (suggested) set rsyslog_db = yes
-$rsyslog_loganalyzer_url - Download Url for LogAnalyzer
-$rsyslog_loganalyzer_dirname - Name of the extracted directory
-$rsyslog_db (default: undef) - Define DB backend. Set mysql to activate logging via mysql
-$rsyslog_db_name (default: syslog) - Name of the database to use
-$rsyslog_db_server (default: localhost) - Define DB server host (used if $rsyslog_db = "mysql")
-$rsyslog_db_user (default: root) - Define DB access user (used if $rsyslog_db = "mysql")
-$rsyslog_db_password (default: undefined) - Define DB access password (used if $rsyslog_db = "mysql")
-
-
-
-USAGE:
-# Standard Classes
-include rsyslog # Install and run rsyslog
-
-include rsyslog::disable # Disable rsyslog service.
-include rsyslog::disableboot # Disable rsyslog service at boot time, but don't stop if it's running.
-include rsyslog::absent # Remove rsyslog package.
-include rsyslog::debug # Used for debugging purposes (not resource hungry) - Automatically included if $debug=yes - Requires Example42's puppet module
-
-# Extended Classes (generally require storeconfigs)
-include rsyslog::monitor # Monitor rsyslog - Automatically included if $monitor=yes - Requires Example42's monitor module
-include rsyslog::backup # Backup rsyslog data - Automatically included if $backup=yes - Requires Example42's backup module
-include rsyslog::firewall # Manages firewall rule for rsyslog service - Automatically included if $firewall=yes - Requires Example42's firewall module
-
-# Generic define to set parameters in the main configuration file. EXPERIMENTAL.
-rsyslog::conf { "ParameterName": value="YourValue"} # Generic
-
-# Module specific classes
-
-# Module specific defines
-
-
-GENERAL VARIABLES:
-Example42 modules collection uses some general variables that can influence the behaviour of this module.
-You can happily live without considering or setting them, but they can be useful to manage different projects maintanining the module's resuability.
-$my_project - If set, permits you to alter and customize the module behaviour
- and files's deploy logic in custom project classes than can be placed in a separated module.
-$base_source - Let you define an alternative source for static files:
- - $base_source not set -> Files are looked in puppet://$servername/ (the PuppetMaster)
- - $base_source set -> Files are looked in $base_source ( could be puppet://$servername/$my_module )
- Note that the module automatically manages the different paths for Puppet pre 0.25
-
-
-DEPENDENCIES:
-Standard classes generally don't need external modules.
-Extended classes need the relevant external modules ( monitor ; backup ... ) and the "common" module.
-rsyslog::conf generic infile configuration define needs the "common" module
-Check on individual module specific classes and defines if there are specific requirements.
View
26 rsyslog/manifests/absent.pp
@@ -1,26 +0,0 @@
-# Class: rsyslog::absent
-#
-# Removes rsyslog package and its relevant monitor, backup, firewall entries
-#
-# Usage:
-# include rsyslog::absent
-#
-class rsyslog::absent {
-
- require rsyslog::params
-
- package { "rsyslog":
- name => "${rsyslog::params::packagename}",
- ensure => absent,
- }
-
- # Remove relevant monitor, backup, firewall entries
- if $monitor == "yes" { include rsyslog::monitor::absent }
- if $backup == "yes" { include rsyslog::backup::absent }
- if $firewall == "yes" { include rsyslog::firewall::absent }
-
- # Include debug class is debugging is enabled ($debug=yes)
- if ( $debug == "yes" ) or ( $debug == true ) { include rsyslog::debug }
-
-
-}
View
41 rsyslog/manifests/backup.pp
@@ -1,41 +0,0 @@
-# Class: rsyslog::backup
-#
-# Backups rsyslog data and logs using Example42 backup meta module (to be adapted to custom backup solutions)
-# It's automatically included and used if $backup=yes
-# This class permits to abstract what you want to backup from the tool and module to use for backups.
-#
-# Variables:
-# The behaviour of this class has some defaults that can be overriden by user's variables:
-# $rsyslog_backup_data (true|false) : Set if you want to backup rsyslog's data. Default: As defined in $backup_data
-# $rsyslog_backup_log (true|false) : Set if you want to backup rsyslog's logs. Default: As defined in $backup_log
-# $rsyslog_backup_frequency (hourly|daily|weekly|monthly) : Set the frequency of your rsyslog backups. Default: daily.
-# $rsyslog_backup_target : Define how to reach (Ip, fqdn...) this host to backup rsyslog from an external server. Default: As defined in $backup_target
-#
-# You can also set some site wide variables that can be overriden by the above module specific ones:
-# $backup_data (true|false) : Set if you want to enable data backups site-wide.
-# $backup_log (true|false) : Set if you want to enable logs backups site-wide.
-# $backup_target : Set the ip/hostname you want to use on an external backup server to backup this host
-# For the defaults of the above variables check rsyslog::params
-#
-# Usage:
-# Automatically included if $backup=yes
-#
-class rsyslog::backup {
-
- include rsyslog::params
-
- backup { "rsyslog_data":
- frequency => "${rsyslog::params::backup_frequency}",
- path => "${rsyslog::params::datadir}",
- enabled => "${rsyslog::params::backup_data_enable}",
- target => "${rsyslog::params::backup_target_real}",
- }
-
- backup { "rsyslog_logs":
- frequency => "${rsyslog::params::backup_frequency}",
- path => "${rsyslog::params::logdir}",
- enabled => "${rsyslog::params::backup_log_enable}",
- target => "${rsyslog::params::backup_target_real}",
- }
-
-}
View
23 rsyslog/manifests/backup/absent.pp
@@ -1,23 +0,0 @@
-# Class: rsyslog::backup::absent
-#
-# Remove rsyslog backup elements
-#
-class rsyslog::backup::absent {
-
- include rsyslog::params
-
- backup { "rsyslog_data":
- frequency => "${rsyslog::params::backup_frequency}",
- path => "${rsyslog::params::datadir}",
- enabled => "false",
- target => "${rsyslog::params::backup_target_real}",
- }
-
- backup { "rsyslog_logs":
- frequency => "${rsyslog::params::backup_frequency}",
- path => "${rsyslog::params::logdir}",
- enabled => "false",
- target => "${rsyslog::params::backup_target_real}",
- }
-
-}
View
18 rsyslog/manifests/client.pp
@@ -1,18 +0,0 @@
-#
-# Class: rsyslog::client
-#
-# Manages rsyslog client
-#
-class rsyslog::client inherits rsyslog {
-
- # Load the variables used in this module. Check the params.pp file
- require rsyslog::params
-
- File["rsyslog.conf"] {
- content => template("rsyslog/client/rsyslog.conf.erb"),
- }
-
- # Include project specific monitor class if $my_project is set
- if $my_project { include "rsyslog::${my_project}::client" }
-
-}
View
23 rsyslog/manifests/conf.pp
@@ -1,23 +0,0 @@
-# Define rsyslog::conf
-#
-# General rsyslog main configuration file's inline modification define
-# Use with caution, it's still at experimental stage and may break in untested circumstances
-# Engine, pattern end line parameters can be tweaked for better behaviour
-#
-# Usage:
-# rsyslog::conf { "mynetworks": value => "127.0.0.0/8 10.42.42.0/24" }
-#
-define rsyslog::conf ($value) {
-
- require rsyslog::params
-
- config { "rsyslog_conf_$name":
- file => "${rsyslog::params::configfile}",
- line => "$name = $value",
- pattern => "^$name ",
- engine => "replaceline",
- notify => Service["rsyslog"],
- require => File["rsyslog.conf"],
- }
-
-}
View
25 rsyslog/manifests/debug.pp
@@ -1,25 +0,0 @@
-#
-# Class: rsyslog::debug
-#
-# This class is used only for debugging purposes
-#
-# Usage:
-# This class is used if you set $debug=yes
-#
-class rsyslog::debug {
-
- # Load the variables used in this module. Check the params.pp file
- require rsyslog::params
- include puppet::params
-
- file { "puppet_debug_variables_rsyslog":
- path => "${puppet::params::debugdir}/variables/rsyslog",
- mode => "${rsyslog::params::configfile_mode}",
- owner => "${rsyslog::params::configfile_owner}",
- group => "${rsyslog::params::configfile_group}",
- ensure => present,
- require => File["puppet_debug_variables"],
- content => template("rsyslog/variables_rsyslog.erb"),
- }
-
-}
View
27 rsyslog/manifests/disable.pp
@@ -1,27 +0,0 @@
-# Class: rsyslog::disable
-#
-# Stops rsyslog service and disables it at boot time
-# Removes the monitor checks, but not the other extended elements (backup, firewall)
-# Use rsyslog::absent to remove everything
-#
-# Usage:
-# include rsyslog::disable
-#
-class rsyslog::disable inherits rsyslog {
-
- require rsyslog::params
-
- Service["rsyslog"] {
- ensure => "stopped" ,
- enable => "false",
- }
-
- # Remove relevant monitor, backup, firewall entries
- if $monitor == "yes" { include rsyslog::monitor::absent }
- # if $backup == "yes" { include rsyslog::backup::absent }
- # if $firewall == "yes" { include rsyslog::firewall::absent }
-
- # Include debug class is debugging is enabled ($debug=yes)
- if ( $debug == "yes" ) or ( $debug == true ) { include rsyslog::debug }
-
-}
View
13 rsyslog/manifests/disableboot.pp
@@ -1,13 +0,0 @@
-# Class: rsyslog::disableboot
-#
-# This class disables rsyslog startup at boot time but doesn't check if the service is running
-# Useful when the service is started but another applications (such as a Cluster suite)
-#
-# Usage:
-# include rsyslog::disableboot
-#
-class rsyslog::disableboot inherits rsyslog {
- Service["rsyslog"] {
- enable => "false",
- }
-}
View
35 rsyslog/manifests/firewall.pp
@@ -1,35 +0,0 @@
-# Class: rsyslog::firewall
-#
-# Manages rsyslog firewalling using custom Firewall wrapper
-# By default it opens rsyslog's default port(s) to anybody
-# It's automatically included if $firewall=yes
-#
-# Usage:
-# Automatically included if $firewall=yes
-#
-class rsyslog::firewall {
-
- include rsyslog::params
-
- firewall { "rsyslog_${rsyslog::params::protocol}_${rsyslog::params::port}":
- source => "${rsyslog::params::firewall_source_real}",
- destination => "${rsyslog::params::firewall_destination_real}",
- protocol => "${rsyslog::params::protocol}",
- port => "${rsyslog::params::port}",
- action => "allow",
- direction => "input",
- enable => "${rsyslog::params::firewall_enable}",
- }
-
- firewall { "rsyslog_${rsyslog::params::protocol2}_${rsyslog::params::port2}":
- source => "${rsyslog::params::firewall_source_real}",
- destination => "${rsyslog::params::firewall_destination_real}",
- protocol => "${rsyslog::params::protocol2}",
- port => "${rsyslog::params::port2}",
- action => "allow",
- direction => "input",
- enable => "${rsyslog::params::firewall_enable}",
- }
-
-
-}
View
19 rsyslog/manifests/firewall/absent.pp
@@ -1,19 +0,0 @@
-# Class: rsyslog::firewall::absent
-#
-# Remove rsyslog firewall elements
-#
-class rsyslog::firewall::absent {
-
- include rsyslog::params
-
- firewall { "rsyslog_${rsyslog::params::protocol}_${rsyslog::params::port}":
- source => "${rsyslog::params::firewall_source_real}",
- destination => "${rsyslog::params::firewall_destination_real}",
- protocol => "${rsyslog::params::protocol}",
- port => "${rsyslog::params::port}",
- action => "allow",
- direction => "input",
- enable => "false",
- }
-
-}
View
66 rsyslog/manifests/init.pp
@@ -1,66 +0,0 @@
-#
-# Class: rsyslog
-#
-# Manages rsyslog.
-# Include it to install and run rsyslog
-# It defines package, service, main configuration file.
-#
-# Usage:
-# include rsyslog
-#
-class rsyslog {
-
- # Load the variables used in this module. Check the params.pp file
- require rsyslog::params
- require common
-
- if ($syslog_server_local == true) or ($syslog_server == "$fqdn") { include rsyslog::server }
- else { include rsyslog::client }
-
-
- # Basic Package - Service - Configuration file management
- package { "rsyslog":
- name => "${rsyslog::params::packagename}",
- ensure => present,
- }
-
- service { "rsyslog":
- name => "${rsyslog::params::servicename}",
- ensure => running,
- enable => true,
- hasrestart => true,
- hasstatus => "${rsyslog::params::hasstatus}",
- pattern => "${rsyslog::params::processname}",
- require => Package["rsyslog"],
- subscribe => File["rsyslog.conf"],
- }
-
- file { "rsyslog.conf":
- path => "${rsyslog::params::configfile}",
- mode => "${rsyslog::params::configfile_mode}",
- owner => "${rsyslog::params::configfile_owner}",
- group => "${rsyslog::params::configfile_group}",
- ensure => present,
- require => Package["rsyslog"],
- notify => Service["rsyslog"],
- # content => template("rsyslog/rsyslog.conf.erb"),
- }
-
- # Include OS specific subclasses, if necessary
- case $operatingsystem {
- centos: { if $common::osver == 5 { require sysklogd::disable } }
- redhat: { require sysklogd::disable }
- default: { }
- }
-
- # Include extended classes
- if $backup == "yes" { include rsyslog::backup }
- if $monitor == "yes" { include rsyslog::monitor }
-
- # Include project specific monitor class if $my_project is set
- if $my_project { include "rsyslog::${my_project}" }
-
- # Include debug class is debugging is enabled ($debug=yes)
- if ( $debug == "yes" ) or ( $debug == true ) { include rsyslog::debug }
-
-}
View
71 rsyslog/manifests/monitor.pp
@@ -1,71 +0,0 @@
-# Class: rsyslog::monitor
-#
-# Monitors rsyslog process/ports/service using Example42 monitor meta module (to be adapted to custom monitor solutions)
-# It's automatically included ad used if $monitor=yes and is defined at least one monitoring software in $monitor_tool
-# This class permits to abstract what you want to monitor from the actual tool and modules you'll use for monitoring
-# and can be used to quickly deploy a new monitoring solution
-#
-# Variables:
-# The behaviour of this class has some defaults that can be overriden by user's variables:
-# $rsyslog_monitor_port (true|false) : Set if you want to monitor rsyslog's port(s). If any. Default: As defined in $monitor_port
-# $rsyslog_monitor_url (true|false) : Set if you want to monitor rsyslog's url(s). If any. Default: As defined in $monitor_url
-# $rsyslog_monitor_process (true|false) : Set if you want to monitor rsyslog's process. If any. Default: As defined in $monitor_process
-# $rsyslog_monitor_plugin (true|false) : Set if you want to monitor rsyslog using specific monitor tool's plugin i s. If any. Default: As defined in $monitor_plugin
-# $rsyslog_monitor_target : Define how to reach (Ip, fqdn...) the host to monitor rsyslog from an external server. Default: As defined in $monitor_target
-# $rsyslog_monitor_url : Define the baseurl (http://$fqdn/...) to use for eventual rsyslog URL checks. Default: As defined in $monitor_url
-#
-# You can therefore set site wide variables that can be overriden by the above module specific ones:
-# $monitor_port (true|false) : Set if you want to enable port monitoring site-wide.
-# $monitor_url (true|false) : Set if you want to enable url checking site-wide.
-# $monitor_process (true|false) : Set if you want to enable process monitoring site-wide.
-# $monitor_plugin (true|false) : Set if you want to try to use specific plugins of your monitoring tools
-# $monitor_target : Set the ip/hostname you want to use on an external monitoring server to monitor this host
-# $monitor_baseurl : Set baseurl to use for eventual URL checks of services provided by this host
-# For the defaults of the above variables check rsyslog::params
-#
-# Usage:
-# Automatically included if $monitor=yes
-# Use the variable $monitor_tool (can be an array) to define the monitoring software you want to use.
-# To customize specific and more granular behaviours use the above variables and eventually your custom modulename::monitor::$my_project class
-#
-class rsyslog::monitor {
-
- include rsyslog::params
-
- # Port monitoring
- monitor::port { "rsyslog_${rsyslog::params::protocol}_${rsyslog::params::port}":
- protocol => "${rsyslog::params::protocol}",
- port => "${rsyslog::params::port}",
- target => "${rsyslog::params::monitor_target_real}",
- enable => "${rsyslog::params::monitor_port_enable}",
- tool => "${monitor_tool}",
- }
-
- # URL monitoring
- monitor::url { "rsyslog_url":
- url => "${rsyslog::params::monitor_baseurl_real}/index.php",
- pattern => "${rsyslog::params::monitor_url_pattern}",
- enable => "${rsyslog::params::monitor_url_enable}",
- tool => "${monitor_tool}",
- }
-
- # Process monitoring
- monitor::process { "rsyslog_process":
- process => "${rsyslog::params::processname}",
- service => "${rsyslog::params::servicename}",
- pidfile => "${rsyslog::params::pidfile}",
- enable => "${rsyslog::params::monitor_process_enable}",
- tool => "${monitor_tool}",
- }
-
- # Use a specific plugin (according to the monitor tool used)
- monitor::plugin { "rsyslog_plugin":
- plugin => "rsyslog",
- enable => "${rsyslog::params::monitor_plugin_enable}",
- tool => "${monitor_tool}",
- }
-
- # Include project specific monitor class if $my_project is set
- if $my_project { include "rsyslog::${my_project}::monitor" }
-
-}
View
42 rsyslog/manifests/monitor/absent.pp
@@ -1,42 +0,0 @@
-# Class: rsyslog::monitor::absent
-#
-# Remove rsyslog monitor elements
-#
-class rsyslog::monitor::absent {
-
- include rsyslog::params
-
- # Port monitoring
- monitor::port { "rsyslog_${rsyslog::params::protocol}_${rsyslog::params::port}":
- protocol => "${rsyslog::params::protocol}",
- port => "${rsyslog::params::port}",
- target => "${rsyslog::params::monitor_target_real}",
- enable => "false",
- tool => "${monitor_tool}",
- }
-
- # URL monitoring
- monitor::url { "rsyslog_url":
- url => "${rsyslog::params::monitor_baseurl_real}/index.php",
- pattern => "${rsyslog::params::monitor_url_pattern}",
- enable => "false",
- tool => "${monitor_tool}",
- }
-
- # Process monitoring
- monitor::process { "rsyslog_process":
- process => "${rsyslog::params::processname}",
- service => "${rsyslog::params::servicename}",
- pidfile => "${rsyslog::params::pidfile}",
- enable => "false",
- tool => "${monitor_tool}",
- }
-
- # Use a specific plugin (according to the monitor tool used)
- monitor::plugin { "rsyslog_plugin":
- plugin => "rsyslog",
- enable => "false",
- tool => "${monitor_tool}",
- }
-
-}
View
303 rsyslog/manifests/params.pp
@@ -1,303 +0,0 @@
-# Class: rsyslog::params
-#
-# Sets internal variables and defaults for rsyslog module
-# This class is automatically loaded in all the classes that use the values set here
-#
-class rsyslog::params {
-
-## DEFAULTS FOR VARIABLES USERS CAN SET
-# (Here are set the defaults, provide your custom variables externally)
-# (The default used is in the line with '')
-
-## Full hostname of rsyslog server
- $server = $syslog_server ? {
- '' => "syslog.example42.com",
- default => "${syslog_server}",
- }
-
-# Define if you want to use the Web Fronted Log Analyzer on the rsyslog server
-# If you set "yes" here you'll probably want to add Mysql support
- $use_loganalyzer = $rsyslog_use_loganalyzer ? {
- "" => "no",
- "true" => "yes",
- true => "yes",
- "yes" => "yes",
- default => "no",
- }
-
-# LogAnalyzer Download URL (Default: The official one)
- $loganalyzer_url = $rsyslog_loganalyzer_url ? {
- "" => "http://download.adiscon.com/loganalyzer/loganalyzer-3.0.4.tar.gz",
- default => $rsyslog_loganalyzer_url ,
- }
-
-# Log Analyzer Version
- $loganalyzer_dirname = $rsyslog_loganalyzer_dirname ? {
- "" => "loganalyzer-3.0.4",
- default => $rsyslog_loganalyzer_dirname ,
- }
-
-
-# Define Rsyslog DB backend
- $db = $rsyslog_db ? {
- mysql => "mysql",
- default => "",
- }
-
-# Define Rsyslog DB name ($rsyslog_db_name). Default: syslog
- $db_name = $rsyslog_db_name ? {
- '' => "syslog",
- default => "$rsyslog_db_name",
- }
-
-# Define Rsyslog DB server ($rsyslog_db_server). Default: localhost
- $db_server = $rsyslog_db_server ? {
- '' => "localhost",
- default => "$rsyslog_db_server",
- }
-
-# Define Rsyslog DB user ($rsyslog_db_user). Default: root
- $db_user = $rsyslog_db_user ? {
- '' => "root",
- default => "$rsyslog_db_user",
- }
-
-# Define Rsyslog DB password ($rsyslog_db_password). Default: blank
- $db_password = $rsyslog_db_password ? {
- '' => "",
- default => "$rsyslog_db_password",
- }
-
-
-## EXTRA MODULE INTERNAL VARIABLES
-#(add here module specific internal variables)
-
- # Extra syslog port
- $protocol2 = "udp"
- $port2 = "514"
-
-
-## MODULE INTERNAL VARIABLEo
-
- $packagename = $operatingsystem ? {
- default => "rsyslog",
- }
-
- $servicename = $operatingsystem ? {
- default => "rsyslog",
- }
-
- $processname = $operatingsystem ? {
- default => "rsyslogd",
- }
-
- $hasstatus = $operatingsystem ? {
- debian => false,
- default => true,
- }
-
- $configfile = $operatingsystem ? {
- default => "/etc/rsyslog.conf",
- }
-
- $configfile_mode = $operatingsystem ? {
- default => "644",
- }
-
- $configfile_owner = $operatingsystem ? {
- default => "root",
- }
-
- $configfile_group = $operatingsystem ? {
- default => "root",
- }
-
- $configdir = $operatingsystem ? {
- default => "/etc/rsyslog.d",
- }
-
- $initconfigfile = $operatingsystem ? {
- debian => "/etc/default/rsyslog",
- ubuntu => "/etc/default/rsyslog",
- default => "/etc/sysconfig/rsyslog",
- }
-
- # Used by monitor class
- $pidfile = $operatingsystem ? {
- default => "/var/run/rsyslogd.pid",
- }
-
- # Used by backup class
- $datadir = $operatingsystem ? {
- default => "/var/lib/rsyslog",
- }
-
- # Used by backup class - Provide the file name, if there's no dedicated dir
- $logdir = $operatingsystem ? {
- default => "/var/log",
- }
-
- # Used by monitor and firewall class
- # If you need to define additional ports, call them $protocol1/$port1 and add the relevant
- # parts in firewall.pp and monitor.pp
- $protocol = "tcp"
- $port = "514"
-
-
-
-## DEFAULTS FOR MONITOR CLASS
-# These are settings that influence the (optional) rsyslog::monitor class
-# You can define these variables or leave the defaults
-# The apparently complex variables assignements below follow this logic:
-# - If no user variable is set, a reasonable default is used
-# - If the user has set a host-wide variable (ex: $monitor_target ) that one is set
-# - The host-wide variable can be overriden by a module specific one (ex: $rsyslog_monitor_target)
-
- # How the monitor server refers to the monitor target
- $monitor_target_real = $rsyslog_monitor_target ? {
- '' => $monitor_target ? {
- '' => "${fqdn}",
- default => $monitor_target,
- },
- default => "$rsyslog_monitor_target",
- }
-
- # BaseUrl to access this host
- $monitor_baseurl_real = $rsyslog_monitor_baseurl ? {
- '' => $monitor_baseurl ? {
- '' => "http://${fqdn}",
- default => $monitor_baseurl,
- },
- default => "${rsyslog_monitor_baseurl}",
- }
-
- # Pattern to look for in the URL defined in rsyslog::monitor class
- $monitor_url_pattern = $rsyslog_monitor_url_pattern ? {
- '' => "OK",
- default => "${rsyslog_monitor_url_pattern}",
- }
-
- # If rsyslog port monitoring is enabled
- $monitor_port_enable = $rsyslog_monitor_port ? {
- '' => $monitor_port ? {
- '' => false,
- default => $monitor_port,
- },
- default => $rsyslog_monitor_port,
- }
-
- # If rsyslog url monitoring is enabled
- $monitor_url_enable = $rsyslog_monitor_url ? {
- '' => $monitor_url ? {
- '' => false,
- default => $monitor_url,
- },
- default => $rsyslog_monitor_url,
- }
-
- # If rsyslog process monitoring is enabled
- $monitor_process_enable = $rsyslog_monitor_process ? {
- '' => $monitor_process ? {
- '' => true,
- default => $monitor_process,
- },
- default => $rsyslog_monitor_process,
- }
-
- # If rsyslog plugin monitoring is enabled
- $monitor_plugin_enable = $rsyslog_monitor_plugin ? {
- '' => $monitor_plugin ? {
- '' => false,
- default => $monitor_plugin,
- },
- default => $rsyslog_monitor_plugin,
- }
-
-## DEFAULTS FOR BACKUP CLASS
-# These are settings that influence the (optional) rsyslog::backup class
-# You can define these variables or leave the defaults
-
- # How the backup server refers to the backup target
- $backup_target_real = $rsyslog_backup_target ? {
- '' => $backup_target ? {
- '' => "${fqdn}",
- default => $backup_target,
- },
- default => "$rsyslog_backup_target",
- }
-
- # Frequency of backups
- $backup_frequency = $rsyslog_backup_frequency ? {
- '' => "daily",
- default => "$rsyslog_backup_frequency",
- }
-
- # If rsyslog data have to be backed up
- $backup_data_enable = $rsyslog_backup_data ? {
- '' => $backup_data ? {
- '' => false,
- default => $backup_data,
- },
- default => $rsyslog_backup_data,
- }
-
- # If rsyslog logs have to be backed up
- $backup_log_enable = $rsyslog_backup_log ? {
- '' => $backup_log ? {
- '' => true,
- default => $backup_log,
- },
- default => $rsyslog_backup_log,
- }
-
-
-## DEFAULTS FOR FIREWALL CLASS
-# These are settings that influence the (optional) rsyslog::firewall class
-# You can define these variables or leave the defaults
-
- # Source IPs that can access this service - Use iptables friendly format
- $firewall_source_real = $rsyslog_firewall_source ? {
- '' => $firewall_source ? {
- '' => "0.0.0.0/0",
- default => $firewall_source,
- },
- default => "$rsyslog_firewall_source",
- }
-
- # Destination IP to use for this host (Default facter's $ipaddress)
- $firewall_destination_real = $rsyslog_firewall_destination ? {
- '' => $firewall_destination ? {
- '' => "${ipaddress}",
- default => $firewall_destination,
- },
- default => "$rsyslog_firewall_destination",
- }
-
- # If firewall filter is enabled
- $firewall_enable = $rsyslog_firewall_enable ? {
- '' => $firewall_enable ? {
- '' => true,
- default => $firewall_enable,
- },
- default => $rsyslog_firewall_enable,
- }
-
-## FILE SERVING SOURCE
-# Sets the correct source for static files
-# In order to provide files from different sources without modifying the module
-# you can override the default source path setting the variable $base_source
-# Ex: $base_source="puppet://ip.of.fileserver" or $base_source="puppet://$servername/myprojectmodule"
-# What follows automatically manages the new source standard (with /modules/) from 0.25
-
- case $base_source {
- '': {
- $general_base_source = $puppetversion ? {
- /(^0.25)/ => "puppet:///modules",
- /(^0.)/ => "puppet://$servername",
- default => "puppet:///modules",
- }
- }
- default: { $general_base_source=$base_source }
- }
-
-}
View
45 rsyslog/manifests/server.pp
@@ -1,45 +0,0 @@
-#
-# Class: rsyslog::server
-#
-# Manages rsyslog server
-#
-# Usage:
-# Automatically included when you include rsyslog if $syslog_server_local is true or $syslog_server is equal to $fqdn
-#
-class rsyslog::server inherits rsyslog {
-
- # Load the variables used in this module. Check the params.pp file
- require rsyslog::params
-
- # Configure mysql support, if requested
- if ( $rsyslog::params::db == "mysql" ) { include rsyslog::server::mysql }
-
- # Add LogAnalyzer
- if ( $rsyslog::params::use_loganalyzer == "yes" ) { include rsyslog::server::loganalyzer }
-
- file { "rsyslog.init":
- path => "${rsyslog::params::initconfigfile}",
- mode => "${rsyslog::params::configfile_mode}",
- owner => "${rsyslog::params::configfile_owner}",
- group => "${rsyslog::params::configfile_group}",
- ensure => present,
- require => Package["rsyslog"],
- notify => Service["rsyslog"],
- content => $operatingsystem ? {
- ubuntu => template("rsyslog/rsyslog-init-ubuntu.erb"),
- debian => template("rsyslog/rsyslog-init-debian.erb"),
- default => template("rsyslog/rsyslog-init-redhat.erb"),
- }
- }
-
- File["rsyslog.conf"] {
- content => template("rsyslog/server/rsyslog.conf.erb"),
- }
-
- # Autofirewalling for syslog server
- if $firewall == "yes" { include rsyslog::firewall }
-
- # Include project specific monitor class if $my_project is set
- if $my_project { include "rsyslog::${my_project}::server" }
-
-}
View
30 rsyslog/manifests/server/link.pp
@@ -1,30 +0,0 @@
-# Class: rsyslog::server::link
-#
-# Extended class that provides a link to be used in auto-generated links portals based on Puppet resources
-# The link define can be extended in a modular way, using different "tools" to generate links aggregators
-# Example42 modules provide the psick web interface ( $link_tool = "psick" )
-#
-# Usage:
-# Automatically included if $link=yes
-# Use the variable $link_tool (can be an array) to define the linking software you want to use.
-#
-class rsyslog::server::link {
-
- include rsyslog::params
-
- link { "Rsyslog":
- title => "Rsyslog WebAnalyzer",
- description => "Rsyslog WebAnalyzer Web Interface",
- url => "http://${fqdn}",
- host => "${fqdn}",
- type => "monitor",
- private => "no",
-# priority => "10",
-# linktags => [ "$role" , "$stack" ],
-# login => "",
-# password => "",
- tool => "${link_tool}",
- enable => "true",
- }
-
-}
View
32 rsyslog/manifests/server/loganalyzer.pp
@@ -1,32 +0,0 @@
-#
-# Class rsyslog::server::loganalyzer
-#
-# Installs LogAnaalyzer for Rsyslog
-# Autoloaded if $rsyslog_use_loganalyzer = yes
-#
-class rsyslog::server::loganalyzer {
- require rsyslog::params
- require apache::params
-
- include apache
- php::module { mysql: }
- php::module { gd: }
-
- puppi::netinstall { "netinstall_loganalyzer":
- url => "${rsyslog::params::loganalyzer_url}",
- extracted_dir => "${rsyslog::params::loganalyzer_dirname}",
- destination_dir => "${apache::params::documentroot}",
- require => Package["apache"],
- }
-
- apache::vhost { "syslog.${domain}":
- port => '80',
- serveraliases => "syslog.${domain}",
- priority => '10',
- docroot => "${apache::params::documentroot}/${rsyslog::params::loganalyzer_dirname}/src",
- template => 'rsyslog/loganalyzer.conf.erb',
- }
-
- if $link == "yes" { include rsyslog::server::link }
-
-}
View
51 rsyslog/manifests/server/mysql.pp
@@ -1,51 +0,0 @@
-#
-# Class rsyslog::server::mysql
-#
-# Manages Mysql on Rsyslog server
-# Autoloaded if $rsyslog_db = mysql
-#
-class rsyslog::server::mysql {
- require rsyslog::params
-
- package { "rsyslog-mysql":
- ensure => present,
- }
-
- file { "rsyslog.mysql":
- path => "${rsyslog::params::configdir}/mysql.conf",
- mode => "${rsyslog::params::configfile_mode}",
- owner => "${rsyslog::params::configfile_owner}",
- group => "${rsyslog::params::configfile_group}",
- ensure => present,
- require => Package["rsyslog"],
- notify => Service["rsyslog"],
- content => template("rsyslog/rsyslog.mysql.erb"),
- }
-
-
- case $rsyslog::params::db_server {
- "localhost","127.0.0.1": {
- include mysql
- mysql::grant { "rsyslog_server_grants_${fqdn}":
- mysql_db => "${rsyslog::params::db_name}",
- mysql_user => "${rsyslog::params::db_user}",
- mysql_password => "${rsyslog::params::db_password}",
- mysql_privileges => "ALL",
- mysql_host => "${rsyslog::params::db_server}",
- notify => Service["rsyslog"],
- }
- }
- default: {
- # Attempt to automanage Mysql grants on external servers. TODO: Verify if it works ;-D
- @@mysql::grant { "rsyslog_server_grants_${fqdn}":
- mysql_db => "${rsyslog::params::db_name}",
- mysql_user => "${rsyslog::params::db_user}",
- mysql_password => "${rsyslog::params::db_password}",
- mysql_privileges => "ALL",
- mysql_host => "${fqdn}",
- tag => "mysql_grants_${rsyslog::params::db_server}",
- }
- }
- }
-
-}
View
69 rsyslog/templates/client/rsyslog.conf.erb
@@ -1,69 +0,0 @@
-# File managed by Puppet
-# /etc/rsyslog.conf Configuration file for rsyslog v3.
-
-#### MODULES ####
-$ModLoad imuxsock # provides support for local system logging
-$ModLoad imklog # provides kernel logging support (previously done by rklogd)
-#$ModLoad immark # provides --MARK-- message capability
-
-#$ModLoad imudp # provides UDP syslog reception
-#$UDPServerRun 514
-
-#$ModLoad imtcp # provides TCP syslog reception
-#$InputTCPServerRun 514
-
-
-#### GLOBAL DIRECTIVES ####
-# Use traditional timestamp format.
-$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
-
-# Set the default permissions for all log files.
-$FileOwner root
-$FileGroup adm
-$FileCreateMode 0640
-$DirCreateMode 0755
-
-$IncludeConfig /etc/rsyslog.d/*.conf
-
-#### RULES ####
-<% if scope.lookupvar('rsyslog::params::server') != "" -%>
-# Everything to Central Syslog
-*.* @@(o)<%= scope.lookupvar('rsyslog::params::server') %>
-<% end -%>
-
-<% if operatingsystem == "Ubuntu" || operatingsystem == "Debian" -%>
-*.*;auth,authpriv.none -/var/log/syslog
-#cron.* /var/log/cron.log
-daemon.* -/var/log/daemon.log
-kern.* -/var/log/kern.log
-lpr.* -/var/log/lpr.log
-mail.* -/var/log/mail.log
-user.* -/var/log/user.log
-mail.info -/var/log/mail.info
-mail.warn -/var/log/mail.warn
-mail.err /var/log/mail.err
-news.crit /var/log/news/news.crit
-news.err /var/log/news/news.err
-news.notice -/var/log/news/news.notice
-*.=debug;\
- auth,authpriv.none;\
- news.none;mail.none -/var/log/debug
-*.=info;*.=notice;*.=warn;\
- auth,authpriv.none;\
- cron,daemon.none;\
- mail,news.none -/var/log/messages
-*.emerg *
-daemon.*;mail.*;\
- news.err;\
- *.=debug;*.=info;\
- *.=notice;*.=warn |/dev/xconsole
-<% end -%>
-<% if operatingsystem == "CentOS" || operatingsystem == "RedHat" -%>
-*.info;mail.none;authpriv.none;cron.none /var/log/messages
-authpriv.* /var/log/secure
-mail.* -/var/log/maillog
-cron.* /var/log/cron
-*.emerg *
-uucp,news.crit /var/log/spooler
-local7.* /var/log/boot.log
-<% end -%>
View
23 rsyslog/templates/loganalyzer.conf.erb
@@ -1,23 +0,0 @@
-# File Managed by Puppet
-
-<VirtualHost *:<%= port %>>
- ServerName <%= name %>
-<% if serveraliases -%>
- ServerAlias <%= serveraliases %>
-<% end -%>
- DocumentRoot <%= docroot %>
- <Directory <%= docroot %>>
- Options None
- AllowOverride None
- Order allow,deny
- allow from all
- </Directory>
-
- ErrorLog /var/log/<%= scope.lookupvar('apache::params::servicename') %>/<%= name %>_error.log
- LogLevel warn
- CustomLog /var/log/<%= scope.lookupvar('apache::params::servicename') %>/<%= name %>_access.log combined
- ServerSignature On
-
-</VirtualHost>
-
-
View
9 rsyslog/templates/rsyslog-init-debian.erb
@@ -1,9 +0,0 @@
-# File managed by Puppet
-# Options for rsyslogd
-# -m 0 disables 'MARK' messages (deprecated, only used in compat mode < 3)
-# -r enables logging from remote machines (deprecated, only used in compat mode < 3)
-# -x disables DNS lookups on messages received with -r
-# -c compatibility mode
-# See rsyslogd(8) for more details
-RSYSLOGD_OPTIONS="-c3"
-
View
14 rsyslog/templates/rsyslog-init-redhat.erb
@@ -1,14 +0,0 @@
-# File Managed by Puppet
-# Options to syslogd
-# -m 0 disables 'MARK' messages.
-# -rPortNumber Enables logging from remote machines. The listener will listen to the specified port.
-# -x disables DNS lookups on messages recieved with -r
-# See syslogd(8) for more details
-SYSLOGD_OPTIONS="-m 0 -r514 -x"
-# Options to klogd
-# -2 prints all kernel oops messages twice; once for klogd to decode, and
-# once for processing with 'ksymoops'
-# -x disables all klogd processing of oops messages entirely
-# See klogd(8) for more details
-KLOGD_OPTIONS="-x"
-
View
9 rsyslog/templates/rsyslog-init-ubuntu.erb
@@ -1,9 +0,0 @@
-# File managed by Puppet
-# Options for rsyslogd
-# -m 0 disables 'MARK' messages (deprecated, only used in compat mode < 3)
-# -r enables logging from remote machines (deprecated, only used in compat mode < 3)
-# -x disables DNS lookups on messages received with -r
-# -c compatibility mode
-# See rsyslogd(8) for more details
-RSYSLOGD_OPTIONS="-c4"
-
View
5 rsyslog/templates/rsyslog.mysql.erb
@@ -1,5 +0,0 @@
-# File managed by Puppet
-
-$ModLoad ommysql
-*.* :ommysql:<%= scope.lookupvar('rsyslog::params::db_server') %>,<%= scope.lookupvar('rsyslog::params::db_name') %>,<%= scope.lookupvar('rsyslog::params::db_user') %>,<%= scope.lookupvar('rsyslog::params::db_password') %>
-
View
78 rsyslog/templates/server/rsyslog.conf.erb
@@ -1,78 +0,0 @@
-# File managed by Puppet
-# /etc/rsyslog.conf Configuration file for rsyslog v3.
-
-#### MODULES ####
-$ModLoad imuxsock # provides support for local system logging
-$ModLoad imklog # provides kernel logging support (previously done by rklogd)
-#$ModLoad immark # provides --MARK-- message capability
-
-# provides UDP syslog reception
-$ModLoad imudp
-$UDPServerRun 514
-
-# provides TCP syslog reception
-$ModLoad imtcp
-$InputTCPServerRun 514
-$InputTCPMaxSessions 1000
-
-## For secure connections
-#$DefaultNetstreamDriver gtls
-## Certificate files
-#$DefaultNetstreamDriverCAFile /path/to/contrib/gnutls/ca.pem
-#$DefaultNetstreamDriverCertFile /path/to/contrib/gnutls/cert.pem
-#$DefaultNetstreamDriverKeyFile /path/to/contrib/gnutls/key.pem
-
-$InputTCPServerStreamDriverMode 0 # no TLS mode
-#$InputTCPServerStreamDriverMode 1 # TLS-only mode
-$InputTCPServerStreamDriverAuthMode anon # Client is NOT authenticated
-
-#### GLOBAL DIRECTIVES ####
-# Use traditional timestamp format.
-$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
-
-# Set the default permissions for all log files.
-$FileOwner root
-$FileGroup adm
-$FileCreateMode 0640
-$DirCreateMode 0755
-
-$IncludeConfig /etc/rsyslog.d/*.conf
-
-#### RULES ####
-<% if operatingsystem == "Ubuntu" || operatingsystem == "Debian" -%>
-*.*;auth,authpriv.none -/var/log/syslog
-#cron.* /var/log/cron.log
-daemon.* -/var/log/daemon.log
-kern.* -/var/log/kern.log
-lpr.* -/var/log/lpr.log
-mail.* -/var/log/mail.log
-user.* -/var/log/user.log
-mail.info -/var/log/mail.info
-mail.warn -/var/log/mail.warn
-mail.err /var/log/mail.err
-news.crit /var/log/news/news.crit
-news.err /var/log/news/news.err
-news.notice -/var/log/news/news.notice
-*.=debug;\
- auth,authpriv.none;\
- news.none;mail.none -/var/log/debug
-*.=info;*.=notice;*.=warn;\
- auth,authpriv.none;\
- cron,daemon.none;\
- mail,news.none -/var/log/messages
-*.emerg *
-daemon.*;mail.*;\
- news.err;\
- *.=debug;*.=info;\
- *.=notice;*.=warn |/dev/xconsole
-<% end -%>
-<% if operatingsystem == "CentOS" || operatingsystem == "RedHat" -%>
-*.info;mail.none;authpriv.none;cron.none /var/log/messages
-authpriv.* /var/log/secure
-mail.* -/var/log/maillog
-cron.* /var/log/cron
-*.emerg *
-uucp,news.crit /var/log/spooler
-local7.* /var/log/boot.log
-<% end -%>
-
View
43 rsyslog/templates/variables_rsyslog.erb
@@ -1,43 +0,0 @@
-# File Managed By Puppet
-
-These are the variables used by the module rsyslog
-
-User variables:
-$server = <%= scope.lookupvar('rsyslog::params::server') %>
-
-General internal variables:
-$packagename = <%= scope.lookupvar('rsyslog::params::packagename') %>
-$servicename = <%= scope.lookupvar('rsyslog::params::servicename') %>
-$processname = <%= scope.lookupvar('rsyslog::params::servicename') %>
-$hasstatus = <%= scope.lookupvar('rsyslog::params::hasstatus') %>
-$configfile = <%= scope.lookupvar('rsyslog::params::configfile') %>
-$configfile_mode = <%= scope.lookupvar('rsyslog::params::configfile_mode') %>
-$configfile_owner = <%= scope.lookupvar('rsyslog::params::configfile_owner') %>
-$configfile_group = <%= scope.lookupvar('rsyslog::params::configfile_group') %>
-$configdir = <%= scope.lookupvar('rsyslog::params::configdir') %>
-$initconfigfile = <%= scope.lookupvar('rsyslog::params::initconfigfile') %>
-$pidfile = <%= scope.lookupvar('rsyslog::params::pidfile') %>
-$datadir = <%= scope.lookupvar('rsyslog::params::datadir') %>
-$logdir = <%= scope.lookupvar('rsyslog::params::logdir') %>
-$protocol = <%= scope.lookupvar('rsyslog::params::protocol') %>
-$port = <%= scope.lookupvar('rsyslog::params::port') %>
-
-Variables used by monitor class:
-$monitor_target_real = <%= scope.lookupvar('rsyslog::params::monitor_target_real') %>
-$monitor_baseurl_real = <%= scope.lookupvar('rsyslog::params::monitor_baseurl_real') %>
-$monitor_url_pattern = <%= scope.lookupvar('rsyslog::params::monitor_url_pattern') %>
-$monitor_port_enable = <%= scope.lookupvar('rsyslog::params::monitor_port_enable') %>
-$monitor_url_enable = <%= scope.lookupvar('rsyslog::params::monitor_url_enable') %>
-$monitor_process_enable = <%= scope.lookupvar('rsyslog::params::monitor_process_enable') %>
-$monitor_plugin_enable = <%= scope.lookupvar('rsyslog::params::monitor_plugin_enable') %>
-
-Variables used by backup class:
-$backup_target_real = <%= scope.lookupvar('rsyslog::params::backup_target_real') %>
-$backup_frequency = <%= scope.lookupvar('rsyslog::params::backup_frequency') %>
-$backup_data_enable = <%= scope.lookupvar('rsyslog::params::backup_data_enable') %>
-$backup_log_enable = <%= scope.lookupvar('rsyslog::params::backup_log_enable') %>
-$general_base_source = <%= scope.lookupvar('rsyslog::params::general_base_source') %>
-
-Variables used by firewall class:
-$firewall_source_real = <%= scope.lookupvar('rsyslog::params::firewall_source_real') %>
-$firewall_destination_real = <%= scope.lookupvar('rsyslog::params::firewall_destination_real') %>
View
1 rsyslog/tests/absent.pp
@@ -1 +0,0 @@
-include rsyslog::absent
View
1 rsyslog/tests/backup.pp
@@ -1 +0,0 @@
-include rsyslog::backup
View
1 rsyslog/tests/debug.pp
@@ -1 +0,0 @@
-include rsyslog::debug
View
1 rsyslog/tests/disable.pp
@@ -1 +0,0 @@
-include rsyslog::disable
View
1 rsyslog/tests/disableboot.pp
@@ -1 +0,0 @@
-include rsyslog::disableboot
View
1 rsyslog/tests/firewall.pp
@@ -1 +0,0 @@
-include rsyslog::firewall
View
1 rsyslog/tests/init.pp
@@ -1 +0,0 @@
-include rsyslog
View
1 rsyslog/tests/monitor.pp
@@ -1 +0,0 @@
-include rsyslog::monitor
1 vagrant
@@ -0,0 +1 @@
+Subproject commit 69dbbc8497ffdad93fc9a7e01478eec5b97008fe
View
8 vagrant/Modulefile
@@ -1,8 +0,0 @@
-name 'lab42-vagrant'
-version '0.1.8'
-
-# dependency 'lab42/common', '>= 0.1.0'
-# dependency 'lab42/puppi', '>= 0.1.0'
-# dependency 'lab42/monitor', '>= 0.1.0'
-# dependency 'lab42/backup', '>= 0.1.0'
-# dependency 'lab42/firewall', '>= 0.1.0'
View
49 vagrant/README
@@ -1,49 +0,0 @@
-Puppet module: vagrant
-
-# Written by Lab42 #
-# http://www.Example42.com
-
-Licence: Apache2
-
-DESCRIPTION:
-This module installs vagrant and manages its environments and vms.
-
-USAGE:
-include vagrant # Installs vagrant as gem
-include vagrant::absent # Remove vagrant package.
-
-To setup single or multiple VM environments (per user):
-($box_url is optional and should point to a local repository)
-
-vagrant::environment { "test42": user => "al" }
-vagrant::vm { "test_lenny64":
- environment => "test42" ,
- box => "debian_lenny_64" ,
- box_url => "http://puppetlabs.s3.amazonaws.com/pub/debian_lenny_64.box"
-}
-vagrant::vm { "test_lucid64":
- environment => "test42" ,
- box => "lucid64" ,
- box_url => "http://files.vagrantup.com/lucid64.box"
-}
-
-
-VARIABLES FOR EXTENDED MODULES:
-$puppi - Set to "yes" to enable vagrant plugins for puppi
-Check vagrant/manifests/puppi.pp for more info.
-
-
-
-DEPENDENCIES:
-Standard classes generally don't need external modules.
-Extended classes need the relevant external modules.
-
-
-OPERATING SYSTEMS SUPPORT (Planned, Development, Testing, Production):
-RedHat/Centos 5 : Not Planned
-RedHat/Centos 6 : Testing
-Debian 5 : Not Planned
-Debian 6 : Planned
-Ubuntu 8.04 : Not Planned
-Ubuntu 10.04 : Testing
-Ubuntu 11.04 : Testing
View
17 vagrant/manifests/absent.pp
@@ -1,17 +0,0 @@
-# Class: vagrant::absent
-#
-# Removes vagrant package
-#
-# Usage:
-# include vagrant::absent
-#
-class vagrant::absent {
-
- require vagrant::params
-
- package { "vagrant":
- name => "${vagrant::params::packagename}",
- ensure => absent,
- }
-
-}
View
23 vagrant/manifests/conf.pp
@@ -1,23 +0,0 @@
-# Define vagrant::conf
-#
-# General vagrant main configuration file's inline modification define
-# Use with caution, it's still at experimental stage and may break in untested circumstances
-# Engine, pattern end line parameters can be tweaked for better behaviour
-#
-# Usage:
-# vagrant::conf { "mynetworks": value => "127.0.0.0/8 10.42.42.0/24" }
-#
-define vagrant::conf ($value) {
-
- require vagrant::params
-
- config { "vagrant_conf_$name":
- file => "${vagrant::params::configfile}",
- line => "$name = $value",
- pattern => "^$name ",
- engine => "replaceline",
- notify => Service["vagrant"],
- require => File["vagrant.conf"],
- }
-
-}
View
26 vagrant/manifests/debug.pp
@@ -1,26 +0,0 @@
-#
-# Class: vagrant::debug
-#
-# This class is used only for debugging purposes
-#
-# Usage:
-# This class is autoloaded if you set $debug=yes
-#
-class vagrant::debug {
-
- # Load the variables used in this module. Check the params.pp file
- require vagrant::params
- include puppet::debug
- include puppet::params
-
- file { "puppet_debug_variables_vagrant":
- path => "${puppet::params::debugdir}/variables/vagrant",
- mode => "${vagrant::params::configfile_mode}",
- owner => "${vagrant::params::configfile_owner}",
- group => "${vagrant::params::configfile_group}",
- ensure => present,
- require => File["puppet_debug_variables"],
- content => template("vagrant/variables_vagrant.erb"),
- }
-
-}
View
27 vagrant/manifests/disable.pp
@@ -1,27 +0,0 @@
-# Class: vagrant::disable
-#
-# Stops vagrant service and disables it at boot time
-# Removes the monitor checks, but not the other extended elements (backup, firewall)
-# Use vagrant::absent to remove everything
-#
-# Usage:
-# include vagrant::disable
-#
-class vagrant::disable inherits vagrant {
-
- require vagrant::params
-
- Service["vagrant"] {
- ensure => "stopped" ,
- enable => "false",
- }
-
- # Remove relevant monitor, backup, firewall entries
- if $monitor == "yes" { include vagrant::monitor::absent }
- # if $backup == "yes" { include vagrant::backup::absent }
- # if $firewall == "yes" { include vagrant::firewall::absent }
-
- # Include debug class is debugging is enabled ($debug=yes)
- if ( $debug == "yes" ) or ( $debug == true ) { include vagrant::debug }
-
-}
View
13 vagrant/manifests/disableboot.pp
@@ -1,13 +0,0 @@
-# Class: vagrant::disableboot
-#
-# This class disables vagrant startup at boot time but doesn't check if the service is running
-# Useful when the service is started but another applications (such as a Cluster suite)
-#
-# Usage:
-# include vagrant::disableboot
-#
-class vagrant::disableboot inherits vagrant {
- Service["vagrant"] {
- enable => "false",
- }
-}
View
54 vagrant/manifests/environment.pp
@@ -1,54 +0,0 @@
-define vagrant::environment (
- $user,
- $puppet_manifest_file='vagrant/puppet/site.pp',
- $puppet_server=$puppet_server
-) {
- require vagrant
- require vagrant::params
-
- file { "${vagrant::params::basedir}/${name}":
- ensure => directory,
- owner => "${user}",
- require => File["${vagrant::params::basedir}"],
- }
-
- file { "${vagrant::params::basedir}/${name}/manifests":
- ensure => directory,
- owner => "${user}",
- require => File["${vagrant::params::basedir}/${name}"],
- }
-
- file { "${vagrant::params::basedir}/${name}/manifests/site.pp":
- ensure => present,
- owner => "${user}",
- content => template("$puppet_manifest_file"),
- require => File["${vagrant::params::basedir}/${name}/manifests"],
- }
-
- file { "${vagrant::params::basedir}/${name}/manifests/puppet.conf.erb":
- ensure => present,
- owner => "${user}",
- content => template("vagrant/puppet/puppet.conf.erb"),
- require => File["${vagrant::params::basedir}/${name}/manifests"],
- }
-
-
- concat { "${vagrant::params::basedir}/${name}/Vagrantfile":
- mode => "644",
- owner => "${user}",
- require => File["${vagrant::params::basedir}/${name}"],
- }
-
- concat::fragment{ "Vagrantfile_HEADER_${name}":
- target => "${vagrant::params::basedir}/${name}/Vagrantfile",
- content => template("vagrant/concat/Vagrantfile_HEADER.erb"),
- order => "1",
- }
-
- concat::fragment{ "Vagrantfile_FOOTER_${name}":
- target => "${vagrant::params::basedir}/${name}/Vagrantfile",
- content => template("vagrant/concat/Vagrantfile_FOOTER.erb"),
- order => "99",
- }
-
-}
View
49 vagrant/manifests/init.pp
@@ -1,49 +0,0 @@
-#
-# Class: vagrant
-#
-# Manages vagrant.
-# Include it to install vagrant
-#
-# Usage:
-# include vagrant
-#
-class vagrant {
-
- # Load the variables used in this module. Check the params.pp file
- require vagrant::params
-
- # Basic Package - Service - Configuration file management
- package { "vagrant":
- name => "${vagrant::params::packagename}",
- ensure => present,
- provider => gem,
- }
- # Note: On Centos/Rhel 6 you need installed ruby-devel and gcc
-
- file { "vagrant_addpath":
- path => "/etc/profile.d/vagrant.sh",
- mode => 755,
- content => "#!/bin/sh\nexport PATH=\$PATH:${vagrant::params::binpath}\n",
- }
-
- file { "vagrant_basedir":
- path => "${vagrant::params::basedir}",
- mode => 755,
- ensure => directory,
- }
-
- # Include OS specific subclasses, if necessary
- case $operatingsystem {
- default: { }
- }
-
- # Include project specific class if $my_project is set
- if $my_project { include "vagrant::${my_project}" }
-
- # Include extended classes, if relevant variables are defined
- if $puppi == "yes" { include vagrant::puppi }
-
- # Include debug class is debugging is enabled ($debug=yes)
- if ( $debug == "yes" ) or ( $debug == true ) { include vagrant::debug }
-
-}
View
180 vagrant/manifests/params.pp
@@ -1,180 +0,0 @@
-# Class: vagrant::params
-#
-class vagrant::params {
-
-## DEFAULTS FOR VARIABLES USERS CAN SET
- $basedir = $vagrant_basedir ? {
- '' => "/opt/vagrant",
- default => "${vagrant_basedir}",
- }
-
- $binpath = $operatingsystem ? {
- default => "/var/lib/gems/1.8/bin",
- }
-
-
-## MODULE INTERNAL VARIABLES
- $packagename = $operatingsystem ? {
- default => "vagrant",
- }
-
- $processname = $operatingsystem ? {
- default => "vagrant",
- }
-
- # Used by backup class - Provide the file name, if there's no dedicated dir
- $logdir = $operatingsystem ? {
- default => "/var/log/vagrant",
- }
-
-
-
-## DEFAULTS FOR MONITOR CLASS
- # How the monitor server refers to the monitor target
- $monitor_target_real = $vagrant_monitor_target ? {
- '' => $monitor_target ? {
- '' => "${fqdn}",
- default => $monitor_target,
- },
- default => "$vagrant_monitor_target",
- }
-
- # BaseUrl to access this service
- $monitor_baseurl_real = $vagrant_monitor_baseurl ? {
- '' => $monitor_baseurl ? {
- '' => "http://${fqdn}",
- default => $monitor_baseurl,
- },
- default => "${vagrant_monitor_baseurl}",
- }
-
- # Pattern to look for in the URL defined in vagrant::monitor class
- $monitor_url_pattern = $vagrant_monitor_url_pattern ? {
- '' => "OK",
- default => "${vagrant_monitor_url_pattern}",
- }
-
- # If vagrant port monitoring is enabled
- $monitor_port_enable = $vagrant_monitor_port ? {
- '' => $monitor_port ? {
- '' => false,
- default => $monitor_port,
- },
- default => $vagrant_monitor_port,
- }
-
- # If vagrant url monitoring is enabled
- $monitor_url_enable = $vagrant_monitor_url ? {
- '' => $monitor_url ? {
- '' => false,
- default => $monitor_url,
- },
- default => $vagrant_monitor_url,
- }
-
- # If vagrant process monitoring is enabled
- $monitor_process_enable = $vagrant_monitor_process ? {
- '' => $monitor_process ? {
- '' => false,
- default => $monitor_process,
- },
- default => $vagrant_monitor_process,
- }
-
- # If vagrant plugin monitoring is enabled
- $monitor_plugin_enable = $vagrant_monitor_plugin ? {
- '' => $monitor_plugin ? {
- '' => false,
- default => $monitor_plugin,
- },
- default => $vagrant_monitor_plugin,
- }
-
-## DEFAULTS FOR BACKUP CLASS
-# These are settings that influence the (optional) vagrant::backup class
-# You can define these variables or leave the defaults
-
- # How the backup server refers to the backup target
- $backup_target_real = $vagrant_backup_target ? {
- '' => $backup_target ? {
- '' => "${fqdn}",
- default => $backup_target,
- },
- default => "$vagrant_backup_target",
- }
-
- # Frequency of backups
- $backup_frequency = $vagrant_backup_frequency ? {
- '' => "daily",
- default => "$vagrant_backup_frequency",
- }
-
- # If vagrant data have to be backed up
- $backup_data_enable = $vagrant_backup_data ? {
- '' => $backup_data ? {
- '' => false,
- default => $backup_data,
- },
- default => $vagrant_backup_data,
- }
-
- # If vagrant logs have to be backed up
- $backup_log_enable = $vagrant_backup_log ? {
- '' => $backup_log ? {
- '' => false,
- default => $backup_log,
- },
- default => $vagrant_backup_log,
- }
-
-
-## DEFAULTS FOR FIREWALL CLASS
-# These are settings that influence the (optional) vagrant::firewall class
-# You can define these variables or leave the defaults
-
- # Source IPs that can access this service - Use iptables friendly format
- $firewall_source_real = $vagrant_firewall_source ? {
- '' => $firewall_source ? {
- '' => "0.0.0.0/0",
- default => $firewall_source,
- },
- default => "$vagrant_firewall_source",
- }
-
- # Destination IP to use for this host (Default facter's $ipaddress)
- $firewall_destination_real = $vagrant_firewall_destination ? {
- '' => $firewall_destination ? {
- '' => "${ipaddress}",
- default => $firewall_destination,
- },
- default => "$vagrant_firewall_destination",
- }
-
- # If firewall filter is enabled
- $firewall_enable = $vagrant_firewall_enable ? {
- '' => $firewall_enable ? {
- '' => false,
- default => $firewall_enable,
- },
- default => $vagrant_firewall_enable,
- }
-
-## FILE SERVING SOURCE
-# Sets the correct source for static files
-# In order to provide files from different sources without modifying the module
-# you can override the default source path setting the variable $base_source
-# Ex: $base_source="puppet://ip.of.fileserver" or $base_source="puppet://$servername/myprojectmodule"
-# What follows automatically manages the new source standard (with /modules/) from 0.25
-
- case $base_source {
- '': {
- $general_base_source = $puppetversion ? {
- /(^0.25)/ => "puppet:///modules",
- /(^0.)/ => "puppet://$servername",
- default => "puppet:///modules",
- }
- }
- default: { $general_base_source=$base_source }
- }
-
-}
View
28 vagrant/manifests/puppi.pp
@@ -1,28 +0,0 @@
-# Class: vagrant::puppi
-#
-# This class manages the puppi extensions for the vagrant module
-# It's automatically included and used if $puppi=yes
-#
-class vagrant::puppi {
-
- puppi::info::module { "vagrant":
- packagename => "${vagrant::params::packagename}",
- servicename => "${vagrant::params::servicename}",
- processname => "${vagrant::params::processname}",
- configfile => "${vagrant::params::configfile}",
- configdir => "${vagrant::params::configdir}",
- pidfile => "${vagrant::params::pidfile}",
- datadir => "${vagrant::params::datadir}",
- logdir => "${vagrant::params::logdir}",
- protocol => "${vagrant::params::protocol}",
- port => "${vagrant::params::port}",
- description => "What Puppet knows about vagrant" ,
- # run => "vagrant -V###",
- }
-
- puppi::log { "vagrant":
- description => "Logs of vagrant" ,
- log => "${vagrant::params::logdir}",
- }
-
-}
View
47 vagrant/manifests/vm.pp
@@ -1,47 +0,0 @@
-# Define: vagrant::vm
-#
-# Inserts a vm in a vagrant environment
-#
-# Parameters:
-#
-# TODO:
-# - Solve limit of single forward port and share per vm
-# - Add vm configs settings
-#
-# Usage:
-# You have to define at least one vagrant::environment and there place a
-# Vagrantfile populated with one or multiple VMs
-# vagrant::environment { "test42": user => "al" }
-# vagrant::vm { "test-lucid64": environment => "test42" , box => "lucid64" , box_url => "http://files.vagrantup.com/lucid64.box" }
-#
-#
-define vagrant::vm (
- $environment,
- $box="base",
- $box_url="",
- $forward_name="",
- $forward_hostport="",
- $forward_guestport="",
- $share_name="",
- $share_hostdir="",
- $share_guestmount="",
- $network="",
- $boot_mode="",
- $provision="",
- $puppet_server="$puppet_server",
- $puppet_node="$fqdn",
- $chef_orgname="",
- $order="50",
- $ensure="present" ) {
-
- include vagrant::params
- include concat::setup
-
- concat::fragment{ "Vagrantfile_vm_$environment_$name":
- target => "${vagrant::params::basedir}/${environment}/Vagrantfile",
- content => template("vagrant/concat/Vagrantfile_vm.erb"),
- order => $order,
- ensure => $ensure,
- }
-
-}
View
4 vagrant/templates/concat/Vagrantfile_FOOTER.erb
@@ -1,4 +0,0 @@
-
-end
-# include_vagrantfile = File.expand_path("../include/_Vagrantfile", __FILE__)
-# load include_vagrantfile if File.exist?(include_vagrantfile)
View
3 vagrant/templates/concat/Vagrantfile_HEADER.erb
@@ -1,3 +0,0 @@
-# File Managed by Puppet
-Vagrant::Config.run do |config|
-
View
32 vagrant/templates/concat/Vagrantfile_vm.erb
@@ -1,32 +0,0 @@
- config.vm.define :<%= name %> do |<%= name %>_config|
- <%= name %>_config.vm.box = "<%= box %>"
-<% if forward_name != '' -%>
- <%= name %>_config.vm.forward_port("<%= forward_name %>", <%= forward_guestport %>, <%= forward_hostport %>)
-<% end -%>
-<% if network != '' -%>
- <%= name %>_config.vm.network "<%= network %>"
-<% end -%>
-<% if box_url != '' -%>
- <%= name %>_config.vm.box_url = "<%= box_url %>"
-<% end -%>
-<% if share_name != '' -%>
- <%= name %>_config.vm.share_folder "<%= share_name %>", "<%= share_guestmount %>", "<%= share_hostdir %>"
-<% end -%>
-<% if boot_mode == 'gui' -%>
- <%= name %>_config.vm.boot_mode = :gui
-<% end -%>
-<% if provision == 'puppet' -%>
- <%= name %>_config.vm.provision :puppet do |puppet|
-# puppet.manifests_path = "manifests"
- puppet.manifest_file = "site.pp"
-# puppet.puppet_server = "<%= puppet_server %>"
-# puppet.puppet_node = "<%= puppet_node %>"
- end
-<% end -%>
-<% if provision == 'chef_server' -%>
- <%= name %>_config.vm.provision :chef_server do |chef|
- chef.chef_server_url = "https://api.opscode.com/organizations/<%= chef_orgname %>"
- chef.validation_key_path = "<%= chef_orgname %>-validator.pem"
- end
-<% end -%>
- end
View
24 vagrant/templates/puppet/puppet.conf.erb
@@ -1,24 +0,0 @@
-# File managed by Puppet
-
-[main]
-vardir = /var/lib/puppet
-logdir = /var/log/puppet
-rundir = /var/run/puppet
-ssldir = $vardir/ssl
-# Report Translactions to Master (or separated report) server
-report = true
-reportserver = <%= puppet_server %>
-summarize = true
-# trace = true
-usecacheonfailure = true
-
-[agent]
-pluginsync = true
-#pluginsource = puppet://$server/plugins
-#plugindest = $vardir/lib/plugins
-#factpath = $vardir/lib/puppet/facter
-# listen = true
-
-runinterval = 300
-
-server = <%= puppet_server %>
View
11 vagrant/templates/puppet/site.pp
@@ -1,11 +0,0 @@
- file { "puppet.conf":
- path => "/etc/puppet/puppet.conf",
- ensure => present,
- content => template("puppet.conf.erb"),
- notify => Service["puppet"],
- }
-
- service { puppet:
- ensure => running,
- enable => true,
- }
View
49 vagrant/templates/variables_vagrant.erb
@@ -1,49 +0,0 @@
-# File Managed By Puppet
-
-These are the variables used by the module vagrant
-
-User variables (unfiltered):
-# $vagrant_server = <%= scope.lookupvar('vagrant_server') %>
-
-User variables (after params.pp filter):
-# $vagrant::params::server = <%= scope.lookupvar('vagrant::params::server') %>
-
-General internal variables:
-$vagrant::params::packagename = <%= scope.lookupvar('vagrant::params::packagename') %>
-$vagrant::params::servicename = <%= scope.lookupvar('vagrant::params::servicename') %>
-$vagrant::params::processname = <%= scope.lookupvar('vagrant::params::processname') %>
-$vagrant::params::hasstatus = <%= scope.lookupvar('vagrant::params::hasstatus') %>
-$vagrant::params::configfile = <%= scope.lookupvar('vagrant::params::configfile') %>
-$vagrant::params::configfile_mode = <%= scope.lookupvar('vagrant::params::configfile_mode') %>
-$vagrant::params::configfile_owner = <%= scope.lookupvar('vagrant::params::configfile_owner') %>
-$vagrant::params::configfile_group = <%= scope.lookupvar('vagrant::params::configfile_group') %>
-$vagrant::params::configdir = <%= scope.lookupvar('vagrant::params::configdir') %>
-$vagrant::params::initconfigfile = <%= scope.lookupvar('vagrant::params::initconfigfile') %>
-$vagrant::params::pidfile = <%= scope.lookupvar('vagrant::params::pidfile') %>
-$vagrant::params::datadir = <%= scope.lookupvar('vagrant::params::datadir') %>
-$vagrant::params::logdir = <%= scope.lookupvar('vagrant::params::logdir') %>
-$vagrant::params::protocol = <%= scope.lookupvar('vagrant::params::protocol') %>
-$vagrant::params::port = <%= scope.lookupvar('vagrant::params::port') %>
-
-Variables used by monitor class:
-$vagrant::params::monitor_target_real = <%= scope.lookupvar('vagrant::params::monitor_target_real') %> ( Set with $vagrant_monitor_target )
-$vagrant::params::monitor_baseurl_real = <%= scope.lookupvar('vagrant::params::monitor_baseurl_real') %> ( Set with $vagrant_monitor_baseurl )
-$vagrant::params::monitor_url_pattern = <%= scope.lookupvar('vagrant::params::monitor_url_pattern') %> ( Set with $vagrant_monitor_url_pattern )
-$vagrant::params::monitor_port_enable = <%= scope.lookupvar('vagrant::params::monitor_port_enable') %> ( Set with $vagrant_monitor_port )
-$vagrant::params::monitor_url_enable = <%= scope.lookupvar('vagrant::params::monitor_url_enable') %> ( Set with $vagrant_monitor_url )
-$vagrant::params::monitor_process_enable = <%= scope.lookupvar('vagrant::params::monitor_process_enable') %> ( Set with $vagrant_monitor_process )
-$vagrant::params::monitor_plugin_enable = <%= scope.lookupvar('vagrant::params::monitor_plugin_enable') %> ( Set with $vagrant_monitor_plugin )
-
-Variables used by backup class:
-$vagrant::params::backup_target_real = <%= scope.lookupvar('vagrant::params::backup_target_real') %> ( Set with $vagrant_backup_target )
-$vagrant::params::backup_frequency = <%= scope.lookupvar('vagrant::params::backup_frequency') %> ( Set with $vagrant_backup_frequency )
-$vagrant::params::backup_data_enable = <%= scope.lookupvar('vagrant::params::backup_data_enable') %> ( Set with $vagrant_backup_data )
-$vagrant::params::backup_log_enable = <%= scope.lookupvar('vagrant::params::backup_log_enable') %> ( Set with $vagrant_backup_log )
-
-Variables used by firewall class:
-$vagrant::params::firewall_source_real = <%= scope.lookupvar('vagrant::params::firewall_source_real') %> ( Set with $vagrant_firewall_source )
-$vagrant::params::firewall_destination_real = <%= scope.lookupvar('vagrant::params::firewall_destination_real') %> ( Set with $vagrant_firewall_destination )
-$vagrant::params::firewall_enable = <%= scope.lookupvar('vagrant::params::firewall_destination_real') %> ( Set with $vagrant_firewall_enable )
-
-Module base source for static files:
-$vagrant::params::general_base_source = <%= scope.lookupvar('vagrant::params::general_base_source') %> ( Set with $base_source )
View
1 vagrant/tests/absent.pp
@@ -1 +0,0 @@
-include vagrant::absent
View
1 vagrant/tests/backup.pp
@@ -1 +0,0 @@
-include vagrant::backup
View
1 vagrant/tests/debug.pp
@@ -1 +0,0 @@
-include vagrant::debug
View
1 vagrant/tests/disable.pp
@@ -1 +0,0 @@
-include vagrant::disable
View
1 vagrant/tests/disableboot.pp
@@ -1 +0,0 @@
-include vagrant::disableboot
View
1 vagrant/tests/firewall.pp
@@ -1 +0,0 @@
-include vagrant::firewall
View
1 vagrant/tests/init.pp
@@ -1 +0,0 @@
-include vagrant
View
1 vagrant/tests/monitor.pp
@@ -1 +0,0 @@
-include vagrant::monitor

0 comments on commit 194a372

Please sign in to comment.