Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Gluster version to 7.9 #232

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 10 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ gluster::repo => false
For Debian, the latest packages of the latest release will be installed by default. Otherwise, specify a version:

```puppet
class { gluster::repo:
version => '3.5.2',
class { ::gluster::repo:
version => '7.9',
}
```

Expand All @@ -72,15 +72,14 @@ class { gluster::repo:
}
```


For systems using YUM, the latest package from the 3.8 release branch will be installed. You can specify a specific version and release:
For systems using YUM, the latest package from the 7 release branch will be installed. You can specify a specific version and release:

```puppet
class { gluster::repo:
release => '3.7',
class { ::gluster::repo:
release => '7',
}
class { gluster:
version => '3.7.12',
class { ::gluster:
version => '7.9',
}
```

Expand All @@ -103,7 +102,7 @@ Currently, RHEL 6, RHEL 7, Debian 8, Raspbian and Ubuntu provide native Gluster
server => true,
client => true,
repo => true,
version => 3.5.1-1.el6,
version => 7.9-1.el7,
}

Note that on Red Hat (and derivative) systems, the `version` parameter should match the version number used by yum for the RPM package.
Expand All @@ -115,7 +114,7 @@ This class installs **only** the Gluster client package(s). If you need to insta

class { gluster::client:
repo => true,
version => '3.5.2',
version => '7.9',
}

Use of `gluster::client` is not supported with either `gluster::install` or `gluster::init`.
Expand All @@ -142,7 +141,7 @@ If a `volumes` parameter is passed, the defined Gluster volume(s) can be created
repo => true,
client => false,
pool => 'production',
version => '3.5',
version => '7.9',
volumes => {
'data1' => {
replica => 2,
Expand Down
2 changes: 1 addition & 1 deletion examples/01_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To create a simple two-node replicated Gluster volume, you could use the followi
client => true,
repo => true,
use_exported_resources => false,
version => '3.5.2',
version => '7.9',
volumes => {
'g0' => {
replica => 2,
Expand Down
2 changes: 1 addition & 1 deletion examples/02_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To create a simple two-node replicated Gluster volume, you could use the followi
server => true,
client => true,
repo => true,
version => '3.5.2',
version => '7.9',
}

# make sure the service is started
Expand Down
4 changes: 2 additions & 2 deletions examples/03_exported_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Again, assuming two servers each with one brick:
client => true,
repo => true,
pool => 'production',
version => '3.5.2',
volumes => {
version => '7.9',
volumes => {
'g0' => {
replica => 2,
bricks => [ 'srv1.local:/export/brick1/brick',
Expand Down
8 changes: 4 additions & 4 deletions examples/04_hiera.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Your `/etc/puppet/hieradata/common.yaml` file could then contain:
gluster::client: true
gluster::pool: production
gluster::repo: true
gluster::version: '3.5.2-1.el6'
gluster::version: '7.9-1.el7'

You can then simply apply `class { gluster: }` to any hosts and they will use the upstream Gluster repo, install version 3.5.2-1.el6 of both the server and client, and join the `production` pool.

Expand All @@ -32,22 +32,22 @@ In this way, you could have two servers (srv1.local and srv2.local) operating in
gluster::client: false
gluster::pool: testing
gluster::repo: true
gluster::version: '3.6.1-1.el6'
gluster::version: '7.9-1.el7'

/etc/puppet/hieradata/hosts/srv2.local.yaml:

---
gluster::client: false
gluster::pool: testing
gluster::repo: true
gluster::version: '3.6.1-1.el6'
gluster::version: '7.9-1.el7'

If you support multiple major versions of Red Hat (and derivative) systems, you can still easily use Hiera data to define a common package version for all systems. Your `/etc/puppet/hieradata/common.yaml` file would then contain:

---
gluster::client: true
gluster::pool: production
gluster::repo: true
gluster::version: "3.5.2-1.el%{::operatingsystemmajrelease}"
gluster::version: "7.9-1.el%{::operatingsystemmajrelease}"

Hiera will interepret the value of `%{::operatingsystemmajrelease}` as a fact of the same name, and replace the Red Hat major version number in this string.
2 changes: 1 addition & 1 deletion examples/05_client.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Included in this module is a gluster::client class. This is a helper class that
node /app[1-3].local/ {
class { gluster::client:
repo => true,
version => '3.6.2',
version => '7.9',
}
}

Expand Down
13 changes: 7 additions & 6 deletions examples/06_yum_priorities.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ Yum Priorities
There may arise [situations](http://blog.gluster.org/2014/11/installing-glusterfs-3-4-x-3-5-x-or-3-6-0-on-rhel-or-centos-6-6-2/) where a vendor-supplied package is newer than those provided by the gluster.org repositories. In these cases, you can use yum priorities to ensure that the Gluster repository is consulted **before** the vendor channel.

If you use Hiera data:
---
gluster::client: false
gluster::pool: production
gluster::repo: true
gluster::repo::yum::priority: 50
gluster::version: '3.5.2-1.el6'
```
gluster::client: false
gluster::pool: production
gluster::repo: true
gluster::repo::yum::priority: 50
gluster::version: '7.9-1.el7'
```

This ensures that dependency resolution is confined to the repository and revision you specified, and prevents Yum from helpfully trying to use the latest version available.

Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# parameters dealing with installation
$install_server = true
$install_client = true
$release = '7.3'
$release = '7.9'
$version = 'LATEST'

# we explicitly do NOT set a priority here. The user must define
Expand Down