Restructure cl_vars

develop
Mike Hiretsky 14 years ago
parent baf6c90b46
commit 77d5f78dfc

@ -14,46 +14,45 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#Допустимые ключи значений
# mode - режим переменной r-не переназначается из командной строки,
# w-переназначается из командной строки
# type - тип переменной состоит из двух элементов(что это и для чего
# это)
# value - значение переменной
# official - флаг того, что данная переменная служебная и не отображается
# при печати списка значений переменных
#Allowed keys
# mode - variable mode: 'w' - you can change value from command line,
# 'r' you cann't change value from command line
# type - depricated
# value - value
# official - show or not variable for display values
class Data:
# имя компьютера
# computer hostname
os_net_hostname = {'mode':"w"}
# разрешенные сети
# allowed networks
os_net_allow ={}
# ip на всех интерфейсах
# ip for all network interfaces (comma delimeter)
os_net_ip ={}
# Существующие сетевые интерфейсы
# network interfaces
os_net_interfaces={'official':True}
#короткое название системы (CLD)
os_linux_shortname={}
#домен
# computer domain
os_net_domain = {'mode':"w"}
# Алиасы и пути к ini файлам
# short system name (CLD)
os_linux_shortname={}
# aliases and path to ini files
cl_env_data = {'official':True,
'value':[('default', '/etc/calculate/calculate2.env'),
('local', '/var/calculate/calculate2.env'),
('remote', '/var/calculate/remote/calculate2.env')]}
# Алиасы путей к ini файлам (из cl_env_data)
# path aliases to ini files (from cl_env_data)
cl_env_location = {'official':True}
# Пути к ini файлам (из cl_env_data)
# path to ini files (from cl_env_data)
cl_env_path = {}
# Путь к информационному файлу сервера
# path to information file on server
cl_env_server_path = {'official':True,
'value':'/var/calculate/remote/server.env'}
@ -76,25 +75,25 @@ class Data:
# keyboard layout name for X server
os_locale_xkbname = {}
# архитектура компьютера (i686,x86_64)
# computer architecture (i686,x86_64)
os_arch_machine = {}
#проход при наложении профилей 1,2,3,4,5 и.т д
# pass for templates join 1,2,3,4,5 and etc
cl_pass_step = {}
# обрабатываемый файл профиля
# template file performed at now
cl_pass_file = {'mode':"w"}
# корневой раздел файловой системы
# root partition of filesystem
os_root_dev = {}
# тип носителя (ram, hdd, usb-hdd, livecd)
# root type (ram, hdd, usb-hdd, livecd)
os_root_type = {}
# полное название системы
# full system name
os_linux_name = {}
# постфикс к названию системы
# postfix to system name (KDE GNOME and etc)
os_linux_subname = {}
# system (desktop or server)
@ -109,75 +108,74 @@ class Data:
# processors count
hr_cpu_num = {}
# название виртуальной машины (virtualbox, vmware, qemu)
# virtual machine name (virtualbox, vmware, qemu)
hr_virtual = {}
# версия системы
# system version
os_linux_ver = {}
# Логин пользователя
# user login
ur_login = {}
# Название группы пользователя
# user group name
ur_group = {'official':True}
#Полное имя пользователя
# user fullname
ur_fullname = {'official':True}
# Домашняя директория пользователя
# user home directory
ur_home_path = {'official':True}
# Путь к директории относительно которой происходит наложение профилей на
#файлы системы (песочница)
# path to directory relative which perform joining templates to system files
# (sandbox)
cl_root_path = {'mode':"w", 'value':"/"}
# Путь к директории другой системы
cl_chroot_path = {'mode':"w", 'value':"/"}
# path to directory which contain other system
cl_chroot_path = {'mode':"r", 'value':"/"}
# Действие программы
# user - генерация профиля пользователя
# install / uninstall - установка и удаление программы
# program action
# user - user profile generation
# install / uninstall - install or uninstall program
cl_pass_action = {}
# Состояние программы
# Указываем дополнительно к cl_pass_action в случае необходимости
# program state
# specifies addition to cl_pass_action for needing
cl_pass_state = {}
# Jabber ID пользователя
# User Jabber ID
ur_jid = {'official':True}
# Почтовый адрес пользователя
# user email
ur_mail = {'official':True}
# Переменные пакета calculate-client для calculate-desktop
# ip или имя домена (под управлением calculate-server)
# variable for calculate-client and calculate-desktop packages
# ip or domain name of CDS
cl_remote_host = {'mode':'r', 'official':True}
# Переменная работающая совместно с функцией шаблонов belong(имя_пакета)
# Если переменная будет определена то будут использованы шаблоны
# у которых параметр имя пакета функции шаблонов belong(имя_пакета)
# совпадает с значением этой переменной
# (имя_пакета == значение cl_belong_pkg)
# this variable work with template function belong(package_name)
# if the variable is defined then will use only template, which
# has package_name in belong equal value of this variable or
# hasn't belong function
# (package_name == value of cl_belong_pkg)
cl_belong_pkg = {'mode':'r', 'official':True}
#Разрешение X по вертикали
# vertical resolution for X server
os_x11_height = {'mode':"w"}
#Разрешение X по горизонтали
# horizontal resolution for X server
os_x11_width = {'mode':"w"}
# ближайший стандартный размер изображения к текущему разрешению
# the nearest standard size of image to current screen resolution
os_x11_standart = {}
# Если компьютер ноутбук, то его производитель
# if computer is noteboot, the this variable containt its vendor
hr_laptop = {}
# Название производителя видеокарты
# video verdor name
hr_video = {}
# Video driver used by xorg
os_x11_video_drv = {}
# Включен ли композитный режим видеокарты on/off
# on/off composite mode
os_x11_composite = {}

Loading…
Cancel
Save