Skip to content

Commit c7e1957

Browse files
committed
update pe_server
1 parent 7949f72 commit c7e1957

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

plans/acceptance/pe_server.pp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,26 @@
88
Optional[String] $version = '2023.8.1',
99
Optional[Hash] $pe_settings = { password => 'Puppetlabs123!' }
1010
) {
11-
#identify pe server node
12-
$puppet_server = get_targets('*').filter |$n| { $n.vars['role'] == 'ntpserver' }
11+
# Identify PE server node
12+
$puppet_server = get_targets('*').filter |$n| { $n.vars['role'] == 'ntpserver' }
1313

14-
# install pe server
14+
# Install PE server
1515
run_plan(
1616
'deploy_pe::provision_master',
1717
$puppet_server,
1818
'version' => $version,
1919
'pe_settings' => $pe_settings
2020
)
21+
22+
# Apply the correct pe_repo class for Ubuntu 22.04
23+
run_command(
24+
'puppet apply -e "include pe_repo::platform::ubuntu_2204_amd64"',
25+
$puppet_server,
26+
)
27+
28+
# Trigger agent package staging
29+
run_command(
30+
'puppet agent -t',
31+
$puppet_server,
32+
)
2133
}

0 commit comments

Comments
 (0)