Saltstack Official Apt-Cacher Formula
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

config_spec.rb 532B

1234567891011121314151617
  1. control 'AptCacherNG configuration' do
  2. title 'should match desired lines'
  3. describe file('/etc/apt-cacher-ng/zzz_acng.conf') do
  4. # Default config
  5. its('content') { should include "BindAddress: 0.0.0.0" }
  6. # Custom config
  7. its('content') { should include "Port: 9999" }
  8. end
  9. describe file('/etc/apt/apt.conf.d/80proxy') do
  10. # Default config
  11. its('content') { should include 'Acquire::http::Proxy "http://localhost:9999";' }
  12. its('content') { should include 'Acquire::https::Proxy "DIRECT";' }
  13. end
  14. end