Skip to content

Commit 60a1023

Browse files
committed
Fix braces bug and remove Bolt GH-1244 workaround
1 parent 577150c commit 60a1023

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

plans/action/configure.pp

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
run_task('peadm::mkdir_p_file', peadm::flatten_compact([
5050
$master_replica_target,
5151
$compiler_targets,
52-
)],
52+
]),
5353
path => '/etc/puppetlabs/puppet/hiera.yaml',
5454
owner => 'root',
5555
group => 'root',
@@ -59,17 +59,6 @@
5959

6060
# Set up the console node groups to configure the various hosts in their roles
6161

62-
# Pending resolution of Bolt GH-1244, Target objects and their methods are
63-
# not accessible inside apply() blocks. Work around the limitation for now
64-
# by using string variables calculated outside the apply block. The
65-
# commented-out values should be used once GH-1244 is resolved.
66-
67-
# WORKAROUND: GH-1244
68-
$master_host_string = $master_target.peadm::target_name()
69-
$master_replica_host_string = $master_replica_target.peadm::target_name()
70-
$puppetdb_database_host_string = $puppetdb_database_target.peadm::target_name()
71-
$puppetdb_database_replica_host_string = $puppetdb_database_replica_target.peadm::target_name()
72-
7362
apply($master_target) {
7463
# Necessary to give the sandboxed Puppet executor the configuration
7564
# necessary to connect to the classifier`
@@ -83,11 +72,10 @@
8372
}
8473

8574
class { 'peadm::setup::node_manager':
86-
# WORKAROUND: GH-1244
87-
master_host => $master_host_string, # $master_target.peadm::target_name(),
88-
master_replica_host => $master_replica_host_string, # $master_replica_target.peadm::target_name(),
89-
puppetdb_database_host => $puppetdb_database_host_string, # $puppetdb_database_target.peadm::target_name(),
90-
puppetdb_database_replica_host => $puppetdb_database_replica_host_string, # $puppetdb_database_replica_target.peadm::target_name(),
75+
master_host => $master_target.peadm::target_name(),
76+
master_replica_host => $master_replica_target.peadm::target_name(),
77+
puppetdb_database_host => $puppetdb_database_target.peadm::target_name(),
78+
puppetdb_database_replica_host => $puppetdb_database_replica_target.peadm::target_name(),
9179
compiler_pool_address => $compiler_pool_address,
9280
require => File['node_manager.yaml'],
9381
}

0 commit comments

Comments
 (0)