(#12094) Replace name with path in file resources
When the name is used with a file resource, it becomes difficult to test the resource using rspec-puppet, as the name parameter gets aliased to path. So to maintain consistency between tests and manifests, this replaces all name parameters in file resources with the equivalent path parameter.
Šī revīzija ir iekļauta:
vecāks
f04eb5ab71
revīzija
0fb5f78379
3 mainīti faili ar 4 papildinājumiem un 4 dzēšanām
|
@ -29,7 +29,7 @@ class apt(
|
|||
package { "python-software-properties": }
|
||||
|
||||
file { "sources.list":
|
||||
name => "${apt::params::root}/sources.list",
|
||||
path => "${apt::params::root}/sources.list",
|
||||
ensure => present,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
@ -37,7 +37,7 @@ class apt(
|
|||
}
|
||||
|
||||
file { "sources.list.d":
|
||||
name => "${apt::params::root}/sources.list.d",
|
||||
path => "${apt::params::root}/sources.list.d",
|
||||
ensure => directory,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
|
|
@ -9,7 +9,7 @@ define apt::pin(
|
|||
include apt::params
|
||||
|
||||
file { "${name}.pref":
|
||||
name => "${apt::params::root}/preferences.d/${name}",
|
||||
path => "${apt::params::root}/preferences.d/${name}",
|
||||
ensure => file,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
|
|
@ -17,7 +17,7 @@ define apt::source(
|
|||
|
||||
|
||||
file { "${name}.list":
|
||||
name => "${apt::params::root}/sources.list.d/${name}.list",
|
||||
path => "${apt::params::root}/sources.list.d/${name}.list",
|
||||
ensure => file,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
|
Notiek ielāde…
Atsaukties uz šo jaunā problēmā