File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 8
8
Optional[String] $version = ' 2023.8.1' ,
9
9
Optional[Hash] $pe_settings = { password => ' Puppetlabs123!' }
10
10
) {
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' }
13
13
14
- # install pe server
14
+ # Install PE server
15
15
run_plan(
16
16
' deploy_pe::provision_master' ,
17
17
$puppet_server ,
18
18
' version' => $version ,
19
19
' pe_settings' => $pe_settings
20
20
)
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
+ )
21
33
}
You can’t perform that action at this time.
0 commit comments