from cmdatahandlers.api import utils
+BARE_LVM_MOUNT_DIR = "/var/lib/docker"
+BARE_LVM_MOUNT_OPT = "noatime,nodiratime,logbufs=8,pquota"
+
+
class Config(config.Config):
def __init__(self, confman):
super(Config, self).__init__(confman)
ConfigError in-case of an error
"""
- return self._get_optional_attribute(profile, 'mount_options')
+ return BARE_LVM_MOUNT_OPT
def get_profile_bare_lvm_mount_dir(self, profile):
""" get the mount_dir
ConfigError in-case of an error
"""
- return self._get_attribute(profile, 'mount_dir')
+ return BARE_LVM_MOUNT_DIR
def get_profile_bare_lvm_lv_name(self, profile):
""" get the lv_name
### - Minor changes in template (e.g. new optional attributes or
### changes in possible values, value ranges or default values)
### - Backwards compatible
-version: 2.0.0
+version: 2.0.1
### Cloud name can consist of lower case letters, digits and dash (-).
### Name must start and end with a letter or a digit.
### This parameter contains the name for the created LVM volume.
#lv_name: <VALUE>
- ### Mandatory
- ### This parameter contains the directory where to mount
- ### the backend of this profile.
- #mount_dir: <VALUE>
-
- ### Optional
- ### This parameter contains the mount options used to mount
- ### the backend. The format must be a valid fstab format.
- ### By default it is empty.
- #mount_options: <VALUE>
-
host_os:
### The value of this parameter is used to protect the entire GRUB 2 menu structure of all the infrastructure nodes.
### The configured value should be a properly salted PBKDF2 (Password-Based Key Derivation Function 2) hash.