summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-03-11 20:16:12 -0400
committerJames Shubin <james@shubin.ca>2014-03-16 22:39:07 -0400
commit595e33ca69c0224f233b461b4d55cb42c38695f9 (patch)
tree4a51ec0c784ff04ba225a76f0959877c3b28ecbe /lib/puppet/parser/functions
parent170780287dd99191d1ea908c78ce88489366c0e0 (diff)
downloadpuppet-gluster-595e33ca69c0224f233b461b4d55cb42c38695f9.tar.gz
puppet-gluster-595e33ca69c0224f233b461b4d55cb42c38695f9.tar.xz
puppet-gluster-595e33ca69c0224f233b461b4d55cb42c38695f9.zip
Remove algorithmic brick layout ordering that happens in the fact.
Since different brick layouts are now implemented, it makes sense to remove any remaining traces of the algorithmic work from the fact...
Diffstat (limited to 'lib/puppet/parser/functions')
-rw-r--r--lib/puppet/parser/functions/brick_layout_simple.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/brick_layout_simple.rb b/lib/puppet/parser/functions/brick_layout_simple.rb
index 7b3a6eb..96ef70d 100644
--- a/lib/puppet/parser/functions/brick_layout_simple.rb
+++ b/lib/puppet/parser/functions/brick_layout_simple.rb
@@ -15,6 +15,12 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# NOTE:
+# sort the bricks in a logical manner... i think this is the optimal algorithm,
+# but i'd be happy if someone thinks they can do better! this assumes that the
+# bricks and hosts are named in a logical manner. alphanumeric sorting is used
+# to determine the default ordering...
+
module Puppet::Parser::Functions
newfunction(:brick_layout_simple, :type => :rvalue, :doc => <<-'ENDHEREDOC') do |args|
Return the simple symmetrical brick list