Merge "Revert "Revert "Cobbler: aligned repos snippets with astute change"""
This commit is contained in:
commit
d26f3d60cd
@ -63,7 +63,6 @@ class cobbler::snippets {
|
||||
cobbler_snippet {"ubuntu_authorized_keys":}
|
||||
cobbler_snippet {"ubuntu_blacklist_i2c_piix4":}
|
||||
cobbler_snippet {"ubuntu_disable_pxe":}
|
||||
cobbler_snippet {"ubuntu_packages":}
|
||||
cobbler_snippet {"ubuntu_puppet_config":}
|
||||
cobbler_snippet {"ubuntu_mcollective_config":}
|
||||
cobbler_snippet {"ubuntu_network":}
|
||||
@ -71,6 +70,9 @@ class cobbler::snippets {
|
||||
cobbler_snippet {"ubuntu_partition":}
|
||||
cobbler_snippet {"ubuntu_partition_late":}
|
||||
cobbler_snippet {"ubuntu_static_net":}
|
||||
cobbler_snippet {"ubuntu_repos_late":}
|
||||
cobbler_snippet {"ubuntu_precise_packages_late":}
|
||||
cobbler_snippet {"ubuntu_trusty_packages_late":}
|
||||
cobbler_snippet {"anaconda_ssh_console":}
|
||||
cobbler_snippet {"anaconda_yum":}
|
||||
cobbler_snippet {'centos_post_kernel_lt_if_enabled':}
|
||||
|
@ -1,15 +1,18 @@
|
||||
#import json
|
||||
|
||||
# WHAT TO DO (install fresh system rather than upgrade)
|
||||
install
|
||||
|
||||
# INSTALLATION SOURCE (centos repository)
|
||||
url --url=$tree
|
||||
#set $repo_setup = json.loads($getVar("repo_setup"))
|
||||
#set $repo = $repo_setup["repos"][0]
|
||||
url --url=$repo["uri"]
|
||||
|
||||
#if $varExists('repo_metadata')
|
||||
#if $varExists("repo_setup")
|
||||
# REPOSITORIES FROM Nailgun
|
||||
## Expected repo_metadata format Name1=Value1,Name2=Value2
|
||||
#set repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $repo_list.items()
|
||||
repo --name=$repo_name --baseurl=$repo_url
|
||||
#set $repos = $repo_setup["repos"][1:]
|
||||
#for $repo in $repos
|
||||
repo --name=$repo["name"] --baseurl=$repo["uri"]
|
||||
#end for
|
||||
#else
|
||||
# ALTERNATIVE REPOSITORIES (PRESET)
|
||||
|
@ -27,7 +27,6 @@ d-i clock-setup/ntp boolean false
|
||||
d-i time/zone string <%= @ks_system_timezone %>
|
||||
|
||||
$SNIPPET('ubuntu_network_console_and_syslog')
|
||||
|
||||
$SNIPPET('ubuntu_partition')
|
||||
|
||||
#set fuel_version=$getVar('fuel_version', '')
|
||||
@ -42,26 +41,42 @@ d-i base-installer/kernel/image string linux-image-3.11
|
||||
# REPOS
|
||||
##########
|
||||
|
||||
d-i mirror/protocol string http
|
||||
#import json
|
||||
#set $repo_setup = json.loads($getVar("repo_setup"))
|
||||
#set $repos = $repo_setup["repos"]
|
||||
#set $base_mirror = $repos[0]
|
||||
#set $base_mirror_protocol = $base_mirror["uri"].split(":", 1)[0]
|
||||
#set $base_mirror_host = $base_mirror["uri"].split("http://")[1].split("/")[0]
|
||||
#set $base_mirror_directory = "/" + $base_mirror["uri"].split("http://")[1].split("/", 1)[1]
|
||||
#set $base_mirror_suite = $base_mirror["suite"]
|
||||
#set $base_mirror_components = ", ".join($base_mirror["section"].split())
|
||||
d-i mirror/protocol string $base_mirror_protocol
|
||||
d-i mirror/country string manual
|
||||
d-i mirror/http/hostname string @@server@@:8080
|
||||
d-i mirror/http/directory string /ubuntu/x86_64
|
||||
d-i mirror/http/hostname string $base_mirror_host
|
||||
d-i mirror/http/directory string $base_mirror_directory
|
||||
d-i mirror/http/proxy string
|
||||
|
||||
d-i mirror/suite string precise
|
||||
d-i mirror/suite string $base_mirror_suite
|
||||
# Suite to use for loading installer components (optional).
|
||||
d-i mirror/udeb/suite string precise
|
||||
d-i mirror/udeb/suite string $base_mirror_suite
|
||||
# Components to use for loading installer components (optional).
|
||||
d-i mirror/udeb/components multiselect main, restricted
|
||||
d-i mirror/udeb/components multiselect $base_mirror_components
|
||||
# Retry failed repo
|
||||
d-i apt-setup/mirror/error select Retry
|
||||
# Downloading a file failed
|
||||
# d-i apt-setup/use_mirror select Retry
|
||||
|
||||
d-i apt-setup/restricted boolean true
|
||||
d-i apt-setup/universe boolean true
|
||||
# Use network mirror
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
d-i apt-setup/security_host 127.0.0.1
|
||||
|
||||
# You can choose to install restricted and universe software, or to install
|
||||
# software from the backports repository.
|
||||
d-i apt-setup/restricted boolean false
|
||||
d-i apt-setup/universe boolean false
|
||||
d-i apt-setup/backports boolean false
|
||||
|
||||
# Select which update services to use; define the mirrors to be used.
|
||||
# Values shown below are the normal defaults.
|
||||
# d-i apt-setup/services-select multiselect
|
||||
d-i apt-setup/security_host string 127.0.0.1
|
||||
# d-i apt-setup/security_path string /ubuntu
|
||||
|
||||
d-i debian-installer/allow_unauthenticated boolean true
|
||||
|
||||
@ -69,16 +84,12 @@ d-i console-setup/ask_detect boolean false
|
||||
d-i keyboard-configuration/layoutcode string us
|
||||
d-i keyboard-configuration/modelcode string SKIP
|
||||
|
||||
#if $varExists('repo_metadata')
|
||||
# Additional repositories, local[0-9] available
|
||||
#set counter_x = 0
|
||||
#set repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $repo_list.items()
|
||||
d-i apt-setup/local$counter_x/repository string $repo_url
|
||||
d-i apt-setup/local$counter_x/comment string $repo_name
|
||||
#set counter_x = $counter_x + 1
|
||||
#end for
|
||||
#end if
|
||||
# NOTE(kozhukalov): We avoid defining multiple mirrors
|
||||
# using apt-setup/localN debconf variables.
|
||||
# The reason for this is that it does not suport pinning.
|
||||
# We define multiple repos with their priorities inside target
|
||||
# and then use in-target apt-get to install additional packages.
|
||||
# See ubuntu_repos_late and ubuntu_packages_late snippets.
|
||||
|
||||
##########
|
||||
# USERS
|
||||
@ -95,19 +106,20 @@ d-i passwd/make-user boolean false
|
||||
############
|
||||
|
||||
tasksel tasksel/first multiselect standard
|
||||
|
||||
debconf debconf/frontend select Noninteractive
|
||||
|
||||
# d-i pkgsel/include string openssh-server debconf-utils
|
||||
$SNIPPET('ubuntu_packages')
|
||||
# NOTE(kozhukalov): We deliberately avoid using
|
||||
# pkgsel/include mechanism for installing additional packages.
|
||||
# We need preferences for our additional mirrors
|
||||
# and it is only possible if we put preferences into target and
|
||||
# install packages using apt-get inside this target directory.
|
||||
# See ubuntu_repos_late and ubuntu_packages_late snippets.
|
||||
|
||||
d-i pkgsel/language-packs multiselect en
|
||||
d-i pkgsel/update-policy select none
|
||||
d-i pkgsel/upgrade select none
|
||||
d-i pkgsel/updatedb boolean true
|
||||
|
||||
|
||||
|
||||
|
||||
d-i finish-install/keep-consoles boolean false
|
||||
d-i finish-install/reboot_in_progress note
|
||||
|
||||
@ -120,11 +132,20 @@ d-i debian-installer/exit/poweroff boolean false
|
||||
################
|
||||
# LATE COMMANDS
|
||||
################
|
||||
|
||||
# TODO:
|
||||
# add puppet and mcollective configuration
|
||||
# add network configuration
|
||||
d-i preseed/late_command string true && \
|
||||
$SNIPPET('ubuntu_repos_late')
|
||||
echo 'APT::Get::AllowUnauthenticated 1;' > /target/etc/apt/apt.conf.d/02mirantis-allow-unsigned && \
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y; \
|
||||
#if $fuel_version >= '6.0'
|
||||
in-target apt-get -y install linux-image-generic-lts-trusty linux-headers-generic-lts-trusty; \
|
||||
#else
|
||||
in-target apt-get -y install linux-image-3.11 linux-headers-3.11; \
|
||||
#end if
|
||||
$SNIPPET('ubuntu_packages_late')
|
||||
$SNIPPET('ubuntu_partition_late')
|
||||
$SNIPPET('ubuntu_disable_pxe') && \
|
||||
$SNIPPET('ubuntu_network') && \
|
||||
@ -141,27 +162,9 @@ mkdir -p /target/etc/nailgun-agent && \
|
||||
echo "---" > $nailgun_agent_conf && \
|
||||
echo "url: '<%= scope.lookupvar('nailgun::cobbler::nailgun_api_url') %>'" >> $nailgun_agent_conf && \
|
||||
echo target > /target/etc/nailgun_systemtype && \
|
||||
echo 'APT::Get::AllowUnauthenticated 1;' > /target/etc/apt/apt.conf.d/02mirantis-allow-unsigned && \
|
||||
# REPOSITORIES FROM Nailgun
|
||||
#if $varExists('repo_metadata')
|
||||
echo "" /target/etc/apt/sources.list && \
|
||||
#set repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $repo_list.items()
|
||||
echo 'deb $repo_url' >> /target/etc/apt/sources.list && \
|
||||
#end for
|
||||
#else
|
||||
echo 'deb http://@@server@@:8080/ubuntu/x86_64 precise main' > /target/etc/apt/sources.list && \
|
||||
#end if
|
||||
$SNIPPET('ubuntu_authorized_keys')
|
||||
sed -i -e "/^\s*GSSAPICleanupCredentials yes/d" -e "/^\s*GSSAPIAuthentication yes/d" -e "s/.*PasswordAuthentication\ .*/PasswordAuthentication\ no/g" -e "/UseDNS/d" /target/etc/ssh/sshd_config && \
|
||||
echo "UseDNS no" >> /target/etc/ssh/sshd_config && \
|
||||
#if $fuel_version >= '6.0'
|
||||
in-target apt-get -y install linux-image-generic-lts-trusty linux-headers-generic-lts-trusty && \
|
||||
#else
|
||||
in-target apt-get -y install linux-image-3.11 linux-headers-3.11 && \
|
||||
#end if
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y; \
|
||||
$SNIPPET('ubuntu_blacklist_i2c_piix4')
|
||||
$SNIPPET('ubuntu_static_net')
|
||||
$SNIPPET('ofed_install_with_sriov')
|
||||
|
@ -27,36 +27,56 @@ d-i clock-setup/ntp boolean false
|
||||
d-i time/zone string <%= @ks_system_timezone %>
|
||||
|
||||
$SNIPPET('ubuntu_network_console_and_syslog')
|
||||
|
||||
$SNIPPET('ubuntu_partition')
|
||||
|
||||
#set fuel_version=$getVar('fuel_version', '')
|
||||
#if $fuel_version >= '6.0'
|
||||
d-i base-installer/kernel/image string linux-image-generic-lts-trusty
|
||||
#else
|
||||
d-i base-installer/kernel/image string linux-image-3.11
|
||||
#end if
|
||||
|
||||
|
||||
##########
|
||||
# REPOS
|
||||
##########
|
||||
|
||||
d-i mirror/protocol string http
|
||||
#import json
|
||||
#set $repo_setup = json.loads($getVar("repo_setup"))
|
||||
#set $repos = $repo_setup["repos"]
|
||||
#set $base_mirror = $repos[0]
|
||||
#set $base_mirror_protocol = $base_mirror["uri"].split(":", 1)[0]
|
||||
#set $base_mirror_host = $base_mirror["uri"].split("http://")[1].split("/")[0]
|
||||
#set $base_mirror_directory = "/" + $base_mirror["uri"].split("http://")[1].split("/", 1)[1]
|
||||
#set $base_mirror_suite = $base_mirror["suite"]
|
||||
#set $base_mirror_components = ", ".join($base_mirror["section"].split())
|
||||
d-i mirror/protocol string $base_mirror_protocol
|
||||
d-i mirror/country string manual
|
||||
d-i mirror/http/hostname string @@server@@:8080
|
||||
d-i mirror/http/directory string /ubuntu/x86_64
|
||||
d-i mirror/http/hostname string $base_mirror_host
|
||||
d-i mirror/http/directory string $base_mirror_directory
|
||||
d-i mirror/http/proxy string
|
||||
|
||||
d-i mirror/suite string trusty
|
||||
d-i mirror/suite string $base_mirror_suite
|
||||
# Suite to use for loading installer components (optional).
|
||||
d-i mirror/udeb/suite string trusty
|
||||
d-i mirror/udeb/suite string $base_mirror_suite
|
||||
# Components to use for loading installer components (optional).
|
||||
d-i mirror/udeb/components multiselect main, restricted
|
||||
d-i mirror/udeb/components multiselect $base_mirror_components
|
||||
# Retry failed repo
|
||||
d-i apt-setup/mirror/error select Retry
|
||||
# Downloading a file failed
|
||||
# d-i apt-setup/use_mirror select Retry
|
||||
|
||||
d-i apt-setup/restricted boolean true
|
||||
d-i apt-setup/universe boolean true
|
||||
# Use network mirror
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
d-i apt-setup/security_host 127.0.0.1
|
||||
|
||||
# You can choose to install restricted and universe software, or to install
|
||||
# software from the backports repository.
|
||||
d-i apt-setup/restricted boolean false
|
||||
d-i apt-setup/universe boolean false
|
||||
d-i apt-setup/backports boolean false
|
||||
|
||||
# Select which update services to use; define the mirrors to be used.
|
||||
# Values shown below are the normal defaults.
|
||||
# d-i apt-setup/services-select multiselect
|
||||
d-i apt-setup/security_host string 127.0.0.1
|
||||
# d-i apt-setup/security_path string /ubuntu
|
||||
|
||||
d-i debian-installer/allow_unauthenticated boolean true
|
||||
|
||||
@ -64,16 +84,12 @@ d-i console-setup/ask_detect boolean false
|
||||
d-i keyboard-configuration/layoutcode string us
|
||||
d-i keyboard-configuration/modelcode string SKIP
|
||||
|
||||
#if $varExists('repo_metadata')
|
||||
# Additional repositories, local[0-9] available
|
||||
#set counter_x = 0
|
||||
#set repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $repo_list.items()
|
||||
d-i apt-setup/local$counter_x/repository string deb $repo_url
|
||||
d-i apt-setup/local$counter_x/comment string $repo_name
|
||||
#set counter_x = $counter_x + 1
|
||||
#end for
|
||||
#end if
|
||||
# NOTE(kozhukalov): We avoid defining multiple mirrors
|
||||
# using apt-setup/localN debconf variables.
|
||||
# The reason for this is that it does not suport pinning.
|
||||
# We define multiple repos with their priorities inside target
|
||||
# and then use in-target apt-get to install additional packages.
|
||||
# See ubuntu_repos_late and ubuntu_packages_late snippets.
|
||||
|
||||
##########
|
||||
# USERS
|
||||
@ -90,19 +106,20 @@ d-i passwd/make-user boolean false
|
||||
############
|
||||
|
||||
tasksel tasksel/first multiselect standard
|
||||
|
||||
debconf debconf/frontend select Noninteractive
|
||||
|
||||
# d-i pkgsel/include string openssh-server debconf-utils
|
||||
$SNIPPET('ubuntu_packages')
|
||||
# NOTE(kozhukalov): We deliberately avoid using
|
||||
# pkgsel/include mechanism for installing additional packages.
|
||||
# We need preferences for our additional mirrors
|
||||
# and it is only possible if we put preferences into target and
|
||||
# install packages using apt-get inside this target directory.
|
||||
# See ubuntu_repos_late and ubuntu_packages_late snippets.
|
||||
|
||||
d-i pkgsel/language-packs multiselect en
|
||||
d-i pkgsel/update-policy select none
|
||||
d-i pkgsel/upgrade select none
|
||||
d-i pkgsel/updatedb boolean true
|
||||
|
||||
|
||||
|
||||
|
||||
d-i finish-install/keep-consoles boolean false
|
||||
d-i finish-install/reboot_in_progress note
|
||||
|
||||
@ -115,11 +132,24 @@ d-i debian-installer/exit/poweroff boolean false
|
||||
################
|
||||
# LATE COMMANDS
|
||||
################
|
||||
|
||||
# TODO:
|
||||
# add puppet and mcollective configuration
|
||||
# add network configuration
|
||||
d-i preseed/late_command string true && \
|
||||
$SNIPPET('ubuntu_repos_late')
|
||||
echo 'APT::Get::AllowUnauthenticated 1;' > /target/etc/apt/apt.conf.d/02mirantis-allow-unsigned && \
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y; \
|
||||
#if $fuel_version >= '6.0'
|
||||
in-target apt-get -y install linux-image-generic-lts-trusty linux-headers-generic-lts-trusty; \
|
||||
#else
|
||||
in-target apt-get -y install linux-image-3.11 linux-headers-3.11; \
|
||||
#end if
|
||||
#if $fuel_version >= '6.1'
|
||||
$SNIPPET('ubuntu_trusty_packages_late')
|
||||
#else
|
||||
$SNIPPET('ubuntu_precise_packages_late')
|
||||
#end if
|
||||
$SNIPPET('ubuntu_partition_late')
|
||||
$SNIPPET('ubuntu_disable_pxe') && \
|
||||
$SNIPPET('ubuntu_network') && \
|
||||
@ -136,26 +166,13 @@ mkdir -p /target/etc/nailgun-agent && \
|
||||
echo "---" > $nailgun_agent_conf && \
|
||||
echo "url: '<%= scope.lookupvar('nailgun::cobbler::nailgun_api_url') %>'" >> $nailgun_agent_conf && \
|
||||
echo target > /target/etc/nailgun_systemtype && \
|
||||
echo 'APT::Get::AllowUnauthenticated 1;' > /target/etc/apt/apt.conf.d/02mirantis-allow-unsigned && \
|
||||
# REPOSITORIES FROM Nailgun
|
||||
#if $varExists('repo_metadata')
|
||||
echo "" /target/etc/apt/sources.list && \
|
||||
#set repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $repo_list.items()
|
||||
echo 'deb $repo_url' >> /target/etc/apt/sources.list && \
|
||||
#end for
|
||||
#else
|
||||
echo 'deb http://@@server@@:8080/ubuntu/x86_64 trusty main' > /target/etc/apt/sources.list && \
|
||||
#end if
|
||||
$SNIPPET('ubuntu_authorized_keys')
|
||||
sed -i -e "/^\s*GSSAPICleanupCredentials yes/d" -e "/^\s*GSSAPIAuthentication yes/d" -e "s/.*PasswordAuthentication\ .*/PasswordAuthentication\ no/g" -e "/UseDNS/d" /target/etc/ssh/sshd_config && \
|
||||
echo "UseDNS no" >> /target/etc/ssh/sshd_config && \
|
||||
in-target apt-get -y install linux-headers-generic-lts-trusty && \
|
||||
in-target apt-get update; \
|
||||
in-target apt-get upgrade -y; \
|
||||
$SNIPPET('ubuntu_blacklist_i2c_piix4')
|
||||
$SNIPPET('ubuntu_static_net')
|
||||
$SNIPPET('ofed_install_with_sriov')
|
||||
# Rsyslogd should send all messages to master node
|
||||
$SNIPPET('target_logs_to_master_ubuntu')
|
||||
true
|
||||
|
||||
|
@ -52,6 +52,7 @@ cheetah_import_whitelist:
|
||||
- "re"
|
||||
- "time"
|
||||
- "orchestra"
|
||||
- "json"
|
||||
|
||||
# Default createrepo_flags to use for new repositories. If you have
|
||||
# createrepo >= 0.4.10, consider "-c cache --update -C", which can
|
||||
@ -380,5 +381,3 @@ yum_distro_priority: 1
|
||||
# Flags to use for yumdownloader. Not all versions may support
|
||||
# --resolve.
|
||||
yumdownloader_flags: "--resolve"
|
||||
|
||||
|
||||
|
@ -1,21 +1,14 @@
|
||||
#import json
|
||||
rm /etc/yum.repos.d/*.repo
|
||||
cat > /etc/yum.repos.d/nailgun.repo << EOF
|
||||
|
||||
#if $varExists('repo_metadata')
|
||||
# REPOSITORIES FROM Nailgun
|
||||
#set nailgun_repo_list = dict(item.split("=") for item in $repo_metadata.split(","))
|
||||
#for $repo_name, $repo_url in $nailgun_repo_list.items()
|
||||
[$repo_name]
|
||||
name=$repo_name
|
||||
baseurl=$repo_url
|
||||
#set $repo_setup = json.loads($getVar("repo_setup"))
|
||||
#set $repos = $repo_setup["repos"]
|
||||
#for $repo in $repos
|
||||
cat > /etc/yum.repos.d/${repo["name"]}.repo << EOF
|
||||
[${repo["name"]}]
|
||||
name=$repo["name"]
|
||||
baseurl=$repo["uri"]
|
||||
gpgcheck=0
|
||||
#end for
|
||||
#else
|
||||
<% @ks_repo.each do |repo| %>
|
||||
[<%= repo['id'] %>]
|
||||
name=<%= repo['name'] %>
|
||||
baseurl=<%= repo['url'] %>
|
||||
gpgcheck=0
|
||||
<% end %>
|
||||
#end if
|
||||
priority=$repo["priority"]
|
||||
EOF
|
||||
#end for
|
||||
|
@ -0,0 +1,10 @@
|
||||
#set $ubuntu_packages = ["acl", "openssh-server", "debconf-utils", "ntp", "ntpdate", "ruby-ipaddress", "ruby-netaddr", "ruby-openstack", "libaugeas-ruby", "libstomp-ruby1.8", "libshadow-ruby1.8", "libjson-ruby1.8", "vim", "vlan", "curl", "anacron", "python-amqp", "nailgun-agent", "nailgun-mcagents", "lvm2", "nailgun-net-check", "puppet", "telnet", "gdisk", "daemonize", "rsync", "virt-what" ]
|
||||
#if $str($getVar('mco_auto_setup','')) == "1"
|
||||
#silent $ubuntu_packages.append("ruby-stomp")
|
||||
#silent $ubuntu_packages.append("mcollective")
|
||||
#end if
|
||||
#set mlnx_mode=$getVar('mlnx_plugin_mode','disabled')
|
||||
#if $mlnx_mode != "disabled"
|
||||
#silent $ubuntu_packages.append("mlnx-ofed-light")
|
||||
#end if
|
||||
in-target apt-get -y install #echo " ".join($ubuntu_packages)#; \
|
@ -0,0 +1,15 @@
|
||||
#import json
|
||||
## We assume ks_meta contains repo_setup variable
|
||||
## Cleaning up sources.list
|
||||
echo > /target/etc/apt/sources.list; \
|
||||
mkdir -p /target/etc/apt/sources.list.d; \
|
||||
mkdir -p /target/etc/apt/preferences.d; \
|
||||
#set $repo_setup = json.loads($getVar("repo_setup"))
|
||||
#set $repos = $repo_setup["repos"]
|
||||
#for $repo in $repos
|
||||
echo 'deb $repo["uri"] $repo["suite"] $repo["section"]' > /target/etc/apt/sources.list.d/${repo["name"]}.list; \
|
||||
echo 'Package: *' > /target/etc/apt/preferences.d/$repo["name"]; \
|
||||
echo 'Pin: release a=$repo["suite"]' >> /target/etc/apt/preferences.d/$repo["name"]; \
|
||||
echo 'Pin-Priority: $repo["priority"]' >> /target/etc/apt/preferences.d/$repo["name"]; \
|
||||
echo '' >> /target/etc/apt/preferences.d/$repo["name"]; \
|
||||
#end for
|
@ -1,13 +1,10 @@
|
||||
#set $pkgsel_packages = ["acl", "openssh-server", "debconf-utils", "ntp", "ntpdate", "ruby-ipaddress", "ruby-netaddr", "ruby-openstack", "ruby-augeas", "ruby-stomp", "ruby-shadow", "ruby-json", "vim", "vlan", "curl", "anacron", "python-amqp", "nailgun-agent", "nailgun-mcagents", "lvm2", "nailgun-net-check", "puppet", "telnet", "gdisk", "daemonize", "rsync", "virt-what" ]
|
||||
|
||||
#set $ubuntu_packages = ["acl", "openssh-server", "debconf-utils", "ntp", "ntpdate", "ruby-ipaddress", "ruby-netaddr", "ruby-openstack", "ruby-augeas", "ruby-stomp", "ruby-shadow", "ruby-json", "vim", "vlan", "curl", "anacron", "python-amqp", "nailgun-agent", "nailgun-mcagents", "lvm2", "nailgun-net-check", "puppet", "telnet", "gdisk", "daemonize", "rsync", "virt-what" ]
|
||||
#if $str($getVar('mco_auto_setup','')) == "1"
|
||||
#silent $pkgsel_packages.append("ruby-stomp")
|
||||
#silent $pkgsel_packages.append("mcollective")
|
||||
#silent $ubuntu_packages.append("ruby-stomp")
|
||||
#silent $ubuntu_packages.append("mcollective")
|
||||
#end if
|
||||
|
||||
#set mlnx_mode=$getVar('mlnx_plugin_mode','disabled')
|
||||
#if $mlnx_mode != "disabled"
|
||||
#silent $pkgsel_packages.append("mlnx-ofed-light")
|
||||
#silent $ubuntu_packages.append("mlnx-ofed-light")
|
||||
#end if
|
||||
|
||||
d-i pkgsel/include string #echo " ".join($pkgsel_packages)
|
||||
in-target apt-get -y install #echo " ".join($ubuntu_packages)#; \
|
Loading…
Reference in New Issue
Block a user