Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
puppet-zfs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Greg Mason
puppet-zfs
Commits
79e0a7f1
Commit
79e0a7f1
authored
10 years ago
by
Greg Mason
Browse files
Options
Downloads
Patches
Plain Diff
fix zfs-release package installed from zfsonlinux.org
also some minor style bugs
parent
6f474c26
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/init.pp
+13
-8
13 additions, 8 deletions
manifests/init.pp
with
13 additions
and
8 deletions
manifests/init.pp
+
13
−
8
View file @
79e0a7f1
...
...
@@ -14,7 +14,7 @@
#
# === Examples
#
# class { zfs:
# class { zfs:
# arcpercent => 25,
# }
#
...
...
@@ -24,7 +24,7 @@
#
# === Copyright
#
# Copyright 201
3
Michigan State University Board of Trustees
# Copyright 201
4
Michigan State University Board of Trustees
# Copyright 2013 Arnaud Gomes-do-Vale
#
class
zfs
(
$arcpercent
=
'25'
,
$arcsize_mb
=
'0'
)
{
...
...
@@ -39,7 +39,9 @@ class zfs ( $arcpercent = '25', $arcsize_mb = '0' ) {
package
{
'zfs-release'
:
ensure
=>
present
,
provider
=>
rpm
,
source
=>
'http://archive.zfsonlinux.org/epel/zfs-release-1-2.el6.noarch.rpm'
,
# different URLs are given for different versions of EL.
# See http://zfsonlinux.org/epel.html for more info.
source
=>
"http://archive.zfsonlinux.org/epel/zfs-release.el
${::operatingsystemmajrelease}
.noarch.rpm"
,
}
->
package
{
'zfs'
:
ensure
=>
present
,
...
...
@@ -61,17 +63,20 @@ class zfs ( $arcpercent = '25', $arcsize_mb = '0' ) {
ensure
=>
installed
,
}
~>
package
{
'ubuntu-zfs'
:
ensure
=>
present
,
notify
=>
Class
[
'dkms'
],
ensure
=>
present
,
notify
=>
Class
[
'dkms'
],
require
=>
Apt
::
Ppa
[
'ppa:zfs-native/stable'
],
}
# We explicitly run dkms to build the ZFS modules for the currently
-running
# kernel. Otherwise ZFS won't work until an apt-get upgrade.
# We explicitly run dkms to build the ZFS modules for the currently
#
running
kernel. Otherwise ZFS won't work until an apt-get upgrade.
exec
{
'zfs_dkms'
:
require
=>
Class
[
'dkms'
],
command
=>
'/etc/kernel/postinst.d/dkms'
,
creates
=>
"/lib/modules/
${kernelrelease}
/updates/dkms/zfs.ko"
creates
=>
"/lib/modules/
${
::
kernelrelease}
/updates/dkms/zfs.ko"
}
}
default
:
{
notify
(
"
${::operatingsystem}
is not supported by the ZFS module"
)
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment