|
27 | 27 | # } |
28 | 28 | # |
29 | 29 | class puppet::server ( |
30 | | - $modulepath = ['$confdir/modules/site', '$confdir/env/$environment/dist'], |
31 | | - $manifest = '$confdir/modules/site/site.pp', |
32 | | - $environmentpath = undef, |
33 | | - $config_version_cmd = '/usr/bin/git --git-dir $confdir/environments/$environment/.git rev-parse --short HEAD 2>/dev/null || echo', |
34 | | - $storeconfigs = undef, |
35 | | - $report = true, |
36 | | - $reports = ['store', 'https'], |
37 | | - $reporturl = "http://${::fqdn}/reports", |
38 | | - $reportfrom = undef, |
39 | | - $servertype = 'unicorn', |
40 | | - $serverssl_protos = undef, |
41 | | - $serverssl_ciphers = undef, |
42 | | - $ca = false, |
| 30 | + $autosign = undef, |
43 | 31 | $bindaddress = '0.0.0.0', |
| 32 | + $ca = false, |
| 33 | + $config_version_cmd = '/usr/bin/git --git-dir $confdir/environments/$environment/.git rev-parse --short HEAD 2>/dev/null || echo', |
| 34 | + $dns_alt_names = undef, |
44 | 35 | $enc = '', |
45 | 36 | $enc_exec = '', |
46 | | - $servername = undef, |
47 | 37 | $ensure = 'present', |
48 | | - $parser = undef, |
49 | | - $gentoo_use = $puppet::params::master_use, |
| 38 | + $environmentpath = undef, |
50 | 39 | $gentoo_keywords = $puppet::params::master_keywords, |
| 40 | + $gentoo_use = $puppet::params::master_use, |
51 | 41 | $manage_package = true, |
52 | | - $dns_alt_names = undef, |
53 | | - $autosign = undef, |
| 42 | + $manifest = '$confdir/modules/site/site.pp', |
| 43 | + $modulepath = ['$confdir/modules/site', '$confdir/env/$environment/dist'], |
| 44 | + $parser = undef, |
| 45 | + $manage_puppetdb = undef, |
| 46 | + $report = true, |
| 47 | + $reportfrom = undef, |
| 48 | + $reports = ['store', 'https'], |
| 49 | + $reporturl = "http://${::fqdn}/reports", |
| 50 | + $servername = undef, |
| 51 | + $serverssl_ciphers = undef, |
| 52 | + $serverssl_protos = undef, |
| 53 | + $servertype = 'unicorn', |
| 54 | + $storeconfigs = undef, |
54 | 55 | ) inherits puppet::params { |
55 | 56 |
|
56 | 57 | $master = true |
|
104 | 105 | # --- |
105 | 106 | # Storeconfigs |
106 | 107 | if $storeconfigs { |
| 108 | + notify { 'storeconfigs is deprecated. Use manage_puppetdb setting.': } |
107 | 109 | class { 'puppet::storeconfig': |
108 | 110 | backend => $storeconfigs, |
109 | 111 | } |
110 | 112 | } |
111 | 113 |
|
| 114 | + # enable basic puppetdb using the puppetlabs-puppetdb module |
| 115 | + # this will also install postgresql |
| 116 | + # for more detailed control over puppetdb settings, use the puppetdb |
| 117 | + # module directly rather than having puppet-puppet include it. |
| 118 | + if $manage_puppetdb == true { |
| 119 | + include puppetdb |
| 120 | + include puppetdb::master::config |
| 121 | + } |
| 122 | + |
112 | 123 | } |
0 commit comments