File tree Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Expand file tree Collapse file tree 2 files changed +22
-17
lines changed Original file line number Diff line number Diff line change 9
9
$puppet_server = get_targets(' *' ).filter |$n | { $n .vars[' role' ] == ' ntpserver' }
10
10
$puppet_agent = get_targets(' *' ).filter |$n | { $n .vars[' role' ] == ' ntpclient' }
11
11
12
+ # Trigger PE to configure the master and stage agent packages
13
+ run_command(
14
+ ' /opt/puppetlabs/puppet/bin/puppet infrastructure configure' ,
15
+ $puppet_server ,
16
+ )
17
+
18
+ # Apply the repo class for Ubuntu 22.04
19
+ run_command(
20
+ ' puppet apply -e "include pe_repo::platform::ubuntu_2204_amd64"' ,
21
+ $puppet_server ,
22
+ )
23
+
12
24
# install pe server
13
25
run_plan(
14
26
' deploy_pe::provision_agent' ,
Original file line number Diff line number Diff line change 1
- # @summary Install PE Server
2
- #
3
- # Install PE Server
4
- #
5
- # @example
6
- # ntp::acceptance::pe_server
7
1
plan ntp::acceptance::pe_server(
8
- Optional[String] $version = ' 2021.7.9' ,
9
- Optional[Hash] $pe_settings = { password => ' puppetlabs' }
2
+ TargetSpec $pe_master = get_targets(' pe_master' ),
10
3
) {
11
- # identify pe server node
12
- $puppet_server = get_targets(' *' ).filter |$n | { $n .vars[' role' ] == ' ntpserver' }
4
+ run_plan(' deploy_pe::provision_master' , targets => $pe_master )
13
5
14
- # install pe server
15
- run_plan(
16
- ' deploy_pe::provision_master' ,
17
- $puppet_server ,
18
- ' version' => $version ,
19
- ' pe_settings' => $pe_settings
20
- )
6
+ apply($pe_master ) {
7
+ class { 'pe_repo' :
8
+ enable_bulk_pluginsync => false ,
9
+ enable_windows_bulk_pluginsync => false ,
10
+ }
11
+ }
12
+
13
+ run_command(' puppet apply -e "include pe_repo::platform::ubuntu_2204_amd64"' , $pe_master )
21
14
}
You can’t perform that action at this time.
0 commit comments