natemccurdy
09/23/2022, 1:30 AMPsrepository[PSGallery]{:name=>"PSGallery"}
you can refer to it as just Psrepository[PSGallery]
natemccurdy
09/23/2022, 1:30 AM.that_requires()
is a helper that extracts the name of the resource into a more easily referencable thing.natemccurdy
09/23/2022, 1:32 AMit do
<http://is_expected.to|is_expected.to> contain_package('powershell-yaml').with(
'ensure' => '0.4.3',
'provider' => 'windowspowershell',
'source' => 'PSGallery',
).that_requires('Psrepository[PSGallery]')
end
n3snah
09/23/2022, 1:37 AMSlackbot
09/23/2022, 3:52 AMSlackbot
09/23/2022, 6:13 AMsameer
09/23/2022, 6:15 AMsameer
09/23/2022, 6:34 AMmatt
09/23/2022, 7:27 AMmatt
09/23/2022, 7:28 AM<% unless @forwarders.empty? -%>
forwarders { <%= @forwarders.join('; ') %>; };
matt
09/23/2022, 7:29 AMmatt
09/23/2022, 7:30 AMmatt
09/23/2022, 7:32 AMmatt
09/23/2022, 7:34 AMSlackbot
09/23/2022, 7:34 AMmatt
09/23/2022, 7:47 AMSlackbot
09/23/2022, 8:03 AMSlackbot
09/23/2022, 10:24 AMPuli Hari Krishna
09/23/2022, 10:58 AMsameer
09/23/2022, 12:13 PMmatt
09/23/2022, 12:14 PMSlackbot
09/23/2022, 12:14 PMSlackbot
09/23/2022, 12:15 PMmatt
09/23/2022, 12:15 PMmatt
09/23/2022, 1:21 PMmatt
09/23/2022, 1:23 PMmatt
09/23/2022, 1:23 PMSlackbot
09/23/2022, 1:25 PMromgo
09/23/2022, 2:40 PMromgo
09/23/2022, 2:41 PMpackage { 'taniumclient':
name => $name_pck,
ensure => present,
provider => $provider,
source => "${puppet_tanium::install_path}/${package_name}",
require => File["${puppet_tanium::install_path}/${package_name}"],
}
where $name_pck has been defined for redhat and debian has taniumclient_7.4.7.1094-debian10_amd64.deb & TaniumClient-7.4.8.1054-1.rhe7.x86_64.rpm