Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
slapos.package
Commits
c7f3d32f
Commit
c7f3d32f
authored
Jul 17, 2015
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include basic support for CentOS 6.6 for vm-bootstrap
parent
28e2a09f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
18 deletions
+43
-18
playbook/roles/install-script/files/function-common
playbook/roles/install-script/files/function-common
+16
-15
playbook/roles/install-script/templates/base_setup.j2
playbook/roles/install-script/templates/base_setup.j2
+27
-3
No files found.
playbook/roles/install-script/files/function-common
View file @
c7f3d32f
...
@@ -62,10 +62,10 @@ function trueorfalse {
...
@@ -62,10 +62,10 @@ function trueorfalse {
$xtrace
$xtrace
}
}
function
isset
{
#
function isset {
[[
-v
"
$1
"
]]
#
[[ -v "$1" ]]
}
#
}
#
# Control Functions
# Control Functions
# =================
# =================
...
@@ -1839,17 +1839,18 @@ function cp_it {
...
@@ -1839,17 +1839,18 @@ function cp_it {
#
#
# http_proxy=http://proxy.example.com:3128/ no_proxy=repo.example.net ./stack.sh
# http_proxy=http://proxy.example.com:3128/ no_proxy=repo.example.net ./stack.sh
function
export_proxy_variables
{
# Unused function
if
isset http_proxy
;
then
#function export_proxy_variables {
export
http_proxy
=
$http_proxy
# if isset http_proxy ; then
fi
# export http_proxy=$http_proxy
if
isset https_proxy
;
then
# fi
export
https_proxy
=
$https_proxy
# if isset https_proxy ; then
fi
# export https_proxy=$https_proxy
if
isset no_proxy
;
then
# fi
export
no_proxy
=
$no_proxy
# if isset no_proxy ; then
fi
# export no_proxy=$no_proxy
}
# fi
#}
# Returns true if the directory is on a filesystem mounted via NFS.
# Returns true if the directory is on a filesystem mounted via NFS.
function
is_nfs_directory
{
function
is_nfs_directory
{
...
...
playbook/roles/install-script/templates/base_setup.j2
View file @
c7f3d32f
...
@@ -39,7 +39,7 @@ fi
...
@@ -39,7 +39,7 @@ fi
# Warn users who aren't on an explicitly supported distro, but allow them to
# Warn users who aren't on an explicitly supported distro, but allow them to
# override check and attempt installation with ``export FORCE=yes``
# override check and attempt installation with ``export FORCE=yes``
if [[ ! ${DISTRO} =~ (wheezy|jessie|trusty|rhel7) ]]; then
if [[ ! ${DISTRO} =~ (wheezy|jessie|trusty|rhel7
|rhel6
) ]]; then
echo "WARNING: this script has not been tested on $DISTRO"
echo "WARNING: this script has not been tested on $DISTRO"
if [[ "$FORCE" != "yes" ]]; then
if [[ "$FORCE" != "yes" ]]; then
die $LINENO "If you wish to run this script anyway run with FORCE=yes"
die $LINENO "If you wish to run this script anyway run with FORCE=yes"
...
@@ -52,7 +52,7 @@ if [[ $DISTRO == "wheezy" ]]; then
...
@@ -52,7 +52,7 @@ if [[ $DISTRO == "wheezy" ]]; then
fi
fi
if is_fedora && [[ $DISTRO == "rhel7" ]]; then
if is_fedora && [[ $DISTRO == "rhel7" ]]; then
# RHEL requires EPEL for many
Open Stack
dependencies
# RHEL requires EPEL for many
Ansible
dependencies
# NOTE: We always remove and install latest -- some environments
# NOTE: We always remove and install latest -- some environments
# use snapshot images, and if EPEL version updates they break
# use snapshot images, and if EPEL version updates they break
...
@@ -91,6 +91,31 @@ EOF
...
@@ -91,6 +91,31 @@ EOF
fi
fi
if is_fedora && [[ $DISTRO == "rhel6" ]]; then
if sudo yum repolist enabled epel | grep -q 'epel'; then
uninstall_package epel-release || true
fi
cat <<EOF | sudo tee /etc/yum.repos.d/epel-bootstrap.repo
[epel-bootstrap]
name=Bootstrap EPEL
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=\$basearch
failovermethod=priority
enabled=0
gpgcheck=0
EOF
yum-config-manager --enable epel-bootstrap
yum_install epel-release || \
die $LINENO "Error installing EPEL repo, cannot continue"
# EPEL rpm has installed it's version
rm -f /etc/yum.repos.d/epel-bootstrap.repo
is_package_installed yum-utils || install_package yum-utils
yum-config-manager --enable rhel-6-server-optional-rpms
is_package_installed libselinux-python || install_package libselinux-python
fi
is_package_installed ansible || install_package ansible
is_package_installed ansible || install_package ansible
is_package_installed python-setuptools || install_package python-setuptools
is_package_installed python-setuptools || install_package python-setuptools
...
@@ -99,5 +124,4 @@ if is_ubuntu && [[ $DISTRO == "trusty" ]]; then
...
@@ -99,5 +124,4 @@ if is_ubuntu && [[ $DISTRO == "trusty" ]]; then
is_package_installed python-pycurl || install_package python-pycurl
is_package_installed python-pycurl || install_package python-pycurl
fi
fi
ansible localhost -m easy_install -a name=slapcache --connection=local
ansible localhost -m easy_install -a name=slapcache --connection=local
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment