Skip to content

Commit 7949f72

Browse files
committed
fix 3
1 parent de8a251 commit 7949f72

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

plans/acceptance/pe_agent.pp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,15 @@
99
$puppet_server = get_targets('*').filter |$n| { $n.vars['role'] == 'ntpserver' }
1010
$puppet_agent = get_targets('*').filter |$n| { $n.vars['role'] == 'ntpclient' }
1111

12-
# Stage agent packages for Ubuntu 22.04 on the master
12+
# Trigger PE to configure the master and stage agent packages
1313
run_command(
14-
'puppet infrastructure provision_agent --platform ubuntu-22.04-amd64',
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"',
1521
$puppet_server,
1622
)
1723

0 commit comments

Comments
 (0)