Skip to content

Commit

Permalink
use concatfragments.rb on AIX
Browse files Browse the repository at this point in the history
AIX find does not support the print0 option. It's basically the same as on Solaris:

Debug: Executing '/var/lib/puppet/concat/bin/concatfragments.sh -o "/var/lib/puppet/concat/_var_ossec_etc_ossec-agent.conf/fragments.concat.out" -d "/var/lib/puppet/concat/_var_ossec_etc_ossec-agent.conf" -t'
Debug: /Stage[main]/Ossec::Client/Concat[/var/ossec/etc/ossec-agent.conf]/Exec[concat_/var/ossec/etc/ossec-agent.conf]/unless: find: bad option -print0
  • Loading branch information
tosmi committed Nov 18, 2014
1 parent 708def1 commit 4fc1dfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/setup.pp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
# this goes smoothly, we should move towards completely eliminating the .sh
# version.
$script_name = $::osfamily? {
/(?i:(Windows|Solaris))/ => 'concatfragments.rb',
default => 'concatfragments.sh'
/(?i:(Windows|Solaris|AIX))/ => 'concatfragments.rb',
default => 'concatfragments.sh'
}

$script_path = "${concatdir}/bin/${script_name}"
Expand Down

0 comments on commit 4fc1dfc

Please sign in to comment.