|
64 | 64 | end |
65 | 65 |
|
66 | 66 | shared_context 'Debian 8' do |
67 | | - let :facts do |
68 | | - { |
69 | | - id: 'root', |
70 | | - kernel: 'Linux', |
71 | | - osfamily: 'Debian', |
72 | | - operatingsystem: 'Debian', |
73 | | - operatingsystemrelease: '8.0.0', |
74 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
75 | | - } |
76 | | - end |
| 67 | + let(:facts) { on_supported_os['debian-8-x86_64'] } |
77 | 68 | end |
78 | 69 |
|
79 | 70 | shared_context 'Ubuntu 14.04' do |
|
104 | 95 | end |
105 | 96 |
|
106 | 97 | shared_context 'RedHat 6' do |
107 | | - let :facts do |
108 | | - { |
109 | | - id: 'root', |
110 | | - kernel: 'Linux', |
111 | | - osfamily: 'RedHat', |
112 | | - operatingsystem: 'RedHat', |
113 | | - operatingsystemrelease: '6', |
114 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
115 | | - } |
116 | | - end |
| 98 | + let(:facts) { on_supported_os['redhat-6-x86_64'] } |
117 | 99 | end |
118 | 100 |
|
119 | 101 | shared_context 'RedHat 7' do |
120 | | - let :facts do |
121 | | - { |
122 | | - id: 'root', |
123 | | - kernel: 'Linux', |
124 | | - osfamily: 'RedHat', |
125 | | - operatingsystem: 'RedHat', |
126 | | - operatingsystemrelease: '7', |
127 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
128 | | - } |
129 | | - end |
| 102 | + let(:facts) { on_supported_os['redhat-7-x86_64'] } |
130 | 103 | end |
131 | 104 |
|
132 | 105 | shared_context 'RedHat 8' do |
133 | | - let :facts do |
134 | | - { |
135 | | - id: 'root', |
136 | | - kernel: 'Linux', |
137 | | - osfamily: 'RedHat', |
138 | | - operatingsystem: 'RedHat', |
139 | | - operatingsystemrelease: '8', |
140 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin', |
141 | | - } |
142 | | - end |
| 106 | + let(:facts) { on_supported_os['redhat-8-x86_64'] } |
143 | 107 | end |
144 | 108 |
|
145 | 109 | shared_context 'Fedora 17' do |
|
256 | 220 | end |
257 | 221 |
|
258 | 222 | shared_context 'SLES 12' do |
259 | | - let :facts do |
260 | | - { |
261 | | - osfamily: 'Suse', |
262 | | - operatingsystem: 'SLES', |
263 | | - operatingsystemrelease: '12', |
264 | | - id: 'root', |
265 | | - kernel: 'Linux', |
266 | | - path: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin', |
267 | | - } |
268 | | - end |
| 223 | + let(:facts) { on_supported_os['sles-12-x86_64'] } |
269 | 224 | end |
0 commit comments