This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
forked from purpleidea/puppet-gluster
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include glusterfs-api package for client and server.
In the future this package should only be pulled in when a known dependency tells puppet-gluster that it needs it. For now it's fine. In any case, this is Mostly Harmless (tm).
- Loading branch information
1 parent
b0f645e
commit b948c83
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# GlusterFS module by James | ||
# Copyright (C) 2010-2013+ James Shubin | ||
# Written by James Shubin <james@shubin.ca> | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Affero General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU Affero General Public License for more details. | ||
# | ||
# 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/>. | ||
|
||
class gluster::api( | ||
$repo = true, # are we using the automatic repo ? | ||
$version = '' # pick a specific version (defaults to latest) | ||
) { | ||
$rname = "${version}" ? { | ||
'' => 'gluster', | ||
default => "gluster-${version}", | ||
} | ||
|
||
package { 'glusterfs-api': | ||
ensure => "${version}" ? { | ||
'' => present, | ||
default => "${version}", | ||
}, | ||
require => $repo ? { | ||
false => undef, | ||
default => Gluster::Repo["${rname}"], | ||
}, | ||
} | ||
} | ||
|
||
# vim: ts=8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters