-
Notifications
You must be signed in to change notification settings - Fork 0
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
Jail defaults does not respect path paramater #2
Comments
What is the result in your jail config when setting path to |
When I define the following: jails::defaults:
path: '/jails/$name'
jails::jails:
test:
host_hostname: 'foo.bar.org' I end up with a
I think I don't understand the actual issue right here :) |
Well you are getting something different than I am getting, and while I am not using hiera, I conceptually have a similar thing that you do. I will take a harder look at the code. I'm in the middle of converting all my jails to this module. I don't see other defaults at all that I am expecting either. For example, the default interface. I have class { 'jails':
defaults => {
'interface' => $default_interface,
'allow_mount' => true,
'exec_start' => '/bin/sh /etc/rc',
'exec_stop' => '/bin/sh /etc/rc.shutdown',
'exec_clean' => true,
'mount_devfs' => true,
}
} But in my jails I am missing the mount_devfs, exec_clean, and interface configs. Still digging, but thats what I'm seeing. |
class { 'jails':
defaults => {
'interface' => $default_interface,
'allow_mount' => true,
'exec_start' => '/bin/sh /etc/rc',
'exec_stop' => '/bin/sh /etc/rc.shutdown',
'exec_clean' => true,
'mount_devfs' => true,
'mount.zfs' => true,
'enforce_statfs' => 1,
'path' => '/jails/$name',
#'allow.socket_af' => true,
}
}
jails::jail { 'graphite1':
host_hostname => 'graphite1.example',
ip6_addr => 'fc00::123',
ip4_addr => '192.168.1.10'
} Yields the following in
In this example $path is recognized but not the rest of the options in default. Perhaps there is some parse thing going on here. This is odd. |
I think I've just learned that defaults are not actually default for anything other than the hiera jails. |
See #4 |
The above jails class does not seem to respect the path option here, which should default to its name. For example, the following line in
jail.conf
will allow wildcard jail roots.The text was updated successfully, but these errors were encountered: