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

Loading…
Cancel
Save