Project

General

Profile

« Previous | Next » 

Revision 310e8878

Added by Marek Hulán almost 11 years ago

Convert multitype parameters to strings

Some parameters could be set to false or a string value. We prefer
consistent type so all such parameters are now forced to be string. In
case you want to indicate that the parameter should not be used you can
set it to undef.

Some documentation was added.

Change lookup to instance variables.

Make $server_external_nodes a real string

View differences:

manifests/init.pp
#
# $listen:: Should the puppet agent listen for connections.
# type:boolean
#
# $pluginsync:: Enable pluginsync.
# type:boolean
#
......
# using git_repo, by default a git describe approach
# will be installed.
#
# $foreman_url:: Foreman URL
#
# $facts:: Should foreman receive facts from puppet
# $server_facts:: Should foreman receive facts from puppet
# type:boolean
#
# $puppet_basedir:: Where is the puppet code base located
# $server_foreman_url:: Foreman URL
#
# $server_puppet_basedir:: Where is the puppet code base located
#
# $server_puppet_home:: Puppet var directory
#
# $puppet_home:: Puppet var directory
# $server_reports:: List of report types to include on the puppetmaster
#
# === Usage:
#
......
$server_puppet_basedir = $foreman::params::puppet_basedir
) inherits puppet::params {
validate_bool($listen)
validate_bool($pluginsync)
validate_bool($splay)
validate_bool($agent_noop)
validate_bool($server)
validate_bool($server_ca)
validate_bool($server_passenger)
validate_bool($server_git_repo)
validate_bool($server_service_fallback)
validate_bool($server_facts)
validate_string($server_external_nodes)
class { 'puppet::install': } ~>
class { 'puppet::config': } ->
Class['puppet']
......
require => Class['puppet::config'],
}
}
}

Also available in: Unified diff