Skip to content

Commit 549cb44

Browse files
committed
refresh keys after importing them
1 parent 2a81ffa commit 549cb44

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

manifests/init.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@
119119
command => 'zypper --non-interactive --gpg-auto-import-keys ar http://download.opensuse.org/distribution/leap/15.6/repo/oss/ opensuse-leap-fallback',
120120
unless => "zypper lr | grep -q '|'",
121121
logoutput => true,
122+
before => Package['java'],
123+
}
124+
125+
exec { 'Refresh zypper repos':
126+
path => '/bin:/usr/bin:/sbin:/usr/sbin',
127+
command => 'zypper --non-interactive --gpg-auto-import-keys refresh',
128+
refreshonly => true,
129+
subscribe => Exec['Add openSUSE repo if no repos exist'],
130+
before => Package['java'],
122131
}
123132
}
124133

0 commit comments

Comments
 (0)