diff options
author | liyuenan <liyuenan@huawei.com> | 2016-12-20 16:44:59 +0800 |
---|---|---|
committer | liyuenan <liyuenan@huawei.com> | 2016-12-22 10:54:34 +0800 |
commit | a9041dbf7b68f56169e82de3c37601b7e86867b0 (patch) | |
tree | 8364c3b523bc0ac1e8dceda0d66eed4b8d2816f5 /deploy/compass_conf/templates/cobbler | |
parent | 819912d0379f6cd2b2693c2968576f7514a117c5 (diff) |
Change newton_xenial to newton
JIRA: COMPASS-513
Change-Id: I937a02bcd69f0df1f5d951dd6630ef2e76e8d386
Signed-off-by: liyuenan <liyuenan@huawei.com>
Diffstat (limited to 'deploy/compass_conf/templates/cobbler')
8 files changed, 0 insertions, 532 deletions
diff --git a/deploy/compass_conf/templates/cobbler/CentOS-6.5-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/CentOS-6.5-x86_64/system.tmpl deleted file mode 100755 index 8e4cbbbe..00000000 --- a/deploy/compass_conf/templates/cobbler/CentOS-6.5-x86_64/system.tmpl +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$mgmt_key] = $val.is_mgmt - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/CentOS-6.6-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/CentOS-6.6-x86_64/system.tmpl deleted file mode 100755 index 8e4cbbbe..00000000 --- a/deploy/compass_conf/templates/cobbler/CentOS-6.6-x86_64/system.tmpl +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$mgmt_key] = $val.is_mgmt - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/Ubuntu-12.04-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/Ubuntu-12.04-x86_64/system.tmpl deleted file mode 100755 index cfcc883e..00000000 --- a/deploy/compass_conf/templates/cobbler/Ubuntu-12.04-x86_64/system.tmpl +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/Ubuntu-14.04-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/Ubuntu-14.04-x86_64/system.tmpl deleted file mode 100755 index cfcc883e..00000000 --- a/deploy/compass_conf/templates/cobbler/Ubuntu-14.04-x86_64/system.tmpl +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/sles-11sp3-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/sles-11sp3-x86_64/system.tmpl deleted file mode 100755 index 8e4cbbbe..00000000 --- a/deploy/compass_conf/templates/cobbler/sles-11sp3-x86_64/system.tmpl +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$mgmt_key] = $val.is_mgmt - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/profile.tmpl b/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/profile.tmpl deleted file mode 100755 index cfa89004..00000000 --- a/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/profile.tmpl +++ /dev/null @@ -1,3 +0,0 @@ -{ - "repos": "$getVar('repo_name', '')" -} diff --git a/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/system.tmpl deleted file mode 100755 index cfcc883e..00000000 --- a/deploy/compass_conf/templates/cobbler/ubuntu-14.04.3-server-x86_64/system.tmpl +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} diff --git a/deploy/compass_conf/templates/cobbler/uvp-11sp3-x86_64/system.tmpl b/deploy/compass_conf/templates/cobbler/uvp-11sp3-x86_64/system.tmpl deleted file mode 100755 index 8e4cbbbe..00000000 --- a/deploy/compass_conf/templates/cobbler/uvp-11sp3-x86_64/system.tmpl +++ /dev/null @@ -1,76 +0,0 @@ -{ - "name": "$hostname", - "hostname": "$hostname", - "profile": "$profile", - "gateway": "$gateway", - #import simplejson as json - #set nameservers = json.dumps($nameservers, encoding='utf-8') - "name_servers": $nameservers, - #set search_path = ' '.join($search_path) - "name_servers_search": "$search_path", - "proxy": "$getVar('http_proxy', '')", - "modify_interface": - #set networks = $networks - #set rekeyed = {} - #set promic_nic = "" - #for $nic, $val in $networks.iteritems(): - #set ip_key = '-'.join(('ipaddress', $nic)) - #set netmask_key = '-'.join(('netmask', $nic)) - #set mgmt_key = '-'.join(('management', $nic)) - #set static_key = '-'.join(('static', $nic)) - #set $rekeyed[$ip_key] = $val.ip - #set $rekeyed[$netmask_key] = $val.netmask - #set $rekeyed[$mgmt_key] = $val.is_mgmt - #set $rekeyed[$static_key] = True - - #set dns_key = '-'.join(('dnsname', $nic)) - #if $val.is_mgmt - #set $rekeyed[$dns_key] = $dns - #else - #if '.' in $dns - #set $dns_name, $dns_domain = $dns.split('.', 1) - #set $dns_nic = '%s-%s.%s' % ($dns_name, $nic, $dns_domain) - #else - #set $dns_nic = '%s-%s' % ($dns, $nic) - #end if - #set $rekeyed[$dns_key] = $dns_nic - #end if - - #if $val.is_promiscuous: - #set promic_nic = $nic - #end if - #if $val.is_mgmt: - #set mac_key = '-'.join(('macaddress', $nic)) - #set $rekeyed[$mac_key] = $mac - #end if - #end for - #set nic_info = json.dumps($rekeyed, encoding='utf-8') - $nic_info - , - "ksmeta":{ - #set partition_config = '' - #for k, v in $partition.iteritems(): - #set path = '' - #if v['vol_percentage']: - #set $path = k + ' ' + str(v['vol_percentage']) + '%' - #else: - #set $path = k + ' ' + str(v['vol_size']) - #end if - #set partition_config = ';'.join((partition_config, $path)) - #end for - #set partition_config = partition_config[1:] - #import crypt - #set $password = crypt.crypt($server_credentials.password, "az") - #set no_proxy = ','.join($getVar('no_proxy', [])) - "username": "$server_credentials.username", - "password": "$password", - "promisc_nics": "$promic_nic", - "partition": "$partition_config", - "https_proxy": "$getVar('https_proxy', '')", - "ntp_server": "$ntp_server", - "timezone": "$timezone", - "ignore_proxy": "$no_proxy", - "local_repo": "$getVar('local_repo', '')", - "disk_num": "1" - } -} |