|
19 | 19 | $manage_dbserver = true
|
20 | 20 | $manage_database = true
|
21 | 21 |
|
22 |
| - if $::osfamily =~ /RedHat|Debian/ { |
| 22 | + if fact('os.family') =~ /RedHat|Debian/ { |
23 | 23 | $manage_pg_repo = true
|
24 | 24 | } else {
|
25 | 25 | $manage_pg_repo = false
|
|
41 | 41 | $jdbc_ssl_properties = ''
|
42 | 42 | $database_validate = true
|
43 | 43 | $database_max_pool_size = undef
|
44 |
| - $puppetdb_server = $::fqdn |
| 44 | + $puppetdb_server = fact('networking.fqdn') |
45 | 45 |
|
46 | 46 | # These settings manage the various auto-deactivation and auto-purge settings
|
47 | 47 | $node_ttl = '7d'
|
|
86 | 86 | $masterless = false
|
87 | 87 |
|
88 | 88 | if !($puppetdb_version in ['latest','present','absent']) and versioncmp($puppetdb_version, '3.0.0') < 0 {
|
89 |
| - case $::osfamily { |
| 89 | + case fact('os.family') { |
90 | 90 | 'RedHat', 'Suse', 'Archlinux','Debian': {
|
91 | 91 | $etcdir = '/etc/puppetdb'
|
92 | 92 | $vardir = '/var/lib/puppetdb'
|
|
109 | 109 | $puppet_service_name = 'puppetmaster'
|
110 | 110 | }
|
111 | 111 | default: {
|
112 |
| - fail("The fact 'osfamily' is set to ${::osfamily} which is not supported by the puppetdb module.") |
| 112 | + fail("The fact 'os.family' is set to ${fact('os.family')} which is not supported by the puppetdb module.") |
113 | 113 | }
|
114 | 114 | }
|
115 | 115 | $terminus_package = 'puppetdb-terminus'
|
116 | 116 | $test_url = '/v3/version'
|
117 | 117 | } else {
|
118 |
| - case $::osfamily { |
| 118 | + case fact('os.family') { |
119 | 119 | 'RedHat', 'Suse', 'Archlinux','Debian': {
|
120 | 120 | $etcdir = '/etc/puppetlabs/puppetdb'
|
121 | 121 | $puppet_confdir = pick($settings::confdir,'/etc/puppetlabs/puppet')
|
|
132 | 132 | $puppet_service_name = undef
|
133 | 133 | }
|
134 | 134 | default: {
|
135 |
| - fail("The fact 'osfamily' is set to ${::osfamily} which is not supported by the puppetdb module.") |
| 135 | + fail("The fact 'os.family' is set to ${fact('os.family')} which is not supported by the puppetdb module.") |
136 | 136 | }
|
137 | 137 | }
|
138 | 138 | $terminus_package = 'puppetdb-termini'
|
|
144 | 144 | $confdir = "${etcdir}/conf.d"
|
145 | 145 | $ssl_dir = "${etcdir}/ssl"
|
146 | 146 |
|
147 |
| - case $::osfamily { |
| 147 | + case fact('os.family') { |
148 | 148 | 'RedHat', 'Suse', 'Archlinux': {
|
149 | 149 | $puppetdb_user = 'puppetdb'
|
150 | 150 | $puppetdb_group = 'puppetdb'
|
|
166 | 166 | $puppetdb_initconf = undef
|
167 | 167 | }
|
168 | 168 | default: {
|
169 |
| - fail("The fact 'osfamily' is set to ${::osfamily} which is not supported by the puppetdb module.") |
| 169 | + fail("The fact 'os.family' is set to ${fact('os.family')} which is not supported by the puppetdb module.") |
170 | 170 | }
|
171 | 171 | }
|
172 | 172 |
|
|
0 commit comments