Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Puppet
Commits
22dd7e63
Commit
22dd7e63
authored
Feb 28, 2021
by
James T. Lee
Browse files
zfs: Don't generate hostid in containers
parent
3cba78e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
manifests/base/zfs.pp
manifests/base/zfs.pp
+8
-6
No files found.
manifests/base/zfs.pp
View file @
22dd7e63
...
@@ -30,12 +30,14 @@ class nest::base::zfs {
...
@@ -30,12 +30,14 @@ class nest::base::zfs {
;
;
}
}
exec
{
'zgenhostid'
:
unless
$facts
[
'is_container'
]
{
command
=>
'zgenhostid `hostid`'
,
exec
{
'zgenhostid'
:
creates
=>
'/etc/hostid'
,
command
=>
'zgenhostid `hostid`'
,
path
=>
'/usr/bin:/bin'
,
creates
=>
'/etc/hostid'
,
require
=>
Package
[
'sys-fs/zfs'
],
path
=>
'/usr/bin:/bin'
,
notify
=>
Class
[
'::nest::base::dracut'
],
require
=>
Package
[
'sys-fs/zfs'
],
notify
=>
Class
[
'::nest::base::dracut'
],
}
}
}
file
{
'/usr/lib/dracut/modules.d/90zfs/zfs-load-key.sh'
:
file
{
'/usr/lib/dracut/modules.d/90zfs/zfs-load-key.sh'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment