|
62 | 62 | fi |
63 | 63 | SCRIPT |
64 | 64 |
|
65 | | - it { |
66 | | - is_expected.to contain_exec('import-GPG-KEY-puppet-20250406') |
67 | | - .with({ |
68 | | - 'path' => '/bin:/usr/bin:/sbin:/usr/sbin', |
69 | | - 'command' => "/bin/bash -c '#{script}' import /root/.gnupg /etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406", |
70 | | - 'unless' => "/bin/bash -c '#{script}' check /root/.gnupg /etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406", |
71 | | - 'require' => 'File[/etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406]', |
72 | | - 'logoutput' => 'on_failure', |
73 | | - }) |
74 | | - } |
75 | | - |
76 | 65 | it { |
77 | 66 | is_expected.to contain_exec('import-GPG-KEY-puppet') |
78 | 67 | .with({ |
|
103 | 92 | end |
104 | 93 | end |
105 | 94 |
|
106 | | - it { |
107 | | - is_expected.to contain_file('/etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406') |
108 | | - .with({ |
109 | | - 'ensure' => 'file', |
110 | | - 'owner' => '0', |
111 | | - 'group' => '0', |
112 | | - 'mode' => '0644', |
113 | | - 'source' => 'puppet:///modules/puppet_agent/GPG-KEY-puppet-20250406', |
114 | | - }) |
115 | | - } |
116 | | - |
117 | 95 | it { |
118 | 96 | is_expected.to contain_file('/etc/pki/rpm-gpg/RPM-GPG-KEY-puppet') |
119 | 97 | .with({ |
|
154 | 132 | 'baseurl' => "http://yum.puppet.com/puppet5/#{urlbit.gsub('/f', '/')}/#{arch}", |
155 | 133 | 'enabled' => 'true', |
156 | 134 | 'gpgcheck' => '1', |
157 | | - 'gpgkey' => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet\n file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406", |
| 135 | + 'gpgkey' => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet', |
158 | 136 | }) |
159 | 137 | } |
160 | 138 | end |
|
215 | 193 | 'baseurl' => "https://master.example.vm:8140/packages/2000.0.0/#{repodir}", |
216 | 194 | 'enabled' => 'true', |
217 | 195 | 'gpgcheck' => '1', |
218 | | - 'gpgkey' => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet\n file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet-20250406", |
| 196 | + 'gpgkey' => 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-puppet', |
219 | 197 | 'sslcacert' => '/etc/puppetlabs/puppet/ssl/certs/ca.pem', |
220 | 198 | 'sslclientcert' => '/etc/puppetlabs/puppet/ssl/certs/foo.example.vm.pem', |
221 | 199 | 'sslclientkey' => '/etc/puppetlabs/puppet/ssl/private_keys/foo.example.vm.pem', |
|
0 commit comments