|
39 | 39 |
|
40 | 40 | # Set up the console node groups to configure the various hosts in their
|
41 | 41 | # roles
|
| 42 | + |
| 43 | + # Pending resolution of Bolt GH-1244, Target objects and their methods are |
| 44 | + # not accessible inside apply() blocks. Work around the limitation for now |
| 45 | + # by using string variables calculated outside the apply block. The |
| 46 | + # commented-out values should be used once GH-1244 is resolved. |
| 47 | + |
| 48 | + # WORKAROUND: GH-1244 |
| 49 | + $master_host_string = $master_target.pe_xl::target_host() |
| 50 | + $master_replica_host_string = $master_replica_target.pe_xl::target_host() |
| 51 | + $puppetdb_database_host_string = $puppetdb_database_target.pe_xl::target_host() |
| 52 | + $puppetdb_database_replica_host_string = $puppetdb_database_replica_target.pe_xl::target_host() |
| 53 | + |
42 | 54 | apply($master_target) {
|
43 | 55 | # Necessary to give the sandboxed Puppet executor the configuration
|
44 | 56 | # necessary to connect to the classifier`
|
|
47 | 59 | mode => '0644',
|
48 | 60 | path => Deferred('pe_xl::node_manager_yaml_location'),
|
49 | 61 | content => epp('pe_xl/node_manager.yaml.epp', {
|
50 |
| - server => $servername, |
| 62 | + server => $master_host_string, |
51 | 63 | }),
|
52 | 64 | }
|
53 | 65 |
|
54 | 66 | class { 'pe_xl::setup::node_manager':
|
55 |
| - master_host => $master_target.pe_xl::target_host(), |
56 |
| - master_replica_host => $master_replica_target.pe_xl::target_host(), |
57 |
| - puppetdb_database_host => $puppetdb_database_target.pe_xl::target_host(), |
58 |
| - puppetdb_database_replica_host => $puppetdb_database_replica_target.pe_xl::target_host(), |
| 67 | + # WORKAROUND: GH-1244 |
| 68 | + master_host => $master_host_string, # $master_target.pe_xl::target_host(), |
| 69 | + master_replica_host => $master_replica_host_string, # $master_replica_target.pe_xl::target_host(), |
| 70 | + puppetdb_database_host => $puppetdb_database_host_string, # $puppetdb_database_target.pe_xl::target_host(), |
| 71 | + puppetdb_database_replica_host => $puppetdb_database_replica_host_string, # $puppetdb_database_replica_target.pe_xl::target_host(), |
59 | 72 | compiler_pool_address => $compiler_pool_address,
|
60 | 73 | require => File['node_manager.yaml'],
|
61 | 74 | }
|
|
0 commit comments