Make apt.conf.d/proxy world readable and add a newline
This commit is contained in:
parent
1853951c0f
commit
eb40a7ae78
2 changed files with 5 additions and 2 deletions
|
@ -128,8 +128,11 @@ Package: bogus-package\n",
|
||||||
file { 'configure-apt-proxy':
|
file { 'configure-apt-proxy':
|
||||||
ensure => $proxy_set,
|
ensure => $proxy_set,
|
||||||
path => "${apt_conf_d}/proxy",
|
path => "${apt_conf_d}/proxy",
|
||||||
content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";",
|
content => "Acquire::http::Proxy \"http://${proxy_host}:${proxy_port}\";\n",
|
||||||
notify => Exec['apt_update'],
|
notify => Exec['apt_update'],
|
||||||
|
mode => '0644',
|
||||||
|
owner => root,
|
||||||
|
group => root,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Need anchor to provide containment for dependencies.
|
# Need anchor to provide containment for dependencies.
|
||||||
|
|
|
@ -164,7 +164,7 @@ describe 'apt', :type => :class do
|
||||||
if param_hash[:proxy_host]
|
if param_hash[:proxy_host]
|
||||||
should contain_file('configure-apt-proxy').with(
|
should contain_file('configure-apt-proxy').with(
|
||||||
'path' => '/etc/apt/apt.conf.d/proxy',
|
'path' => '/etc/apt/apt.conf.d/proxy',
|
||||||
'content' => "Acquire::http::Proxy \"http://#{param_hash[:proxy_host]}:#{param_hash[:proxy_port]}\";",
|
'content' => "Acquire::http::Proxy \"http://#{param_hash[:proxy_host]}:#{param_hash[:proxy_port]}\";\n",
|
||||||
'notify' => "Exec[apt_update]"
|
'notify' => "Exec[apt_update]"
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue