Skip to content

Commit

Permalink
(MODULES-1700) Change the filebucketing behavior so static_compiler c…
Browse files Browse the repository at this point in the history
…an handle them
  • Loading branch information
woneill committed Apr 7, 2015
1 parent a0942af commit e34eac0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion manifests/fragment.pp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
if $backup {
warning('The $backup parameter to concat::fragment is deprecated and has no effect')
}
$my_backup = concat_getparam(Concat[$target], 'backup')
if $ensure == undef {
$my_ensure = concat_getparam(Concat[$target], 'ensure')
} else {
Expand Down Expand Up @@ -118,7 +119,7 @@
mode => $fragmode,
source => $source,
content => $content,
backup => false,
backup => $my_backup,
replace => true,
alias => "concat_fragment_${name}",
notify => Exec["concat_${target}"]
Expand Down
4 changes: 0 additions & 4 deletions manifests/setup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@
default => $script_path
}

File {
backup => false,
}

file { $script_path:
ensure => file,
owner => $default_owner,
Expand Down
6 changes: 3 additions & 3 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
HOSTS:
centos-64-x64:
centos-66-x64:
roles:
- master
platform: el-6-x86_64
box : centos-64-x64-vbox4210-nocm
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-64-x64-vbox4210-nocm.box
box : puppetlabs/centos-6.6-64-nocm
box_url : http://puppet-vagrant-boxes.puppetlabs.com/centos-6.6-64-nocm
hypervisor : vagrant
CONFIG:
type: git
4 changes: 0 additions & 4 deletions spec/unit/classes/concat_setup_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
:owner => 'root',
:group => 0,
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
})
end

Expand All @@ -32,7 +31,6 @@
:mode => '0755',
:owner => 'root',
:group => 0,
:backup => false,
})
end
end
Expand Down Expand Up @@ -71,7 +69,6 @@
:group => 0,
:mode => '0755',
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
})
end
end # on osfamily Solaris
Expand All @@ -95,7 +92,6 @@
:group => nil,
:mode => nil,
:source => 'puppet:///modules/concat/concatfragments.rb',
:backup => false,
})
end
end # on osfamily windows
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/defines/concat_fragment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
:source => p[:source],
:content => p[:content],
:alias => "concat_fragment_#{title}",
:backup => false,
:backup => 'puppet',
})
end
end
Expand Down

0 comments on commit e34eac0

Please sign in to comment.